[5.x]: Just updated to 5.8.21 from 5.8.11, admin panel broken.
What happened?
Description
Just updated to 5.8.21 from 5.8.11, and it broke the admin panel... Things are not loading in dashboard, entries, and so forth. I can navigate to "Updates" which also doesn't load anything. Luckily the site is still live and working, but it's impossible to update.
Developer Inspector Console errors output;
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
iframeResizer.js?v=1764959905:1
IFRAME-RESIZER
Iframe-Resizer 5 is now available via the following two packages:
* @iframe-resizer/parent
* @iframe-resizer/child
Additionally their are also new versions of iframe-resizer for React, Vue, and jQuery.
Version 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.
Please see https://iframe-resizer.com/upgrade for more details.
cp.js:1 Failed to load resource: the server responded with a status of 404 ()
entries:648 Uncaught TypeError: Craft.createElementIndex is not a function
at entries:648:36
and
Uncaught TypeError: Craft.escapeHtml is not a function
at label (footer:1723:33)
at S.item (footer:1776:51)
at S.render (selectize.js?v=1764959905:2:41281)
at S.<anonymous> (selectize.js?v=1764959905:2:31132)
at C (selectize.js?v=1764959905:2:7814)
at S.addItem (selectize.js?v=1764959905:2:30940)
at S.addItems (selectize.js?v=1764959905:2:30820)
at S.<anonymous> (selectize.js?v=1764959905:2:21740)
at C (selectize.js?v=1764959905:2:7814)
at S.setValue (selectize.js?v=1764959905:2:21686)
jquery.js?v=1764959905:2 Uncaught TypeError: Craft.formatInputId is not a function
at s.constructor.init (MatrixInput.js:42:36)
at s.constructor.constructor (Base.js:20:15)
at s.constructor (Base.js:32:21)
at new s.constructor (Base.js:32:21)
at footer:2908:15
at HTMLDocument.<anonymous> (footer:2909:3)
at l (jquery.js?v=1764959905:2:26867)
at c (jquery.js?v=1764959905:2:27169)
Steps to reproduce
- Update to 5.8.21
Expected behavior
Just work
Actual behavior
Breaks the admin
Craft CMS version
5.8.21
PHP version
8.3.6
Operating system and version
Ubuntu Linux 6.8.0-88-generic
Database type and version
MariaDB 10.11.13
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.12-98)
Installed plugins and versions
- Button Box 5.0.1
- CKEditor 4.11.0
- Cloudflare 3.1.0
- Code Field 5.0.1
- Craft Range Slider 5.0.0
- SEO 5.0.0
- Blitz 5.12.5 (disabled)
Try deleting your vendor/ folder, and then running composer install. Does that help?
Also try restarting your web server.
Just tried that, as well as clearing the storage/runtime/ folder, same issue(s) persist.
Try running craft clear-caches/cp-resources, or delete the files within web/cpresources (besides .gitignore).
That did the trick, thanks Brandon!
Sweet! Glad that worked.