Deprecated notices on Custom Google Search

Hi I'm receiving deprecated notices on Custom Google Search, is it compatible with the Wordpress 4.4.2?

  • Rupok

    Hi LUIS

    Hope you had a wonderful day.

    I just tried to regenerate the issue on my test site with latest version of Custom Google Search and WordPress 4.4.2 but didn't see any notice.

    Which PHP version are you using in your server? Can you share the notices with us so we could understand what's causing this? I could tell you better about the issue if I could see it live, check your current configuration and make some tests on your site. Would you mind allowing Support Access so we can have a closer look at this?

    To enable support access you can follow this guide here:

    Have a nice day. Cheers!

  • Nithin

    Hi Luis,

    Hope you are doing good. :slight_smile:

    All WPMU DEV plugins are ‘Guaranteed To Work’ according to their listed compatibility with the latest versions of WordPress, Multisite and BuddyPress.

    You can find Custom Google Search plugin compatible up to the latest version of WordPress 4.4.2 and should work smoothly. Being a legacy plugin, the notices you see is more of a deprecated notices for the PHP 4 style constructors, disabling the WP_DEBUG mode in your wp-config.php file should remove these notices.

    define( 'WP_DEBUG', false );

    If its okay for you then please grant support staff access so I can take a closer look. You can grant access from WPMU DEV > Support > Support Access > Grant Access or see this manual.

    Kind Regards,

  • neotrope

    I am using the plugin also, and not calling widget on page, but using simple search box to call the default WP site search URL ...

    however this still showing when in debug mode:

    Notice: The called constructor method for WP_Widget in CGS_Widget is deprecated since version 4.3.0! Use
    instead. in /var/www/vhosts/ on line 3718 Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CustomGoogleSearch' does not have a method 'add_js_css' in /var/www/vhosts/ on line 525

    Looking to see if updated version of plugin I might have missed :slight_smile:

  • Nithin

    Hi neotrope,

    Hope you are doing good today. :slight_smile:

    Please try the attached version below, it should remove the deprecated notices, and Strict Standards notices.

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'CustomGoogleSearch' does not have a method 'add_js_css' in /var/www/vhosts/ on line 525

    I'm not able to replicate this error, have you tweaked your plugin? This might be because you have re-declared add_js_css in your theme, or someplace else. Please try switching to a default theme, and check whether you are able to see this notice.

    As mentioned above, these logs are notices, and doesn't tend to break the website, or plugins functionality. Turning the debug mode off, would be the ideal if your website is live, and not meant for testing.

    I hope this helps. Have a nice weekend. :slight_smile:

    Kind Regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.