Support » Theme: OceanWP » There has been a critical error on your website issue

  • Hello,

    This is an urgent issue as a client is experiencing this issue on their site. As stated in the subject line, when you try to access the website, it says, ‘There has been a critical error on your website. Learn more about debugging this issue with WordPress’. The site is running on php 7.1, however the issue is with the child theme. When I switch to the parent theme of Oceanwp, the site is active however I lose the customizations done, and I also lose a customized code that I have added to the header.php file of the child theme of Oceanwp. Please help in resolving this issue as the traffic on this website is high.

    Looking forward to a quick resolution. Thanks in advance.

    Regards,
    Rohit.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    Since the issue is not with the parent theme it means you have added some code in the child theme which is causing the issue. Can you share the error log file and the code you have added in the child theme so that I can check the issue?

    Thread Starter rohit999

    (@rohit999)

    Hello Amit,

    Thank you for your revert. I was trying to get in touch with the person who added the customized code to the header file of the site, however he is on vacation and out of coverage area. Hence, I would require your quick help in resolving this, if possible. Please find the required details below:

    Below is the Error displayed (after changing DEBUG mode to ‘true’ in wp.config file – I have changed it back to ‘false’:

    Notice: Undefined index: premium-templates in /home/sindhudarshan/public_html/wp-content/plugins/premium-addons-for-elementor/admin/settings/modules-setting.php on line 714

    Fatal error: Uncaught Google_Auth_Exception: Error refreshing the OAuth2 token, message: ‘{ “error”: “invalid_grant”, “error_description”: “Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and use a clock with skew to account for clock differences between systems.” }’ in /home/sindhudarshan/public_html/src/Google/Auth/OAuth2.php:363 Stack trace: #0 /home/sindhudarshan/public_html/src/Google/Auth/OAuth2.php(312): Google_Auth_OAuth2->refreshTokenRequest(Array) #1 /home/sindhudarshan/public_html/galib.php(941): Google_Auth_OAuth2->refreshTokenWithAssertion(Object(Google_Auth_AssertionCredentials)) #2 /home/sindhudarshan/public_html/wp-content/themes/oceanwp-child/header.php(91): getService() #3 /home/sindhudarshan/public_html/wp-includes/template.php(722): require_once(‘/home/sindhudar…’) #4 /home/sindhudarshan/public_html/wp-includes/template.php(671): load_template(‘/home/sindhudar…’, true) #5 /home/sindhudarshan/public_html/wp-includes/general in /home/sindhudarshan/public_html/src/Google/Auth/OAuth2.php on line 363

    Below is the code that’s been added to the header (as far as I’m aware, this is the full code since I’m unable to get in touch with the person who added the code):

    <div style=”animation-duration:4s;” class=”elementor-element elementor-element-fc12fb5 elementor-widget elementor-widget-text-editor infinite animated zoomIn” data-id=”fc12fb5″ data-element_type=”widget” data-settings=”{"_animation":"zoomIn"}” data-widget_type=”text-editor.default”>
    <div class=”elementor-widget-container”>
    <div class=”elementor-text-editor elementor-clearfix” >
    <center style=”color: white; font-size: 13.1px;” line-height: 90%;>
    <b style= “border-style: dotted; border-color: yellow; border-width: 3px; padding-left: 3px; margin: 3px;”> Viewers
    <!– Fetching Analytics from 2015-05-22 to 2020-05-22 !–>
    <?php
    for ($i = 0; $i <= count($arr1) – 1; $i++) {
    echo $arr1[$i];
    }
    ?>
    </b>
    <b style= “border-style: dotted; border-color: yellow; margin-left: 3px; border-width: 3px; padding-left: 3px; margin: 3px;”> Cities

    <?php
    for ($i = 0; $i <= count($arr3) – 1; $i++) {
    echo $arr3[$i];
    }
    ?>
    </b>
    <b style= “border-style: dotted; border-color: yellow; margin-left: 3px; border-width: 3px; padding-left: 3px “> Countries

    <?php
    for ($i = 0; $i <= count($arr2) – 1; $i++) {
    echo $arr2[$i];
    }
    ?>
    </b>
    <br>
    Live by Google – Data based on Total Page Visits
    </center>
    </div>
    </div>
    </div>

    Please look into this and suggest accordingly, as the client is awaiting the resolution. Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There has been a critical error on your website issue’ is closed to new replies.