Very Bad Fatal Error

#98619
  • Resolved Sadegh
    Rank Math free

    Hi
    I have recently have a fatal error in my website Admin panel:

    Uncaught Exception: DateTime::__construct(): Failed to parse time string (۱۳۹۹-۰۸-۰۹ ۰۰:۰۰:۰۰) at position 0 (�): Unexpected character in /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php:80 Stack trace: #0 /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php(80): DateTime->__construct(‘\xDB\xB1\xDB\xB3\xDB\xB9\xDB\xB9-\xDB\xB0\xDB\xB8-\xDB…’) #1 /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-stats.php(94): RankMath\Helper::get_midnight(‘\xDB\xB1\xDB\xB3\xDB\xB9\xDB\xB9-\xDB\xB0\xDB\xB8-\xDB…’) #2 /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-stats.php(76): RankMath\Analytics\Stats->set_date_range() #3 /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics.php(58): RankMath\Analytics\Stats::get() #4 /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/i in /home2/icananoi/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php on line 80

    And I check that code:

    /**
    * Get midnight time for the date variables.
    *
    * @param int $time Timestamp of date.
    * @return int
    */
    public static function get_midnight( $time ) {
    if ( is_numeric( $time ) ) {
    $time = date_i18n( ‘Y-m-d H:i:s’, $time );
    }
    $date = new \DateTime( $time );
    $date->setTime( 0, 0, 0 );

    return $date->getTimestamp();
    }

    I uninstalled rankmath and installed it again but nothing changed. I also tried previous versions of rankmath plugin but it wasn’t effective.

    Please help me about this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sajid Khan
    Rank Math business

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    Sorry for the issue you are facing.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Sadegh
    Rank Math free

    Hi,

    I have to tell you that I can not even go to wp-admin panel to follow your troubleshooting guide unless I delete Rankmath plugin in Cpanel.

    So how can I know which plugin or theme has conflict with Rankmath?

    Hello,

    We can look int this for you. Please edit the first post on this ticket and include your cPanel or FTP & WordPress logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Sadegh
    Rank Math free

    Hi,

    I solved the problem with installing version 1.0.47.1 and disabling auto-update.

    Thanks for your help.
    I love RankMath.

    Hello,

    We are glad you found a wordkaround for the issue.

    Please note it is not always recommendable to use outdated plugin

    Do you wish to close this thread?

    If you have any further question(s), please let us know. Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘Very Bad Fatal Error’ is closed to new replies.