URL generated incorrect
-
I’m trying to validate Google Site Kit plugin on my site https://www.sherwincurrid.com/
I’ve successfully logged in but when it is trying to verify site ownership the URL produced is https://www.sherwincurrid.com/wp-admin/index.php?action=googlesitekit_proxy_verify&googlesitekit_code=sitekit-AQY4bRehTvuzocTc7uZzCZ&googlesitekit_site_code=4%2F0AeaYSHA9F9DSBYNHFra_C0u-GSRa6R9X6PgxArB3Qqkh9rhJLLqjVuuC6U47c5Kxg8oRkg&googlesitekit_verification_token=d408a47404ab724d&googlesitekit_verification_token_type=FILE&nonce=88220417d0&step=verification and says File Not Found.My developers have advised-
The URL it generates is wrong so it’ll never callback.
https://www.sherwincurrid.com/wp-admin/index.php?……
The page I need help with: [log in to see the link]
-
Thanks for reaching out @beckyaffinity. From the checks I performed on your site, it looks like you are using a standard wp-admin path as per the callback URL. I did notice a
/wp
reference where you may have your WordPress files located (from reviewing your sites source code and your public rest endpoints). This could be potentially be impacting Site Kit set up if you had the plugin connected previously with a different setup.To determine more on this, please share the following:
- Your?Site Health information. You can?use this form?to share privately if preferred.??
- Was the plugin setup previously on this site, maybe before making a site URL change or with WordPress files in the root directory as opposed to a
/wp
directory? I ask as if there are traces of a previous set up, the plugin may be looking for records for a previous set up. If you can revert to that set up, I suspect you will be able to complete setup. At that point you can reset the plugin so all records are cleared (Tools > Available Tools > Reset Site Kit), before then moving WordPress files into it’s own directory once more.
Once we have the above information, we can advise on this further. One troubleshooting suggest we may advise on, is to manually add the /wp path to the callback URL on the page you land on.
Let me know if you have any questions with the above.
` wp-core version: 6.4.2 site_language: en_US user_language: en_US timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 6 dotorg_communication: true wp-paths-sizes wordpress_path: /mnt/www/sherwincurrid.com/www/web/wp wordpress_size: 54.02 MB (56645245 bytes) uploads_path: /mnt/www/sherwincurrid.com/www/web/app/uploads uploads_size: 241.85 MB (253601056 bytes) themes_path: /mnt/www/sherwincurrid.com/www/web/app/themes themes_size: 1.80 MB (1891845 bytes) plugins_path: /mnt/www/sherwincurrid.com/www/web/app/plugins plugins_size: 107.71 MB (112937265 bytes) database_size: 91.95 MB (96419840 bytes) total_size: 497.34 MB (521495251 bytes) wp-dropins (1) advanced-cache.php: true wp-active-theme name: Affinity WordPress Theme Child (affinity-wordpress-theme-child) version: 1.0.0 author: Joel Graham author_website: (undefined) parent_theme: Affinity WordPress Theme (affinity-wordpress-theme) theme_features: core-block-patterns, widgets-block-editor, menus, title-tag, custom-logo, post-thumbnails, woocommerce, excerpt, widgets theme_path: /mnt/www/sherwincurrid.com/www/web/app/themes/affinity-wordpress-theme-child wp-parent-theme name: Affinity WordPress Theme (affinity-wordpress-theme) version: 1.0.0 author: Joel Graham author_website: (undefined) theme_path: /mnt/www/sherwincurrid.com/www/web/app/themes/affinity-wordpress-theme wp-mu-plugins (2) Bedrock Autoloader: version: 1.0.3, author: Roots Disallow Indexing: version: 1.0.0, author: Roots wp-plugins-active (15) ACF Helper: version: 1.0.0, author: Affinity Advanced Custom Fields PRO: version: 6.2.5, author: WP Engine (latest version: 6.2.6.1) Better Search Replace: version: 1.4.5, author: WP Engine Cookie Notice & Compliance for GDPR / CCPA: version: 2.4.13, author: Hu-manity.co Duplicate Page: version: 4.5.3, author: mndpsingh287 Fly Dynamic Image Resizer: version: 2.0.8, author: Junaid Bhura Formidable Forms: version: 6.8, author: Strategy11 Form Builder Team (latest version: 6.8.2) Formidable Forms Pro: version: 6.7.1, author: Strategy11 (latest version: 6.8.2) Redirection: version: 5.4.2, author: John Godley Simple Sitemap: version: 3.5.10, author: David Gwyer (latest version: 3.5.11) Site Kit by Google: version: 1.120.0, author: Google W3 Total Cache: version: 2.6.1, author: BoldGrid WP Cerber Security, Anti-spam & Malware Scan: version: 9.6.2, author: Cerber Tech Inc. Yoast SEO: version: 21.9.1, author: Team Yoast (latest version: 22.0) Yoast SEO Premium: version: 21.9, author: Team Yoast (latest version: 22.0) wp-plugins-inactive (1) Yoast Test Helper: version: 1.17, author: Team Yoast (latest version: 1.18) wp-media image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available imagick_version: Not available file_uploads: 1 post_max_size: 8M upload_max_filesize: 2M max_effective_size: 2 MB max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM ghostscript_version: 9.50 wp-server server_architecture: Linux 5.15.0-1036-aws x86_64 httpd_software: nginx/1.18.0 php_version: 8.1.27 64bit php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 128M admin_memory_limit: 256M max_input_time: 60 upload_max_filesize: 2M php_post_max_size: 8M curl_version: 7.68.0 OpenSSL/1.1.1f suhosin: false imagick_availability: false pretty_permalinks: true current: 2024-02-19T08:50:12+00:00 utc-time: Monday, 19-Feb-24 08:50:12 UTC server-time: 2024-02-19T08:50:10+00:00 wp-database extension: mysqli server_version: 5.7.44-log client_version: mysqlnd 8.1.27 max_allowed_packet: 16777216 max_connections: 304 wp-constants WP_HOME: https://www.sherwincurrid.com WP_SITEURL: https://www.sherwincurrid.com/wp WP_CONTENT_DIR: /mnt/www/sherwincurrid.com/www/web/app WP_PLUGIN_DIR: /mnt/www/sherwincurrid.com/www/web/app/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 256M 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 WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined wp-filesystem wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable formidable license: Active (Elite) google-site-kit version: 1.120.0 php_version: 8.1.27 wp_version: 6.4.2 reference_url: https://www.sherwincurrid.com amp_mode: no site_status: not-connected user_status: not authenticated verification_status: not-verified connected_user_count: none 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::["pagespeed-insights"]: ? googlesitekit_manage_module_sharing_options::["search-console"]: ? googlesitekit_manage_module_sharing_options::["pagespeed-insights"]: ? googlesitekit_delegate_module_sharing_management::["search-console"]: ? googlesitekit_delegate_module_sharing_management::["pagespeed-insights"]: ? enabled_features: adsModule: ? audienceSegmentation: ? gm3Components: ? search-console_shared_roles: none search-console_management: owner pagespeed-insights_shared_roles: none pagespeed-insights_management: all_admins search_console_property: none analytics_account_id: none analytics_property_id: none analytics_profile_id: none analytics_use_snippet: yes analytics_4_property_id: none analytics_4_web_data_stream_id: none analytics_4_measurement_id: none analytics_4_use_snippet: yes analytics_4_available_custom_dimensions: none
2. I don’t believe this plugin was used previously but will try the steps above.
I tried step 2 and I’m still getting File not found on the following URL when it tries to verify
Many thanks for the update @beckyaffinity. As it sounds like you already reset the plugin based on your comments, I requested a check of your site records on the Site Kit service. This may take a couple of days before I have an update, but once I do, I’ll let you know. At this stage you should be able to complete Site Kit set up.
Note also that if you prefer not to wait, you may be able to proceed with set up following the steps below. This will, however, result in your site URL defaulting to a non www version.
- Visit your site settings (Settings > General).
- Remove the www prefix from both your WordPress address (URL) and your and site address (URL) from
https://www.sherwincurrid....
tohttps://sherwincurrid.....
(Ie. remove only the www from both addresses, with no change the /wp path) - Press the save button.
- Attempt Site Kit setup once more after logging back into your site.
Let me know if you have any questions with the above, or if you have tried changing your site address above.
Thanks, we’ll give that a go and wait to hear from you.
We’ve changed the site config and the plugin is now working. Please let me know when you have a fix and we can revert back to www.
Have you got an update?
Thanks for the update @beckyaffinity. I did hear back today regarding a check of your records. It looks like the records don’t reflect any
/wp
path. I requested to clear those records, which will hopefully be complete today.As you’re now already connected, rather than waiting to clear your records, if you wish you can revert what you’ve already done. This may allow you to proceed, with your standard URL (which includes the www prefix). The steps are the same as provided previously, only this time you’re adding the www prefix. See below:
- Visit your site settings (Settings > General).
- Remove the www prefix from both your WordPress address (URL) and your and site address (URL) from?
https://sherwincurrid....
?to?https://www.sherwincurrid.....
? - Press the save button.
- Attempt Site Kit setup once more after logging back into your site.
I can’t guarantee the above will allow you to proceed, as it depends on your WordPress constants and the previous site records. But do let me know how you get on. If you are able to proceed, I’ll cancel the request to clear your site records.
We re-added the prefix, then tried to re-connect to sitekit and get the following- getting credentials failed
https://sherwincurrid.affinityagency.co.uk/app/uploads/2024/02/Screenshot-2024-02-22-at-11.35.10.png
Please keep the request to clear the site records as we need this resolved asap.
Thanks for the update. The latest error you’re facing is a known issue impacting users as of today. We have more details on this here.
I’ll let you know as soon as I have an update on this. This should be addressed at some stage today. At that point you can attempt set up once more.
Thanks for your patience on this @beckyaffinity. We’re glad to report that this issue has now been resolved, with more details added to?this sticky post. Please try to set up the plugin once more. If you encounter any errors, let me know and we can investigate further. I’m curious to know if the most recent changes you made regarding your site URLs will allow you to proceed.
Hi James,
It’s working now, thanks for your help resolving.
Glad to hear it @beckyaffinity, and really appreciate the update. If you run into any further issues, be sure to reach out. Thank you.
- The topic ‘URL generated incorrect’ is closed to new replies.