I recently updated my site from EE5.4 to EE6.0.1 following the documentation and everything working fine except some scripts on the admin side.
I have two errors and nothing like a drop-down or switcher not working properly in the admin panel.
The first and persistent one:
Uncaught ReferenceError: _ is not defined
Underscore 5
admin.php:7365:5
The second and just sometimes appear:
Uncaught ReferenceError: React is not defined
<a> mywebsite.com/admin.php?S=...&D=cp&C=javascript&M=combo_load&plugin=ui.touch.punch&file=cp/date_picker,cp/perpage,cp/publish/entry-list,components/bulk_edit_entries,cp/publish/bulk-edit,fields/relationship/mutable_relationship,fields/relationship/relationship&v=1611744164:665
admin.php:665:1
Any ideas how I can fix them without to proceed to reinstall the latest version of EE?
Thanks a lot for your time and help!
Hi Pavel,
Thanks for getting in touch about this.
What version of PHP and MySQL are you currently running?
Also, just to throw it out there, for errors like this, you’ll generally see a faster response time in Slack. Theres currently just shy of 7,000 people in there, that are happy to lend a hand!
Thanks, -Tom Jaeger
For anyone finding this via Google, I also encountered an issue like this.
In my particular case, we were working with a Git repository that was ignoring vendor
and it turns out that some of the JS that EE relies on was being stored in /themes/ee/cp/js/build/vendor/
(along with a few other paths).
The goal of ignoring vendor in our repo was to keep certain files out of the repository that would be created during a build pipeline. The solution was as simple as doing what we should have done in the first place - replacing vendor
with a more precise path in .gitignore.
Your mileage may vary.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.