Please try installing https://wordpress.org/plugins/enable-jquery-migrate-helper/ to see if that fixes the issue.
For more information on what this is all about, see https://wptavern.com/major-jquery-changes-on-the-way-for-wordpress-5-5-and-beyond
If the plugin helps, please contact the developers of the plugins or themes noted in its admin messages.
Thread Starter
theobs
(@theobs)
So after inquiring a bit, none of the enqueued scripts of my theme (from functions.php) are loaded, only on 404.php
The theme is based on underscores. (_s)
Edit: the plugin didn’t change the issue so far.
It’s probably something simple I’m not aware of, only the 404.php page has this issue. I’m quite new to wp and developpment still.
-
This reply was modified 5 years, 5 months ago by
theobs.
@theobs
Is that by any chance a custom 4o4 template? If so make sure you have get_header(); and get_footer(); in their respective locations.
Thread Starter
theobs
(@theobs)
@wvfitzgerald they’re here all right
Try deactivating all plugins and switching to twentytwenty theme. Check the 404 page’s source HTML, you should see that a script tag referencing the theme’s index.js file is in the head section. This demonstrates that 404 scripts do get enqueued. Restore your theme and check again. Its scripts should appear in page source if it has properly enqueued them. If not, please show us the code you used to enqueue.
If the scripts appear, restore your normal plugins, one at time, until the scripts go away. You’ve isolated the cause of your trouble.