• Resolved cleaningdoctor

    (@cleaningdoctor)


    Site Kit plugin was installed and working on our WP site previously, however it has not been working for some time now.

    I have uninstalled and reinstalled the plugin, cleared cached etc.

    When I try to activate a new install of the plugin, it attempts to login via our Google admin account, but after the “Have Google verify site ownership” it fails and gives me a 404 error.

    After this, the dashboard screen just remains stuck on the sign in prompt.

    Is it possible that there is a html token remaining in the website code from the previous

    I have inspected the header.php file to look for the token, but cannot find any reference to Site Kit.

    Can you assist please?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hello @cleaningdoctor thanks for getting in touch. I’d be happy to assist you with this. Could you please share the following:

    1. Your?Site Health information. You can?use this form?to share privately if preferred.?Please include your hosting provider on the form.
    2. Have you recently changed your website domain or performed a site migration?
    3. Please share any?browser console errors?that appear when checking the Site Kit dashboard from a Chrome browser?incognito window?once more.

    You can also attempt a Site Kit reset and try to set up Site Kit once more to see if this resolves the issue. If you have any questions let me know.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Thanks for your speedy response.

    1: I have submitted the Health Data via the form.

    2: Yes, we migrated web hosts about 3 months ago

    3: Console error: “Live Support not available : An unknown error occurred.”

    I attempted to reset sitekit via tools, but am experiencing the same 404 error after the login attempt.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor Thanks for sharing the information that’s very helpful indeed. When you migrated your site, did the domain/URL or the admin path change as part of this?

    Could you also try accessing your site via an incognito window and see if you encounter the same 404 error from here? Please also share the URL you land on when hitting the 404 error.

    Let me know if you have any other questions in the meantime.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Hello Adam, no neither the domain/url or admin path have changed.

    I have now tried to sign in via an incognito browser, but am getting the same 404 error.

    I have also tried selecting and deselecting the Connect Google Analytics option, and it is still giving a 404.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor Thanks for clarifying. Could I please ask you to try going this URL which creates a temporary WordPress test site for you with Site Kit pre-installed. Could you then set up Site Kit on this site and see if you run into the same issue or if you can complete the setup. Let me know how this goes for you and if you have any further questions at this time.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Thanks for that Adam. Yes, I was able to get past the login step and successfully log into Site Kit from my Google Admin account via that method. It did not produce the 404 error.

    I hope that this helps to identify the issue. Can you advise what to do next please?

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor As you are able to successfully set up on the test site then this could point to the issue being at host/server level. I’d recommend reaching out to your hosting provider at this stage and checking to see there are not any blocks on Google services including Site Kit or any firewall/security rules that could be causing this.

    If you have no success with this then please let me know and I can help look further into this with you. Let me know if you have any questions in the meantime.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Hello Adam, I have conferred with the host GoDaddy and we have not been able to resolve the issue.

    GD have advised that “Since you have cPanel hosting plan I am sure that we don’t have any restrictions on it.”

    We tried increasing memory limits, deactivating htaccess, made sure that extensions scurl, json, and mbstring are enabled, but I still got the 404 when the plugin tried to login.

    Then we tried to deactivate all the plugins, including Wordfence etc, but I still got the 404 when the plugin tried to login, but I still got the 404 when the plugin tried to login.

    GD are advising they think the issue is related to reauthentication or changing API due the migration.

    Can you advise please Adam?

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor Thanks for checking this with your hosting provider and sorry to hear you didn’t find a solution. Could I ask to please share the URL you are landing on when you hit the 404 page error? This may contain information that can help us to see why this might be happening when trying to sign in with Google.

    Please also feel free to share a recording of this happening which may prove useful to us to see exactly what’s happening here. You can use a service such as Loom to capture this and share the video URL here.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Plugin Support Adam Dunnage

    (@adamdunnage)

    Thanks for sharing the recording that has helped a lot. From this and from the URL you have shared I can see that you are being redirected to https://cleaningdoctor.net/cms/wp-admin/. This page doesn’t exist and is why you are getting a 404 error. It looks like you previously had WordPress installed in the “cms” folder that you can see in that URL you are redirected to.

    Because that no longer exists and I suspect changed when you migrated web host, Site Kit is expecting this when you are signing in and because it doesn’t exist you are hitting this issue.

    Firstly, could you try setting this up once more and at the stage you hit the 404 error page, could you try removing the /cms from the URL and trying this? So the URL will be:

    https://cleaningdoctor.net/wp-admin/?action=googlesitekit_proxy_verify&googlesitekit_code=sitekit-EhIKB1Nlc3Npb24QgICAtpzYngg&googlesitekit_site_code=4%2F0AeanS0ZKAuaIuq_b6dZhbsgB1JDlPuYkyCOZjDLyKR-l8RavLpcW02mbCN5PrEx3SlRYow&googlesitekit_verification_token=6621b68affd9ff4d&googlesitekit_verification_token_type=FILE&nonce=524d921454&step=verification

    Let me know if you can then continue to setup this way. If not then we may have to update this on the service ourselves for you but please could you try this first and let me know how it goes.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor Just to be clear here as I wasn’t above, the URL you get when setting up next time will differ slightly and won’t be the same as the one I have shared above. You just need to remove the “cms” directory from the URL at that time you hit the 404 page and try again.

    Let me know how this goes.

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    YES! With a bit of fiddling, that has sorted the issue.

    I was able to proceed through the login steps, but initially the SK dashboard gave me the error “‘redirect_uri’ mismatch”. When I clicked on the Redo plugin setup button, it successfully completed the setup and analytics data is now displaying in my SK Dashboard. Thank you!

    Can I ask why the SK plugin was trying to access the old cms path? Is there something within the current version of WP, or is it retaining this path from when WP was first setup? Thanks again!

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @cleaningdoctor Excellent! I am glad to hear you have managed to resolve this after trying the steps above. This would have been retained from when you first set Site Kit up on your previous web host which I presume had the “cms” path. This was why you were being redirected here but removing that part of the URL allows you to continue through setup and once done, your records are updated on the Site Kit service so you shouldn’t encounter this issue again.

    Glad I could help you with this and thanks for your patience throughout! Is there anything else I can help you with?

    Thread Starter cleaningdoctor

    (@cleaningdoctor)

    Thank for the explanation and all your help. Very much appreciated.

Viewing 15 replies - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.