• Resolved Katersmcgee

    (@katersmcgee)


    Hi,

    When I open the dashboard of my website or go to the main screen for Site Kit, I get this error:

    Data error in Analytics
    <p>There has been a critical error on this website.</p><p>Learn more about troubleshooting WordPress.</p>

    Yes, it send me the HTML code to show text, copied and pasted just as it appears.

    No idea what to do. Please help!

Viewing 11 replies - 16 through 26 (of 26 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update, we’ll continue testing this from our side. In the meantime can you share whether this “There has been a critical error on this website” notice appears elsewhere on your site, or does this just occur only when checking your Analytics or other Site Kit dashboard pages??

    Thread Starter Katersmcgee

    (@katersmcgee)

    It appears on the WordPress Dashboard and on the Site Kit Over page within the Your Traffic at a Glance and Acquisition (far right box). I can send screenshots if you’d like.

    Plugin Support James Osborne

    (@jamesosborne)

    Sending screenshots would be super helpful, thank you! If the screenshots could include any console errors even more so helpful! You can use a service such as Imgur to share.

    Thread Starter Katersmcgee

    (@katersmcgee)

    See if this links has the three screenshots described above: https://imgur.com/a/zMLTsYI

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for sharing, I’ll add these to the related GitHub issue which we’re reviewing.

    Would it be possible for you to also share any browser console errors you encounter on any of these pages that output the error, by either provide a screenshot as you did for the notice or by copying and pasting any such errors?

    In order to access your Chrome browser console errors you can use the below guide:

    1. Open the Chrome settings menu (3 dots) and select Tools > Developer Tools
      (or alternatively right click on your screen and select “Inspect”)
    2. Click on the “Console tab”
    3. Copy any error message displayed`

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

    Thread Starter Katersmcgee

    (@katersmcgee)

    Okay, here are screenshots: https://imgur.com/a/e3kHviZ

    The first is for the main WordPress Dashboard. The second is for the Site Kit Dashboard.

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for sharing, very useful. While some of the console errors may indicate your Analytics is not connected with other services I do see some 500 timeout errors, along with a cURL related error. After checking this I noticed your PHP time limit is set to 30. While typically this should be fine it’s a low value compared to other site setups. Can you ask your hosting provider to change this to 100? You need to request them to set the max_execution_time from 30 to 100, in your php.ini file. You may also be able to apply this yourself from your hosting control panel.

    If you prefer you can also make changes to your wp-config file to apply this change before checking once more.

    Let me know if you need assistance with the above.

    As an alternative to changing your PHP max_execution_time you may also wish to check does the same occur if you switch to a different PHP version temporarily.

    Thread Starter Katersmcgee

    (@katersmcgee)

    @jamesosborne Made the adjustment to the max_execution_time. It is now 100. The error is still occurring. I can try a different PHP version, but my hosting site is down in terms of getting to the CPanel now.

    I will update you after I play around with that.

    Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update. Please do try switching PHP version and let me know how it goes, while we’ll also continue to perform some checks on our side.

    Thread Starter Katersmcgee

    (@katersmcgee)

    I changed the PHP to 7.4 and logged into the WordPress admin dashboard for my site, and this is the error I had on Google Site Kit – The response is not a valid JSON response.

    Then I downloaded the new update for Site Kit. Error still appeared.

    Then I said, “Well since it doesn’t matter, I’ll switch it back to 8.0”, and guess what … everything is running perfectly now!

    I don’t know what was in the update, but it fixed everything for me!

    I appreciate your time @jamesosborne!

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for performing these checks. I’m wondering are some of the PHP extensions active within your other PHP versions conflicting with Site Kit and the theme you’re using. I’ll perform some checks myself while also updating the related GitHub issue.

    If you happen to encounter any further issues be sure to reach out, and thanks again for all the troubleshooting efforts.

Viewing 11 replies - 16 through 26 (of 26 total)

The topic ‘Data error in Analytics’ is closed to new replies.