• Resolved egoruk

    (@egoruk)


    After installing the Google Site Kit it gives “There has been a critical error on this website.” Every time I try to sign in to the wp-admin dashboard.

    I tried to troubleshoot plugins but disabling them all. And the first one I enabled was Site Kit and this is the one that gives that error even with all other plugins deactivated.

    Please advise.

    Thank you!

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • @egoruk thanks for reporting! This is not common, so the following will help us troubleshoot:

    1) Are you able to retrieve PHP error logs (or the WP_DEBUG log) from your host for when the error occurred?

    2) Could you provide your Site Health information through this form?

    I notice you have Site Kit’s Analytics code snippet on the site.

    3) Were you able to install and configure it before the error occurred?

    Thread Starter egoruk

    (@egoruk)

    Thank you for your quick resond!

    1) The WP_DEBUG_LOG is pasted into the form you provided under “Any other supporting information (optional)”

    2) Provided!

    3) Yes, I was.

    Thank you, Renee!

    @egoruk thanks for the information! I’m getting some feedback from the team and will follow up as soon as I know more.

    @egoruk the root cause may be an issue with your current theme, which appears to be firing the wp_login action without passing the correct number of arguments to the action.

    In the logs, the following is in the error stack trace (omitted a few items):

    #3 /home/******/domains/torontobusinesses.ca/public_html/wp-content/themes/*************-v2/library/login-register/class-login-register.php(254): do_action('wp_login', '**************')

    You’ll see it is passing one argument here:

    do_action('wp_login', '**************')

    Per the hook’s reference, it should pass a second argument, the WP_User object. Correcting this in the theme or contacting the theme author to do so should resolve the issue.

    Thread Starter egoruk

    (@egoruk)

    We have another directory built with the same theme where we have Adsense running successfully using a Quick Adsence plugin no problem.

    @egoruk thanks for your reply! Site Kit uses the hook according to the reference here in the code. I’m not sure what the other plugin is doing, but it seems the incorrect usage is involved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Critical error on this website’ is closed to new replies.