Cannot use object of type Google\Site_Kit_Dependencies
-
I get the following error:
Fatal error: Uncaught Error: Cannot use object of type Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request as array in /kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:535
Stack Trace
1.Google\Site_Kit\Core\Authentication\Clients\OAuth_Client->refresh_profile_data()/kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:4242.Google\Site_Kit\Core\Authentication\Authentication->Google\Site_Kit\Core\Authentication\{closure}()/kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-includes/class-wp-hook.php:3083.WP_Hook->apply_filters()/kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-includes/class-wp-hook.php:3324.WP_Hook->do_action()/kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-includes/plugin.php:5175./kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-content/pl in /kunden/365999_20251/webseiten/einflug.net/wp-einflug-www-v1/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php on line 535
-
Hello @confile thank you for opening the support topic and sharing the fatal error you are receiving. Please can share the following information:
- Your Site Health information. You can use this form to share privately if preferred. Please also include your hosting provider here.
- Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status), which differs from your Site Health information? Such errors may include REST endpoint references.
- Is this happening when trying to set up the Site Kit plugin?
If you could also share some screenshots or recordings of this then that would be very helpful. Let me know if you have any questions on the above.
@confile Just checking in to see if you are still facing troubles with your Site Kit? If so then please share the information requested above and we can take a look at this for you.
I’m having the same error. Running php 8.2:
Fatal error: Uncaught Error: Cannot use object of type Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request as array in /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php:535 Stack Trace 1. Google\Site_Kit\Core\Authentication\Clients\OAuth_Client->refresh_profile_data() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:423 2. Google\Site_Kit\Core\Authentication\Authentication->Google\Site_Kit\Core\Authentication\{closure}() /var/www/html/wp-includes/class-wp-hook.php:308 3. WP_Hook->apply_filters() /var/www/html/wp-includes/class-wp-hook.php:332 4. WP_Hook->do_action() /var/www/html/wp-includes/plugin.php:517 5. do_action() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/Google_Site_Kit_Client.php:202 6. Google\Site_Kit\Core\Authentication\Clients\Google_Site_Kit_Client->fetchAccessTokenWithRefreshToken() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/Google_Site_Kit_Client.php:109 7. Google\Site_Kit\Core\Authentication\Clients\Google_Site_Kit_Client->authorize() /var/www/html/wp-content/plugins/google-site-kit/third-party/google/apiclient/src/Client.php:732 8. Google\Site_Kit_Dependencies\Google\Client->execute() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/Google_Site_Kit_Client.php:220 9. Google\Site_Kit\Core\Authentication\Clients\Google_Site_Kit_Client->execute() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Modules/Module.php:370 10. Google\Site_Kit\Core\Modules\Module->execute_data_request() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Modules/Module.php:213 11. Google\Site_Kit\Core\Modules\Module->get_data() /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Modules/REST_Modules_Controller.php:538 12. Google\Site_Kit\Core\Modules\REST_Modules_Controller->Google\Site_Kit\Core\Modules\{closure}() /var/www/html/wp-includes/rest-api/class-wp-rest-server.php:1181 13. WP_REST_Server->respond_to_request() /var/www/html/wp-includes/rest-api/class-wp-rest-server.php:1028 14. WP_REST_Server->dispatch() /var/www/html/wp-includes/rest-api/class-wp-rest-server.php:442 15. WP_REST_Server->serve_request() /var/www/html/wp-includes/rest-api.php:410 16. rest_api_loaded() /var/www/html/wp-includes/class-wp-hook.php:308 17. WP_Hook->apply_filters() /var/www/html/wp-includes/class-wp-hook.php:332 18. WP_Hook->do_action() /var/www/html/wp-includes/plugin.php:565 19. do_action_ref_array() /var/www/html/wp-includes/class-wp.php:399 20. WP->parse_request() /var/www/html/wp-includes/class-wp.php:780 21. WP->main() /var/www/html/wp-includes/functions.php:1334 22. wp() /var/www/html/wp-blog-header.php:16 23. require('...') /var/www/html/index.php:17 24. {main} thrown in /var/www/html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php on line 535
Results of site health:
wp-core version: 6.2.2
site_language: en_US
user_language: en_US
timezone: America/Toronto
permalink: /%category%/%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 10
dotorg_communication: true wp-paths-sizes wordpress_path: /var/www/html
wordpress_size: 91.31 MB (95742038 bytes)
uploads_path: /var/www/html/wp-content/uploads
uploads_size: 20.48 GB (21988596810 bytes)
themes_path: /var/www/html/wp-content/themes
themes_size: 5.12 MB (5372401 bytes)
plugins_path: /var/www/html/wp-content/plugins
plugins_size: 233.53 MB (244877131 bytes)
database_size: 678.66 MB (711626752 bytes)
total_size: 21.46 GB (23046215132 bytes) wp-dropins (2) advanced-cache.php: true
object-cache.php: true wp-active-theme name: GeneratePress (generatepress)
version: 3.3.0
author: Tom Usborne
author_website: https://tomusborne.com
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, editor-color-palette, custom-logo, menus, editor-styles, editor-style, widgets
theme_path: /var/www/html/wp-content/themes/generatepress
auto_update: Disabled wp-themes-inactive (1) Twenty Twenty-Three: version: 1.1, author: the WordPress team, Auto-updates disabled wp-mu-plugins (1) Asset CleanUp Pro: Plugin Filtering: version: 1.0, author: Gabriel Livan wp-plugins-active (34) Akismet Anti-Spam: Spam Protection: version: 5.2, author: Automattic - Anti Spam Team, Auto-updates disabled
Asset CleanUp Pro: Page Speed Booster: version: 1.2.3.1, author: Gabe Livan, Auto-updates disabled
Bing Webmaster Url Submission: version: 1.0.13, author: Bing Webmaster, Auto-updates disabled
Classic Editor: version: 1.6.3, author: WordPress Contributors, Auto-updates disabled
Decon Character Counter: version: 0.0.3, author: Michael Tumlad, Auto-updates disabled
Disable WP Registration Page: version: 1.0.2, author: Yudhistira Mauris, Auto-updates disabled
Disqus for WordPress: version: 3.0.23, author: Disqus, Auto-updates disabled
EWWW Image Optimizer: version: 7.1.0, author: Exactly WWW, Auto-updates disabled
Favicon by RealFaviconGenerator: version: 1.3.27, author: Philippe Bernard, Auto-updates disabled
GenerateBlocks: version: 1.7.3, author: Tom Usborne, Auto-updates disabled
GP Premium: version: 2.3.1, author: Tom Usborne, Auto-updates disabled
Media Library Assistant: version: 3.09, author: David Lingren, Auto-updates disabled
Mediavine Control Panel: version: 2.9.0, author: Mediavine, Auto-updates disabled
MyPopUps: version: 1.2.0, author: Pop-ups, Auto-updates disabled
Perfecty Push Notifications: version: 1.6.2, author: Perfecty, Auto-updates disabled
Permalinks Customizer: version: 2.8.2, author: YAS Global Team, Auto-updates disabled
Remove Dashboard Access: version: 1.1.5, author: TrustedLogin, Auto-updates disabled
Simple CSS: version: 1.1.1, author: Tom Usborne, Auto-updates disabled
Site Kit by Google: version: 1.104.0, author: Google, Auto-updates enabled
Slider Revolution: version: 6.6.14, author: ThemePunch, Auto-updates disabled
Stop Spammers: version: 2023.2, author: Trumani, Auto-updates disabled
Super Page Cache for Cloudflare: version: 4.7.4, author: Optimole, Auto-updates disabled
SVG Support: version: 2.5.5, author: Benbodhi, Auto-updates disabled
Web Stories: version: 1.33.0, author: Google, Auto-updates disabled
WP-Polls: version: 2.77.1, author: Lester 'GaMerZ' Chan, Auto-updates disabled
WP Mail SMTP: version: 3.8.0, author: WP Mail SMTP, Auto-updates disabled
WP Rocket: version: 3.14.1, author: WP Media, Auto-updates disabled
WP Rollback: version: 1.7.3, author: GiveWP.com, Auto-updates disabled
WP User Avatars: version: 1.4.1, author: Triple J Software, Inc., Auto-updates disabled
Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates disabled
Yoast SEO: version: 20.11, author: Team Yoast, Auto-updates enabled
Yoast SEO: News: version: 13.1, author: Team Yoast, Auto-updates enabled
Yoast SEO Premium: version: 20.11, author: Team Yoast, Auto-updates enabled wp-media image_editor: EWWWIO_Imagick_Editor
imagick_module_version: 1809
imagemagick_version: ImageMagick 7.1.1-11 Q16-HDRI x86_64 21206 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 64M
upload_max_filesize: 64M
max_effective_size: 64 MB
max_file_uploads: 20
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: 9.27 wp-server server_architecture: Linux 4.18.0-348.20.1.el8_5.x86_64 x86_64
httpd_software: Apache/2.4.37 (Red Hat Enterprise Linux) OpenSSL/1.1.1k
php_version: 8.2.8 64bit
php_sapi: fpm-fcgi
max_input_variables: 5000
time_limit: 0
memory_limit: 2G
max_input_time: 60
upload_max_filesize: 64M
php_post_max_size: 64M
curl_version: 7.85.0 OpenSSL/1.1.1k-fips
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true wp-database extension: mysqli
server_version: 10.11.4-MariaDB-log
client_version: mysqlnd 8.2.8
max_allowed_packet: 1073741824
max_connections: 151 wp-constants WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/wp-content
WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
WP_MEMORY_LIMIT: 2G
WP_MAX_MEMORY_LIMIT: 2G
WP_DEBUG: false
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: Undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined wp-filesystem wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
mu-plugins: writable google-site-kit version: 1.104.0
php_version: 8.2.8
wp_version: 6.2.2
reference_url: https:/
amp_mode: secondary
site_status: connected-site
user_status: authenticated
verification_status: verified-non-site-kit
connected_user_count: 1
active_modules: site-verification, search-console, analytics, analytics-4, pagespeed-insights
recoverable_modules: none
required_scopes:
openid: ?
https://www.googleapis.com/auth/userinfo.profile: ?
https://www.googleapis.com/auth/userinfo.email: ?
https://www.googleapis.com/auth/siteverification: ?
https://www.googleapis.com/auth/webmasters: ?
https://www.googleapis.com/auth/analytics.readonly: ?
https://www.googleapis.com/auth/tagmanager.readonly: ?
capabilities:
googlesitekit_authenticate: ?
googlesitekit_setup: ?
googlesitekit_view_posts_insights: ?
googlesitekit_view_dashboard: ?
googlesitekit_manage_options: ?
googlesitekit_update_plugins: ?
googlesitekit_view_splash: ?
googlesitekit_view_authenticated_dashboard: ?
googlesitekit_view_wp_dashboard_widget: ?
googlesitekit_view_admin_bar_menu: ?
googlesitekit_view_shared_dashboard: ?
googlesitekit_read_shared_module_data::["search-console"]: ?
googlesitekit_read_shared_module_data::["analytics-4"]: ?
googlesitekit_read_shared_module_data::["pagespeed-insights"]: ?
googlesitekit_manage_module_sharing_options::["search-console"]: ?
googlesitekit_manage_module_sharing_options::["analytics-4"]: ?
googlesitekit_manage_module_sharing_options::["pagespeed-insights"]: ?
googlesitekit_delegate_module_sharing_management::["search-console"]: ?
googlesitekit_delegate_module_sharing_management::["analytics-4"]: ?
googlesitekit_delegate_module_sharing_management::["pagespeed-insights"]: ?
enabled_features:
adBlockerDetection: ?
adsenseSetupV2: ?
dashboardSharing: ?
ga4Reporting: ?
gm3Components: ?
gteSupport: ?
userInput: ?
search-console_shared_roles: none
search-console_management: owner
analytics-4_shared_roles: none
analytics-4_management: owner
pagespeed-insights_shared_roles: none
pagespeed-insights_management: all_admins
search_console_property: https://
analytics_dashboard_view: google-analytics-4
analytics_account_id: 1867?????
analytics_property_id: UA-1867???????
analytics_profile_id: 2353?????
analytics_use_snippet: yes
analytics_4_property_id: 2753726??
analytics_4_web_data_stream_id: 2646??????
analytics_4_measurement_id: G-FD????????
analytics_4_use_snippet: yes wp_mail_smtp version: 3.8.0
license_key_type: lite
debug: No debug notices found.
lite_install_date: Jan 29, 2021 @ 9:27am web_stories web_stories_version: 1.33.0
web_stories_db_version: 3.0.16
web_stories_amp_version: 2.4.1
web_stories_cdn_url: https://wp.stories.google/static/19
web_stories_dev_mode: false
web_stories_theme_support: Disabled
web_stories_enabled_experiments: No experiments enabled
web_stories_libxml_version: 2.9.7@killerpcs Thanks for dropping a comment here. Could we please ask that you create a new topic for this where we can individually help you out there, thanks!
- The topic ‘Cannot use object of type Google\Site_Kit_Dependencies’ is closed to new replies.