craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.28k stars 635 forks source link

[4.x]: Control Panel JS not loading on some structure section entry pages #12473

Closed robinbeatty closed 1 year ago

robinbeatty commented 1 year ago

In the CP, for several sections (all of which are structures), the cp js fails to load beyond installHook.js, so edit page functionality is inoperable.

Spent several days trying to track down why this would be, have cleared all caches, resaved all entries, repaired section structures, reinstall craft, everything I can think of. Can't see what the offending entry types have in common in terms of fields or section settings, that other sections which do load don't have.

If I create a new entry within any of these sections, even then the js doesn't load.

There are no errors in the console. No unexpected behaviours on the frontend.

The db has been migrated up from circa Craft 2.5 but latest upgrade to v4.x has resulted in this problem. As I've only just noticed it (having been building on 4.x locally for last few weeks) I can't be sure the upgrade caused the problem, but it may have done.

I have also tried the same DB on a remote staging env (on a clean install of craft) and same problem there too.

Wondering if anyone can help?

Craft CMS version

4.3.5

PHP version

8.1.11

Operating system and version

Linux 5.15.49-linuxkit

Database type and version

MariaDB 10.4

Image driver and version

Imagick 3.6.0 (ImageMagick 6.9.11-60)

Installed plugins and versions

brandonkelly commented 1 year ago

Where is installHook.js coming from? Craft doesn’t have a file called that.

robinbeatty commented 1 year ago

Solved. It was being caused by authors pasting a Githubissues.

  • Githubissues is a development platform for aggregating issues.