• Resolved wpforumskc

    (@wpforumskc)


    Not sure why this started today, but back end of WP site is crashing. Fatal PHP errors coming from Site Kit.

    thrown in /home/xxx/public_html/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Service.php on line 40 [27-Jun-2023 06:17:45 UTC] PHP Fatal error: Uncaught TypeError: Google\Site_Kit_Dependencies\constructor must be array or instance of Google\Client in /home/xxx/public_html/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Service.php:40

    Also

    /home/xxx/public_html/wp-content/plugins/google-site-kit/third-party/google/apiclient-services/src/Analytics.php(85): Google\Site_Kit_Dependencies\Google\Service->__construct(Object(Google\Site_Kit\Core\Authentication\Clients\Google_Site_Kit_Proxy_Client))

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for getting in touch @wpforumskc. So we can determine more on this and ensure Site Kit works as expected, please share the following:

    1. Your Site Health information. You can use this form to share privately if preferred.  
    2. Can you try to deactivate and uninstall Site Kit before installing once more and checking does this error appear? If you remain without have access to your wp-admin panel you can manually deactivate Site kit via removing the plugin directory using FTP or your web hosting file manager (wp-content/plugins/google-site-kit).

    Once we have the above we can investigate this further. Some troubleshooting steps we may suggest is switching PHP version temporarily, or checking for third party plugin conflicts.

    Let me know if you have any questions with the above.

    Thread Starter wpforumskc

    (@wpforumskc)

    Reinstall worked. thanks.

    Plugin Support James Osborne

    (@jamesosborne)

    Glad to hear it @wpforumskc. If you run into any further errors or if you have any Site Kit related queries be sure to get in touch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Encaught TypeError \constructor must be an array’ is closed to new replies.