Redefining already defined constructor for class CustomGoogleSearch

Hey,

I'm getting the following errors:

Strict Standards: Redefining already defined constructor for class CustomGoogleSearch in /Applications/MAMP/htdocs/xmatters/wp-content/plugins/custom-google-search/custom-google-search.php on line 46

Strict Standards: Redefining already defined constructor for class CGS_Widget in /Applications/MAMP/htdocs/xmatters/wp-content/plugins/custom-google-search/widget.php on line 20

Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/xmatters/wp-content/plugins/custom-google-search/custom-google-search.php:46) in /Applications/MAMP/htdocs/xmatters/wp-content/themes/xmatters/src/functions.php on line 2

Anything we can do about it?

Thanks,
Sam

  • Predrag Dubajic
    • Support

    Hey Sam,

    Hope you're doing well today :slight_smile:

    Can you try going to your plugin files under wp-content/plugins/custom-google-search/ and in custom-google-search.php on line 39 remove this part of code:

    function CustomGoogleSearch() {
        __construct();
    }

    In the same folder in widgets.php on line 13 remove this code:

    function CGS_Widget() {
        __construct();
    }

    Save the changes and see if you are still seeing those errors.

    Best regards,
    Predrag

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.