• Resolved ABCdatos

    (@abcdatos)


    Hi,

    I’m getting the same error mentioned in https://wordpress.org/support/topic/error-invalid-site-state-null/ , in spanish language due to te site language:

    Error: Estado de sitio null no válido

    This happens when trying to conect wit adsense at /wp-admin/admin.php?page=googlesitekit-dashboard&slug=adsense&reAuth=true

    Related information:

    • Site is a subdomain.
    • PHP 8.1.
    • WP core version 6.0.3.
    • Search Console, Analytics and Pagespeed Insights connected fine.
    • No browser console errors.
    • Not Apache error.log entries.
    • Deactivating all plugins but this one, the failure remains.

    The plugin works fine in another site, subdomain of the same parent domain in the same hosting server. Let’s say site1.mydomain.com and site2.mydomain.com.

    At https://www.google.com/adsense/new/u/0/pub-0123456789/sites/my-sites?url=myparentdomain.com all two subdomains are listed whithout incidences listed.

    I dont’t know what’s the difference between the two subdomains, one working, another one with the failure.

    Best regards.

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

    (@adamdunnage)

    Hi @abcdatos thanks for opening a support topic. As you noted we have had a previous report of this and have yet to find the cause in this case. It would be great if you could provide the information below to help us investigate this further:

    1. Your Site Health information. You can use this form to share privately if preferred.
    2. Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status), which differs from your Site Health information requested above? Such errors may include REST endpoint references.
    3. If you follow the instructions to add a subdomain to your AdSense site here is the subdomain already added? If not could you try adding and then going back to Site Kit and attempting to complete setup.

    Once we have the above information we can move forward with some next troubleshooting steps if you are still facing the issue.

    Thread Starter ABCdatos

    (@abcdatos)

    Hi,

    1.- Filled the form.

    2.- Site health status only shows warnings recomending to delete unused themes and plugins.

    3.- Already added time ago. If I try again, form says “Parece que ya ha añadido este sitio web” (in spanish language: site already added).

    Thanks for your attention. Have a nice day.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @abcdatos Thanks for sharing the information. Currently when trying to access your website it appears to be down. I am getting a 500 error and unable to access the site. See here: https://imgur.com/a/A4nMxnC.

    Is there a reason why you site is currently down? If so would you be able to bring the site back up as this will help with our troubleshooting efforts. This could also be related to the issue you’re facing.

    If you are unsure why the site is not accessible then I’d suggest checking out the WordPress troubleshooting section.

    Once the site is back up let me know and I can run some further checks.

    Thread Starter ABCdatos

    (@abcdatos)

    Hi, @adamdunnage,

    I’m sorry, mass deactivating plugins for testing yesterday and reactivating them via wp-cli unsorted with –all, caused dependencies failure and some required ones remains inactive, causing the 500 error. This are restored and site is operative. I checked to verify Adsense staus remains invalid in Google Site Kit.

    If you thing is interesting, I repeat the submission of the site status data via form.

    Best regards.

    • This reply was modified 1 year, 8 months ago by ABCdatos.
    Plugin Support Adam Dunnage

    (@adamdunnage)

    @abcdatos Thank you fixing this. There is no need to submit the information once more but thank you for offering. Could you please try accessing your site from an Incognito window and see if you experience the same message when trying to set up AdSense?

    Could I also ask you to try disabling any Chrome browser extensions you may have to see if there are any conflicts there. you can get to your extension by going to: chrome://extensions/.

    If possible also could you try downgrading your PHP version to 7.4 to see if this makes any noticeable difference?

    Thread Starter ABCdatos

    (@abcdatos)

    Hi, @adamdunnage, thanks for your help.

    – Removed the only one extension in a Chrome profile.
    – Opened new incognito window from the same profile.
    – Disabled Apache access restrictions to certain /wp-admin files.
    – Removed unneeded /ads.txt from the afected subdomain (parent one is the only needed).
    – Accessed WP Admin from the incognito window.
    – Site Kit > Ajustes (Settings) > Completar la configuración de Adsense (fulfill Adsense settings).

    Error: Estado de sitio null no válido
    (Error: Invalid site state null)

    – Downgraded PHP from 8.1 to 7.4 anf verified in Site Health info says is really 7.4 now.
    – Repeated from the incongito Window: – Site Kit > Ajustes (Settings) > Completar la configuración de Adsense (fulfill Adsense settings)

    Same error.

    Remember I have another subdomain from the same parent domain in the same server without this failure, is available for comparison. All of two have Google Site Kit plugin recently installed, previous usage were Adsense with another plugin and/or manual code insertions. I suggested to change to this plugin for standarization and centralized changes (Adsense and Analytics).

    Also there is WP-CLI available if any command may help you.

    Thanks for your support.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @abcdatos Thank you for all the detailed steps you have taken that’s very useful indeed. You mention that you have another sub domain from the same parent that you have managed to successfully connect AdSense. Have you tried creating a new sub domain once more on the same parent and tried to install and connect AdSense through Site Kit? If not would this be possible?

    Could I also ask how many other sub domains you have where you have successfully connected AdSense through Site Kit? And could you please share one of the other sub domains where you have AdSense connected? You can either share here or add to the private form you filled out previously.

    Thread Starter ABCdatos

    (@abcdatos)

    Hi @adamdunnage,

    I send you the second subdomain details via form, this is the one working fine with AdSense shown as connected in Google Site Kit. Also included you the list of subdomains included in Adsense with the same TLD, all of them accepted.

    Tried to connect a third subdomain caused failure. I this case I uncompleted Analytics due to lack of information to configure it, the expert about this is unavailable today. Adsense failed, this is te important info. I may share this data too if helps.

    Best regards.

    • This reply was modified 1 year, 8 months ago by ABCdatos.
    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing these additional insights, very useful indeed. I’ve added your details to the related GitHub issue.

    While I don’t have a workaround at present, I can confirm that the AdSense snippet has been placed on your site by Site Kit, and ads are appearing.

    We’ll continue to investigate this and report back to you here with any updates.

    Thread Starter ABCdatos

    (@abcdatos)

    Temporally deactivated code installed out of Google Site Kit and confirmed the banners shown are plugin related. Nice info, manual added header codes are now unneeded and removed.

    Plugin Support James Osborne

    (@jamesosborne)

    Good to hear the ads are appearing as expected. Can you confirm that the Error: Invalid site state null error remains if revisiting your AdSense settings page within Site Kit?

    Thread Starter ABCdatos

    (@abcdatos)

    Hi,

    Confirmed, no changes:

    Error: Estado de sitio null no válido

    Have a nice day!

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update. We’ll keep you updated as soon as we have more insights on this. Great that your ads are not impacted. Have a great nice day also!

    Thread Starter ABCdatos

    (@abcdatos)

    New setup in a fourth subdomain is working.

    From the same parent, we have two working subdomains and two not working. The difference between them is a mistake.

    Best regards.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing these additional insights @abcdatos.

    Can you visit your AdSense account, and see if the 2 subdomains (which are not allowing you to complete AdSense set up) are added? If not, please added them directly. Below is a guide:
    https://support.google.com/adsense/answer/9130110?hl=en

    Once you have the 2 problematic subdomains added please disconnect the AdSense module within Site Kit, before then trying to connect once more. Let me know how you get on, or ask if you have any questions.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Error: Invalid site state null’ is closed to new replies.