Getting a 404 Error
-
I get a 404-page error when I try to Connect Site Kit to my google account.
I have shared my site health information via the private form.
-
Thanks for reaching out and sharing the additional information. From checking your WordPress environment I see a couple of migration related plugins. Did you have Site Kit setup on a domain previously? If so can you try resetting the plugin before attempting setup once more (Tools > Available Tools > Reset Site Kit)?
If you encounter the same 404 page after resetting, or if you never migrated the site previously can you share the following information:
- At what stage specifically do you get directed to a 404 page (ie. After clicking on the “Sign in with Google” button)?
- Has Site Kit worked for you previously?
- Can you share a screenshot of the 404 page you land on, using a service such as Imgur or Jumpshare?
Let me know if you have any questions with the above.
Hi, thanks for the quick response.
2: Yes it worked a while back before we updated the theme with WooCommerce. We have since changed the hosting server if the makes a difference.
Cheers
Many thanks for sharing the additional information, very useful. In other cases there were web application firewalls at host level which impacted Site Kit setup. As you mentioned Site Kit setup completed successfully previously before moving hosts can you share your current hosting provider? I can then see if I can determine anything impacting setup in your case.
You may also wish to check for any Firewall or other security features from your hosting control panel. If you can determine any such feature you may wish to check does setup proceed with this temporarily deactivated.
I am using https://www.siteground.com/ as the host.
I checked in with my host about a potential firewall issue and this is what they said:
Currently, this wouldn’t be something related to our system or the server in general as it’s related to a Google service separately, we have a known issue regarding our DNS being resolved by Google’s Crawler itself, but it’s a separate service not related to this one you are currently using
-
This reply was modified 4 years, 6 months ago by
ekimbo.
Many thanks for the update. While I setup an environment similar to your own and do some testing would it be possible for you to perform the checks below, which can help rule out third party plugins or browser related conflicts:
- Login to your site from a Chrome browser incognito window
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google”
- Attempt to setup Site Kit once more
Let me know how you get on with the above, or ask if you have any question.
I was able to follow your steps and get a fatal error:
Many thanks for providing the additional insights. The errors within the screenshot you kindly provided indicate what look like theme related errors. With that can you share at what point you encountered this fatal error?
If you’re able to create a temporary new WordPress install on the same hosting it would be great to know if you’re able to proceed with Site Kit. When doing so please use the same Google account which you’re using on the site which is experiencing this setup issue.
I’ve also tested on a clean SiteGround WordPress site and I don’t encounter any issues with all configurations tested with the SG Optimizer and SiteGround Security plugins. Testing the above may help identify whether the 404 page you’re encountering is related to your environment.
@ekimbo Checking in – are you still having trouble here?
Hi @ @shetheliving and @jamesosborne,
I finally figured out my problem, and I hope my experience helps someone out there who has tried just about anything.
I originally installed my site in a subdirectory “cms/” and activated the plugin successfully and after the redesign, I moved the site to the main directory.
So when I tried to verify Site Kit, the 404-page URL returned had “cms/” in it.
For some reason, site Kit had cached the old setup and wasn’t able to pull the updated location of the site (without the subdirectory “cms/”).
All I did was remove “cms” from the link and refresh the page and was able to verify my setup and I did the same for connecting my google analytics.
So anytime you get a 404 error, rule out if Sitekit is pointing to the right directory.
Here is the ticket that pointed me in the right direction Ticket.
Thanks for the support, this is a great plugin.
-
This reply was modified 4 years, 6 months ago by
ekimbo.
Many thanks for the update, great to hear that you’re now connected. We’ll also keep this in mind should other users encounter the same, appreciate the insights in your case.
While in most cases the plugin will recognize a URL change and ask you to redo the plugin setup other option before performing any change is to reset the plugin. While this will allow you to connect Site Kit on the new URL it will also disconnect all services for all users, requiring the plugin to be setup once more and each module once again connected.
Based on your experience I’ll also check with the team for the possibility of adding additional insights to the Site Kit section of a users Site Health information, based on any directory initially used when connecting the plugin.
If you have any further queries be sure to reach out. And if you’ve been using the plugin for a while now we’d love to hear your plugin feedback.
@jamesosborne I reset the plugin several times: Tools > Available Tools> Reset Kit but that never seemed to do the job. I also uninstalled and reinstalled the plugin, but still got the 404 error.
@ekimbo Thanks for the confirmation. Based on your experience what I’ll do is try to replicate this and ensure we’re aware of various setup issue when using subdirectory installs and then moving to the primary domain.
Out of curiosity can you confirm that Site Kit is remains working for you as expected with the changes you made? If so I’ll close this support topic.
@jamesosborne yes Site Kit is working for me.
You can close the ticket.Great to hear it. Thanks again and best of luck with your site.
The topic ‘Getting a 404 Error’ is closed to new replies.