Problem starting Redirection 5.7.5
need-feedback
```
Uncaught SyntaxError: Unexpected end of input https://www.baguettes-sensitives.com/wp-content/plugins/redirection/build/redirection.js?ver=a67ff2e204acfd54dd40 94,Uncaught SyntaxError: Unexpected end of input https://www.baguettes-sensitives.com/wp-includes/js/dist/components.min.js?ver=0d72a218dfea8f6f442f 33,Uncaught SyntaxError: Unexpected end of input https://www.baguettes-sensitives.com/wp-includes/js/dist/commands.min.js?ver=cac8f4817ab7cea0ac49 2,Uncaught TypeError: Cannot read properties of undefined (reading 'privateApis') https://www.baguettes-sensitives.com/wp-includes/js/dist/preferences.min.js?ver=2ca086aed510c242a1ed 2,Uncaught TypeError: Cannot read properties of undefined (reading 'store') wp-preferences-js-after 1814,Uncaught SyntaxError: Unexpected end of input https://www.baguettes-sensitives.com/wp-includes/js/dist/block-editor.min.js?ver=addf558a422e2ee57920 21,Uncaught ReferenceError: Backbone is not defined https://www.baguettes-sensitives.com/wp-content/themes/thrive-theme/thrive-dashboard/inc/app-notification/assets/dist/tve-app-notification.min.js?ver=10.8.9.1 1,Uncaught TypeError: Cannot read properties of undefined (reading 'useCommands') https://www.baguettes-sensitives.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1 10
```
Plugin: 5.7.5 4.2
WordPress: 6.9.4 (single)
PHP: 8.3.30
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
JavaScript: https://www.baguettes-sensitives.com/wp-content/plugins/redirection/build/redirection.js?ver=5.7.5-e5bead9293c415a3ea00b2af86bd2010
REST API: https://www.baguettes-sensitives.com/wp-json/
--
Problem
The Redirection admin page fails to load with:
Impossible to load Redirection ☹️
Critical Error
Multiple core and plugin JS files fail with:
Uncaught SyntaxError: Unexpected end of input
Affected files include:
/wp-content/plugins/redirection/build/redirection.js
/wp-includes/js/dist/components.min.js
/wp-includes/js/dist/commands.min.js
/wp-includes/js/dist/block-editor.min.js
Cascade errors:
Cannot read properties of undefined (reading 'privateApis')
Cannot read properties of undefined (reading 'store')
Backbone is not defined
Cannot read properties of undefined (reading 'useCommands')
Key Observation
All scripts:
load with HTTP 200
are present and accessible
are identical to staging environment
However:
they are interpreted as truncated / incomplete by the browser
resulting in Unexpected end of input
This indicates that the JavaScript response is altered or cut during delivery, not missing.
Network Behavior
No failed requests
No REST calls triggered (/wp-json/redirection/...)
JS execution stops before initialization
Tests Performed
Disabled all plugins → issue persists
Activated only Redirection → issue persists
Switched to default theme → issue persists
Created new admin user → issue persists
Tested in private browsing → issue persists
Disabled LiteSpeed Cache → no change
Disabled SecuPress → no change (except admin hover fix)
Removed and reinstalled Redirection (including data) → no change
Disabled /mu-plugins → no change
Tested PHP 8.3 and 8.1 → no change
Comparison with Staging
Same site cloned to staging
Same plugins active
Same JS files
→ Redirection works correctly on staging
Conclusion
This is not:
a plugin conflict
a theme issue
a corrupted JS file on disk
a REST API issue
This is most likely:
JavaScript responses being truncated or altered at runtime on production
Resulting in:
broken script parsing
failure of WordPress admin JS bootstrap
Redirection unable to initialize
关闭于 2026-04-18 2 条评论