WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Google Custom Search] Notice: wp_enqueue_script was called incorrectly

[Resolved] [Plugin: Google Custom Search] Notice: wp_enqueue_script was called incorrectly

Viewing 4 replies - 1 through 4 (of 4 total)
  • When I installed WordPress 3.3.1, I got the same error. I deactivated my plugins and the error went away. I discovered, in my case, that the Thematic plugin was at fault.

    I read the following in a blog for the Thematic support site:

    To remove the notice, simply replace wp_enqueue_script(‘jquery’); with

    function thematic_enqueue_scripts() {
    wp_enqueue_script(‘jquery’);
    }
    add_action(‘wp_enqueue_scripts’, ‘thematic_enqueue_scripts’);

    To locate the correct file and line, search for “wp_enqueue_script(‘jquery’)” in the entire plugin folder for Google Custom Search.

    This worked for me. Good luck!

    PS, Of course, replace the word ‘thematic’ with your own function name.

    Thank you! That fixed my problem.

    likeabikemike
    Member

    @likeabikemike

    Didn’t fix mine. This is the very first thing I’ve tried with WP. Frustrating that what appears to be a popular plug-in comes in this broken state. Like, nobody noticed there was a bug? Like, oh BTW, before you use this, expect to do some googling for a bug fix. BS.

    Plugin Author edwinkwan
    Member

    @edwinkwan

    Hi likeabikemike,

    I’m just released version 1.3.4 which addressed the problem the plugin is having in wordpress 3.4. Let me know if you are still having problems with it. Thanks for your patience.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: Google Custom Search] Notice: wp_enqueue_script was called incorrectly’ is closed to new replies.