PHP Notice: Function wp_enqueue_script was called <strong>incorrectly</strong>

Hello,
I keep getting this error in my debug log.

PHP 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 /public_html/mysite/wp-includes/functions.php on line 5835

Everything appears to be working fine. Here is what I tried so far to correct this:
I deactivated all of my plugins. I deactivated my theme. The error stopped only when I switched themes.
I tried using only the Pro theme, without the child theme, and I still got the message.
I removed the one bit of Global JS, still nothing.

I checked the content of every page, but could not see anything that would trigger this.
I deactivated my header to see if that was causing it, but I still got the error message.

I tried to follow similar resolutions on this forum, but nothing canceled this error.

I got curious and checked my others sites that use this theme (the only theme I would ever use, I love it and the forum so much!!) and they all have that same error too, right up to wp-includes/functions.php on line 5835.

Thanks for any help with this!
Esme

That warning will be removed in 6.0.4. Coming out Monday. jQuery was initialized too early. Thanks have a great weekend!

Beautiful! Thanks so much!! :grinning:

You are most welcome, @ephoenix.

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