Support » Plugin: Instant Indexing for Google » Uncaught TypeError: constructor must be array or instance of Google\Client

  • Resolved cracsoft

    (@cracsoft)


    Hey,
    we are getting critical error from your plugin after deleting a post from WP admin panel.
    It looks like a google/apiclient-services library has changed and it’s not compatible with your plugin.

    We are using the latest version of your plugin 1.1.16 but previous versions are also not working (they are throwing an error too).

    Fatal error: Uncaught TypeError: constructor must be array or instance of Google\Client

    Stacktrace:

    in /ROOT_DIRECTORY/wp-content/plugins/fast-indexing-api/vendor/google/apiclient/src/Service.php:43 Stack trace: #0 /ROOT_DIRECTORY/wp-content/plugins/fast-indexing-api/vendor/google/apiclient-services/src/Indexing.php(52): Google\Service->__construct() #1 /ROOT_DIRECTORY/wp-content/plugins/fast-indexing-api/includes/class-instant-indexing.php(377): Google\Service\Indexing->__construct() #2 /ROOT_DIRECTORY/wp-content/plugins/fast-indexing-api/includes/class-instant-indexing.php(1093): RM_GIAPI->send_to_api() #3 /ROOT_DIRECTORY/wp-includes/class-wp-hook.php(307): RM_GIAPI->delete_post() #4 /ROOT_DIRECTORY/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #5 /ROOT_DIRECTORY/wp-includes/plugin.php(476): WP_Hook->do_action() #6 /ROOT_DIRECTORY/wp-includes/p in /ROOT_DIRECTORY/wp-content/plugins/fast-indexing-api/vendor/google/apiclient/src/Service.php on line 43

    Best

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @cracsoft,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    It seems to be working fine on our end. It seems like some other plugin also has the Google API client library, which is conflicting.

    Assuming you are using the latest version of all the plugins, themes, and WordPress (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Only the site admin would know, and your users won’t be affected by this troubleshooting.

    You can follow this video tutorial as well:

    Looking forward to helping you.

    Same error on my end here… just added a new post and got this error. Never had any conflicts so far

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @animesubways,

    Could you please follow the troubleshooting guide shared previously and see if that helps?

    Please let us know how that goes.

    Hello, I have had the same problem and the plugin that caused it was ElementsKit Pro, is it possible to solve this problem to use both plugins?

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @angeldavo,

    Please get in touch with the plugin developers and ask them if it’s possible to update both the Guzzle HTTP library and Google API versions to the latest ones to prevent any conflicts with our plugin.

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: constructor must be array or instance of Google\Client’ is closed to new replies.