• Resolved md1088

    (@md1088)


    Hi All,

    I’ve been using Google Site Kit for years without problems until the latest update. Here’s the story:
    When I tried to log into my WordPress site last night, I received the “There has been a critical error on your website. Please check your site admin email inbox for instructions.” error and couldn’t get into the backend.

    So, I logged in server-side, enabled debugging, and tried to log in again so I could see the error, and I got this (noting EOAS is the name of my website):

    Fatal error: Uncaught Error: Call to undefined function Google\Site_Kit\mb_check_encoding() in /home/securesites/eoas/wordpress/wp-content/plugins/google-site-kit/includes/Plugin.php:100 Stack trace: #0 /home/securesites/eoas/wordpress/wp-includes/class-wp-hook.php(310): Google\Site_Kit\Plugin->Google\Site_Kit\{closure}() #1 /home/securesites/eoas/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/securesites/eoas/wordpress/wp-includes/pluggable.php(1600): apply_filters() #3 /home/securesites/eoas/wordpress/wp-includes/functions.php(1959): wp_validate_redirect() #4 /home/securesites/eoas/wordpress/wp-content/plugins/elementor/app/app.php(88): wp_get_referer() #5 /home/securesites/eoas/wordpress/wp-content/plugins/elementor/core/base/base-object.php(142): Elementor\App\App->get_init_settings() #6 /home/securesites/eoas/wordpress/wp-content/plugins/elementor/core/base/base-object.php(57): Elementor\Core\Base\Base_Object->ensure_settings() #7 /home/securesites/eoas/wordpress/wp-content/plugins/elementor in /home/securesites/eoas/wordpress/wp-content/plugins/google-site-kit/includes/Plugin.php on line 100

    So, I figure ‘alright, let’s see what auto-updated over the weekend’ since I last logged in last week and everything was fine, and I saw Elementor and Site Kit had both auto-updated over the weekend, and both of those plugins were in the error the above.
    I initially figured maybe Elementor was the problem, and I disabled it and completely removed it, but instead of that fixing the problem, it changed the error:

    Fatal error: Uncaught Error: Call to undefined function Google\Site_Kit\mb_check_encoding() in /home/securesites/eoas/wordpress/wp-content/plugins/google-site-kit/includes/Plugin.php:100 Stack trace: #0 /home/securesites/eoas/wordpress/wp-includes/class-wp-hook.php(310): Google\Site_Kit\Plugin->Google\Site_Kit\{closure}() #1 /home/securesites/eoas/wordpress/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/securesites/eoas/wordpress/wp-includes/pluggable.php(1600): apply_filters() #3 /home/securesites/eoas/wordpress/wp-includes/functions.php(1959): wp_validate_redirect() #4 /home/securesites/eoas/wordpress/wp-includes/pluggable.php(1259): wp_get_referer() #5 /home/securesites/eoas/wordpress/wp-admin/plugins.php(56): check_admin_referer() #6 {main} thrown in /home/securesites/eoas/wordpress/wp-content/plugins/google-site-kit/includes/Plugin.php on line 100

    I now suspected Google Site Kit to be the issue, so I disabled and removed it completely, and the backend was now error free. I then reinstalled Elementor and activated it, and the backend still remained error free!

    I then reinstalled and re-activated Site Kit, and the errors came flying back. So, I ruled out Elementor as a cause, but I have no idea what’s going on with Google Site Kit. It’s deactivated on my website in the meantime. Again, there were no issues before the latest update from over the weekend, so my guess is something that changed in Google Site Kit is not playing well with my website.

    It’s interesting to me that this had no bearing on the pubic face of the website, which continued to work fine. These errors were only happening when I was trying to log in and navigate around the backend.

    Any insights or suggestions would be welcomed! Thanks.

    • This topic was modified 2 years, 1 month ago by md1088. Reason: typo
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Adam Dunnage

    (@adamdunnage)

    Hi @md1088 thanks for getting in touch and for sharing all the information. We have had another report of this also so are currently investigating. It would be very helpful if you could share the following information:

    1. Your?Site Health information. You can?use this form?to share privately if preferred. Please also include your hosting provider here
    2. Do you see any console errors alongside this?
    3. Do you see any warnings or errors when checking your Site Health status (Tools > Site Health > Status)? Such errors may include REST endpoint

    Could you also confirm if performing a Site Kit reset makes any difference after going through setup once more?

    Let me know if you have any further questions.

    ++ i am having the same problem, after updating google site kit. I would like to rollback the plugin instead of doing reset. Is there a way to find previous google site kit plugin version?

    Thread Starter md1088

    (@md1088)

    @adamdunnage form submitted with the requested information. Thank you for the help!
    For 2 and 3:

    2: No console errors in the WordPress backend, but there is a ‘failed to load resource’ error on our homepage related to our embedded Twitter Timeline, along with some guidance that there were some recent updates to Twitter Timelines and how to fix it. I hadn’t caught that though since our feed is hidden unless you click to see it.

    3: no warnings or errors, just a couple of “recommended improvements”

    I did perform a Site Kit reset in my initial troubleshooting and it didn’t fix the issue.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @md1088 Thanks for sharing the information. We have highlighted an issue here and are actively looking for a fix we can provide for this. Please feel free to follow the open GithUb issue here: https://github.com/google/site-kit-wp/issues/6524

    Hi there — we are having the same issue with our site. Any resolution here?

    Plugin Support James Osborne

    (@jamesosborne)

    Many thanks for the update @md1088. We’ve identified the cause and we’ll have a fix for this added to the next plugin release, with more details available on the related GitHub issue. In the meantime, you can use this mini plugin to ensure you don’t experience the same error. To do so, download and install the plugin as a standard WordPress plugin (using the upload method – Plugins > Install > Upload Plugin > Activate). If you need any assistance with this let me know.?

    After you install and activate this mini plugin it would be great if you could confirm that you no longer encounter the same error.?

    Note also that if you prefer not to install and use the mini plugin until the next plugin release, you can roll back to a previous version of Site Kit as an alternative. You can do so by uninstalling Site Kit and then installing version 1.92.0, by uploading as a standard WordPress plugin (Plugins > Install > Upload Plugin > Activate).

    @caitline213 @kristapszs Can you give the above a try also and let me know how you get on, or ask if you have any questions?

    Hi there — we tried to install the old version of google site kit, rather than adding a new plugin, and there was a problem activating it. Let me know what you advise.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @caitline213 Please can you open a new support topic for this and we will be happy to help you there.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @md1088 Version 1.94.0 of Site Kit is now available which contains a fix for this issue. Please update to the latest version and let us know if you experience any further problems.

    mikechy

    (@mikechy)

    Just updated to PHP 8.2.3 nts x64 on Windows. site seems to run fine, admin runs fine, error occurs when going to the site health info tab. Running Google Site Kit 1.94.0

    PHP Warning:  Undefined array key "search-console" in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 406
    PHP Warning:  Trying to access array offset on value of type null in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 406
    PHP Warning:  Undefined array key "search-console" in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 414
    PHP Warning:  Trying to access array offset on value of type null in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 414
    PHP Warning:  Undefined array key "analytics" in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 406
    PHP Warning:  Trying to access array offset on value of type null in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 406
    PHP Warning:  Undefined array key "analytics" in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 414
    PHP Warning:  Trying to access array offset on value of type null in D:\web\domain.com\htdocs\wp-content\plugins\google-site-kit\includes\Core\Util\Debug_Data.php on line 414

    • This reply was modified 2 years ago by mikechy. Reason: privacy
    Plugin Support James Osborne

    (@jamesosborne)

    @mikechy If you’d like to open an individual support topic we’d be happy to assist you with this.

    Note also that we are working on a fix for these notices that appear when checking your Site Health information tab, with more information on this below:
    https://github.com/google/site-kit-wp/issues/6597

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Fatal Errors in the WordPress Backend after Latest Site Kit Update’ is closed to new replies.