WP error message and broken frontend after update to Pro 6.0.3, looks fine in Cornerstone

Immediately after updating Pro to 6.0.3 from 5.x, front-end styling is broken for most elements but looks fine in Cornerstone. Also displayed a WP error message on front-end and WP dashboard:

Notice : Function wp_enqueue_script was called incorrectly . Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts , admin_enqueue_scripts , or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.) in…

1 Like

Hey @emormile,

Thanks for writing in! Please do check your child theme’s functions.php file. There could be a PHP code that may have caused the issue. You can switch to the parent theme and see if the PHP Notices disappear. Meanwhile, if you want to get rid of those PHP notices, you can disable the WP Debug mode. Those PHP Notices does not affect the site’s features and functionality by the way.

Best Regards.

Thanks. Would this explain why the styling on the sliders are broken?
Switching to the parent theme did not change anything.

Hey @emormile,

After updating your website from major updates, please remember to clear all your caching features (plugin, server-side, CDN, and browser’s cache) after updating so that the code from the latest release is always in use. This will help you to avoid any potential errors.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.