Forums

Google Custom Search
Notice: wp_enqueue_script was called incorrectly (3 posts)

  1. @wikicms
    Member
    Posted 9 months 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 4 months 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 4 months ago #

    Thank you! That fixed my problem.

Reply

You must log in to post.

About this Plugin

About this Topic