The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. @wikicms
    Posted 4 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?


  2. pndsWeb
    Posted 4 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() {
    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
    Posted 4 years ago #

    Thank you! That fixed my problem.

  4. likeabikemike
    Posted 4 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
    Plugin Author

    Posted 4 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

  • Google Custom Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic