Conflict (Fatal Error) with Arabic and Persian Dates

#107974
  • Resolved Arat
    Rank Math free

    Hello my friends
    Hope you’re doing great
    There is a bad conflict in rank math free with plugins that have Arabic or Persian dates
    Uncaught Exception: DateTime::__construct(): Failed to parse time string (۱۳۹۹-۰۸-۲۸ ۰۰:۰۰:۰۰) at position 0 (�): Unexpected character in wp-content/plugins/seo-by-rank-math/includes/class-helper.php:80
    When I install and activate rank math free from WordPress repository, the site is exploded!
    I took some screenshots and sent them to you

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello

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

    That plugin is not updated from the past 12 months:
    https://wordpress.org/plugins/wp-parsidate/

    Can you please get in touch with the plugin developer to see if he can fix it on his end?

    Alternatively, you can follow this troubleshooting: https://webmethod.ir/حل-مشکل-و-تداخل-افزونه-رنک-مث-با-وردپرس/
    But you will need to apply the fix on every update.

    Hope that helps.

    Arat
    Rank Math free

    Hello Michael Davis
    Thanks a lot for your support
    As you can see in the screenshots, this problem is because of Rank Math Free, not this plugin!
    The fatal error is from rank math codes!
    seo-by-rank-math/includes/class-helper.php/line:80

    Kindly, The article that you have sent tells “You must add a code to line 80 in “class-helper.php”
    I can’t add this code for every updates of rank math!
    Rank Math free in “clas-helper.php – line:81” has a bug with all of Solar Histories!
    The article is telling you should change the following line
    $date = new \DateTime( $time );
    with
    $date = new \DateTime( strtotime($time ));

    But I doesn’t work!
    And If it works, I can’t do it every time for every updates of rank math
    Many sites with Solar History have this problem! and can’t use rank math!
    Please Help

    • This reply was modified 3 years, 4 months ago by Arat.

    Hello guys
    Hope you’re doing great
    I also have this issue! Please fix it. It’s a bad bug!
    The Line 80 in (seo-by-rank-math/includes/class-helper.php/line:80) has a bug with all of Solar History plugins

    Use wp-Shamsi instead of other plugins.

    Arat
    Rank Math free

    Hi there
    Thank you for your help
    WP Shamsi plugin is OK with Rank Math

    Hello,

    We are to hear that.

    If you need further help or with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

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

The ticket ‘Conflict (Fatal Error) with Arabic and Persian Dates’ is closed to new replies.