• Resolved rmirq

    (@rmirq)


    Hello!

    I am having a really tough time getting logged into the Site Kit extension. Previously, we would get stuck in a log-in loop, but recently since WP has been updated it now provides us with debugging error by email:

    An error of type E_ERROR was caused in line 145 of the file ***/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php. Error message: Uncaught Exception: Missing site_id or site_code parameter for setup URL. in ***/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php:145

    If any one has any suggestions on how to resolve this, I would be eternally grateful. Thank you!

    Site Health submitted to private form. Thank you.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi @rmirq,

    Thanks for reaching out, and sorry to hear you’ve been having a tough time setting up the plugin. As you’ve encountered a couple of different errors please share the following, so I can then provide you with the most appropriate troubleshooting suggestions.

    1. Have you been able to successfully complete Site Kit set up previously on this site, even from a different domain or variation of your current domain.
    2. At what stage do you encounter the “E_ERROR was caused in line 145” error? Is this on a screen separate to the error highlighted in the title of this topic (Setup Error: Missing site_id or site_code parameter)?

    Once we know of the above I’ll provide some troubleshooting suggestions. You may also wish to share a screen recording of what’s occurring, given you’ve encountered various errors. You can use a service such as Loom or RecordIt to share your set up experience.

    Note also that I checked the Site Health information form you kindly shared. It looks like you do have some plugins that could potential impact Site Kit set up however before troubleshooting any such plugins, using the Health Check & Troubleshooting plugin, we need to know of the error you’re first landing on.

    Let me know if you have any questions with the above and I’ve be happy to clarify or provide more details.

    Thread Starter rmirq

    (@rmirq)

    Hello James,
    Thank you so much for your prompt reply.

    edit: This is our first time setting up Site Kit on woocommerce. Our store previously ran on Magento and we must have used other solutions for interfacing with Google services.

    The error occurs after sigining into my Google Account and granting site kit necessary permissions, at this point I am taken to a WP error screen with only the text:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.
    Learn more about troubleshooting WordPress.

    Thank you again for your help!

    Email contains:

    Howdy!
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress caught an error with one of your plugins, Site Kit by Google.
    
    First, visit your website (https://www.###.com/) and check for any visible issues. Next, visit the page where the error was caught (https://www.###.com/wp-admin/index.php?action=googlesitekit_proxy_exchange_site_code&googlesitekit_code=sitekit-rcDaMfqrYJWXFikmUBFnCL&googlesitekit_site_code=4%2F0AX4XfWhKHHDJmD3PvczgOX2jLdIdGUEh4GyJ3kZ4UvDwx1iBxqAK5ZQhiv3cTxxR6GSMHg&nonce=877226ee58&step=verification) and check for any visible issues.
    
    Please contact your host for assistance with investigating this issue further.
    
    If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.
    
    https://www.###.com/wp-login.php?action=enter_recovery_mode&rm_token=DAAnJxp0UXLshLeHFlBQFP&rm_key=6Ih3uVhzdbBdE4KaLwct1e
    
    To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
    
    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.0
    Active theme: ### (version 1.0)
    Current plugin: Site Kit by Google (version 1.75.0)
    PHP version 7.4.15
    
    Error Details
    =============
    An error of type E_ERROR was caused in line 145 of the file /home/webuser/websites/###/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php. Error message: Uncaught Exception: Missing site_id or site_code parameter for setup URL. in /home/webuser/websites/###/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php:145
    Stack trace:
    #0 /home/webuser/websites/###/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Setup.php(327): Google\Site_Kit\Core\Authentication\Google_Proxy->setup_url()
    #1 /home/webuser/websites/###/public_html/wp-content/plugins/google-site-kit/includes/Core/Authentication/Setup.php(238): Google\Site_Kit\Core\Authentication\Setup->redirect_to_proxy()
    #2 /home/webuser/websites/###/public_html/wp-includes/class-wp-hook.php(307): Google\Site_Kit\Core\Authentication\Setup->handle_action_exchange_site_code()
    #3 /home/webuser/websites/###/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #4 /home/webuser/websites/###/public_html/wp-includes/plugin.php(476
    • This reply was modified 1 year, 10 months ago by rmirq.
    • This reply was modified 1 year, 10 months ago by rmirq.
    • This reply was modified 1 year, 10 months ago by rmirq.
    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing these additional insights, very useful indeed, in particular the insights within the email. As there is something blocking set up lets first try to rule out any third party plugin or theme conflicts. To do so please follow the steps below:

    1. Login to your site from a Chrome browser incognito window
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. 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”
    5. Attempt to setup Site Kit once more

    If the same occurs please share the following information, so I can investigate this further:

    1. Your Site Health status, which differs from the Site Health information you shared previously (Tools > Site Health > Status). This outputs REST and other useful information if errors are encountered.
    2. On the screen where you see the “There has been a critical error on this website.” error, after signing in with your Google account, what is the URL in the address bar? I ask as there may be a Site Kit callback URL reference.

    Let me know if you have any questions with the above.

    Thread Starter rmirq

    (@rmirq)

    Hi James,
    The URL where the error occurs is:
    https://www.###/wp-admin/index.php?action=googlesitekit_proxy_exchange_site_code&googlesitekit_code=sitekit-3WDiXo9YE9b3FgMAbRvg9k&googlesitekit_site_code=4%2F0AX4XfWh4hQt6AKgU2lI925Qh-rDfAHBvvQmvIs0WU76B20bcFCQVc8I0TwPn2lzsmJ0Wog&nonce=cf0f6319b5&step=verification

    I followed the steps listed above and resulted in same error (troubleshooting mode incognito).

    Site Status:

    Site Health Status
    The site health check shows critical information about your WordPress configuration and items that require your attention.
    
    1 Critical issue
    Background updates are not working as expectedSecurity
    3 Recommended improvements
    You should remove inactive pluginsSecurity
    Have a default theme availableSecurity
    One or more recommended modules are missingPerformance
    Passed tests
    15 Items with no issues detected
    Your WordPress version is up to date (6.0)Performance
    PHP is up to date (7.4.15)Performance
    SQL server is up to datePerformance
    UTF8MB4 is supportedPerformance
    Your website is using an active HTTPS connection.Security
    Your site can communicate securely with other servicesSecurity
    Scheduled events are runningPerformance
    HTTP requests seem to be working as expectedPerformance
    Your site is not set to output debug informationSecurity
    Your site uses localized timezonesPerformance
    The REST API is availablePerformance
    WP Mail SMTP mailer setup is completeWP Mail SMTP
    WP Mail SMTP DB tables are createdWP Mail SMTP
    Can communicate with WordPress.orgSecurity
    Your site can perform loopback requestsPerformance

    Hope this helps. Thanks again!

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing. Based on your experience and insights you provided I’ve created a GitHub issue so I can check this with the team.

    While I’ve added the troubleshooting steps you’ve already performed to that issue there are a couple of checks you may wish to perform:

    1. Does the same occur if you uninstall and reinstall Site Kit? I ask as it may be possible a plugin update failed at some stage.
    2. Do you have any other WordPress sites on the same hosting platform, or is there a control panel option to set up a clean WordPress site? If so you can test does the same occur. This can help rule out hosting related issues.

    If you prefer not to perform these checks feel free to share a screen recording of your experience, using a service such as Loom or RecordIt. You can use the same form previously used to share this privately.

    Let me know if you have any questions with the above.

    Thread Starter rmirq

    (@rmirq)

    Hi James,
    I just tried a fresh install of Site Kit and recorded the experience with Loom (shared with form). We were unable to do this in an incognito window, so I used a regular browser session after clearing all cache and cookies.

    Thanks again for all your help today and for creating a ticket with the devs. If there is any other info I can provide, please let me know and I will do my best to accommodate. While we’re waiting, I am going to provide these threads to our developers and see if they have any further recommendations.

    Regards,
    Rob

    Plugin Support James Osborne

    (@jamesosborne)

    Hi Rob,

    Many thanks for the update and taking the time to share a video of what’s occurring. I’ve added some troubleshooting steps, some of which we’ve already tried, to the GitHub issue. Other than that the below might be of use:

    1. Does the same occur if you uninstall and reinstall Site Kit? I ask as it may be possible a plugin update failed at some stage.
    2. Do you have any other WordPress sites on the same hosting platform, or is there a control panel option to set up a clean WordPress site? If so you can test does the same occur. This can help rule out hosting related issues.

    Other than the above please allow me some time to check this with the team.

    Plugin Support James Osborne

    (@jamesosborne)

    Hi Rob,

    Just to keep you updated on this, I’ve spoken with the team and they are reviewing the GitHub issue I’ve created on this, based on the Stack trace error you provided.

    In the meantime, do let me know of the checks suggested above, after you’ve had a chance to review.

    Thread Starter rmirq

    (@rmirq)

    Hi James,
    Thank you for the update. In the meantime, we have been able to get our site connected with the Google services we needed, but still have not gotten Site Kit working. We have tried uninstalling and reinstalling the plugin, but encountered the same error. Not sure about the second suggestion, this is our only wordpress site and I’m not fully familiar with how to set up a fresh environment for testing. Thanks again,
    Rob

    Plugin Support James Osborne

    (@jamesosborne)

    No problem, in that case I’ll keep you updated with regards any changes to the plugin as per the GitHub issue based on your stack trace.

    One thing you may wish to check, which can help rule out hosting related issues, is to run a set up check on a disposable WordPress site. Using this link you can test out Site Kit set up. This is an alternative to setting up a separate WordPress site on the same hosting platform where you site exists.

    Let me know if you have any questions with the above.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Setup Error: Missing site_id or site_code parameter..’ is closed to new replies.