I updated from EE3.5.10 to EE5.3.2. Everything appeared to be working great, until I went to edit a page. Any page that uses the filepicker module - e.g. we have the Expandable Info Boxes and the Banner Images, can no longer be edited.
The edit page appears fine except where the “Image” component would be (for Expandable Info Boxes and the Banner Images) it simply says “Loading …”. It never gets out of this state. If I try to “Save” changes to the page, it does not work.
I can’t see find any error messages or warnings. I checked the XHR monitor tab in the Chrome Developer Tools, and it doesn’t show anything.
UPDATE The bug is not specific to the filepicker. If I go to the “Categories” tab of “Edit Entry”, the “Categories” picker similarly is stuck on “Loading…” (I added some Categories to see if that would help the below issue).
PROBABLY UNRELATED There is one error that is displayed in the Developer Tools but not sure if it’s related:
frostbite.php?S=0&D=…ish&v=1503030584:51 Uncaught TypeError: Cannot read property 'auto_assign_parents' of undefined
at HTMLDocument.<a> (frostbite.php?S=0&D=…ish&v=1503030584:51)
at c (jquery.js?v=1503030551:3)
at Object.fireWith [as resolveWith] (jquery.js?v=1503030551:3)
at Function.ready (jquery.js?v=1503030551:3)
at HTMLDocument.s (jquery.js?v=1503030551:2)
(anonymous) @ frostbite.php?S=0&D=…ish&v=1503030584:51
c @ jquery.js?v=1503030551:3
fireWith @ jquery.js?v=1503030551:3
ready @ jquery.js?v=1503030551:3
Coming from this code:
"y" == EE.category.auto_assign_parents && $("body").on("click", 'input[name^="categories"]:checkbox', function() {
$(this).is(":checked") || $(this).parents("li").first().find("input:checkbox").prop("checked", !1).trigger("change"),
$(this).is(":checked") && $(this).parents("li").find("> label input:checkbox").prop("checked", !0).trigger("change")
}),
I think the error message about categories is unrelated. I noticed that the page is not assigned to a category, and there are no categories that exist in the site. So to see if adding a category would help, I went ahead and added a Category Group and a Category.
The Category edit page has the exact same symptom, though no error messages in the Developer Tool. The “Image” section of the Edit Category page is stuck on “Loading…”., However, on this page it does not block me from saving.
It might be a mod_security issue- sometimes mod_security objects to the structure of ExpressionEngine javascript links. Check your js links and see if one gives you an error.
You can also try the patch in this pull request. This isn’t technically a bug, but it happened enough we decided to change a filename.
Thanks for the tip. I don’t think mod_security is installed, but it does look like there was a problem with the JS.
RESOLVED: It turns out this was related to (essentially) corruption in the themes/ee/ folder. I don’t know if the original upload of the EE5 files got aborted, or simply failed to replace some files, but when I downloaded the entire website and compared it against the original installation ZIP using windiff, I found discrepancies in “themes/ee/”. I force uploaded entire themes folder again, and the problem went away.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.