WordPress.org

Ready to get started?Download WordPress

Forums

Google Custom Search
[resolved] Notice: wp_enqueue_script was called incorrectly (5 posts)

  1. @wikicms
    Member
    Posted 2 years ago #

    WP 3.3
    When install your plugin, I recieved notice message:
    Notice: wp_enqueue_script and wp_enqueue_style was called incorrectly
    How to fixed this?
    Thanks.

    http://wordpress.org/extend/plugins/google-custom-search/

  2. pndsWeb
    Member
    Posted 2 years ago #

    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.

  3. jimmyali
    Member
    Posted 2 years ago #

    Thank you! That fixed my problem.

  4. likeabikemike
    Member
    Posted 2 years ago #

    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.

  5. edwinkwan
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic