• ????
    ?????? Rank Math ?? ???? ?? ??????? ?????? ?????? ?? ???? ??????? ???? ?? yoast ????
    ??? ????? ?? ???? ???? ????? ?????? ????? ??? ?? Rank Math ???. ??? ??? ????? ??? ??? ????? ??????? ?? ?????? Rank Math ???? ????? ???? ?? ?? ????? ????.
    ?????

Viewing 8 replies - 1 through 8 (of 8 total)
  • ?? ????
    ???? ?? ??? ???? ?? ????. ?? ???? ?? ??????? ??? ?????? ??? ? ??? ?? ? ???? ?????? ??? ?? ??? ?? ?????? ?? ???? ?? ??????? ???.
    ????? ?? ???? ??????? :?
    Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (????-??-?? ??:??:??) at position 0 (?): Unexpected character in /home/****************/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php:79 Stack trace: #0 /home/****************/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php(79): DateTime->__construct('\xDB\xB1\xDB\xB3\xDB\xB9\xDB\xB9-\xDB\xB0\xDB\xB7-\xDB...') #1 /home/****************/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-stats.php(93): RankMath\Helper::get_midnight('\xDB\xB1\xDB\xB3\xDB\xB9\xDB\xB9-\xDB\xB0\xDB\xB7-\xDB...') #2 /home/****************/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-stats.php(75): RankMath\Analytics\Stats->set_date_range() #3 /home/****************/public_html/wp- in /home/****************/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php on line 79

    sfand59

    (@sfand59)

    ???? ?? ???
    ??? ????? ???? ???? ????
    ???? ????? ?? ??? ????????
    ???????? rank math ???? ??? ?? ???? ???

    It looks like the Persian Date plugin is converting the date in admin which is causing problem. From what I see, the converted date is needed only on the front-end so the plugin developer can add a condition ! is_admin() to prevent the function from executing in the Dashboard. Please contact the plugin developer and ask them to add the condition to execute the code only where it’s needed. That will fix the issue.

    ???? ??? ????? ?? ????? ????
    ??? ?????? ??????? ?????? ???? ?? ?? ??? ???? ????? ??????? ?? ??? ??????? ???? ?????

    mohsened

    (@mohsened)

    ???? ??? ?? ???
    ????? ????? ??? ?? ???? ??? ?? ??? ?????? ??????? ???? ?? ?????.
    ~\seo-by-rank-math\includes\class-helper.php
    ???? ???
    `
    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();
    }
    ???? ??? ?? ?????? ??? ?? ????? ???? ?? ???? ????? ???.
    ?? ?????? ????
    $date = new \DateTime( $time );
    ?? ?????? ????
    $date = new \DateTime( strtotime($time ));

    • This reply was modified 4 years ago by mohsened.
    Plugin Author Morteza Geransayeh

    (@man4toman)

    ???? ??? ???? ????
    ???? ???????? ??? ????? ?? ?? ??????? ????? ???? ????.

    ??? ??? ???? ???? ?? ?? ?? ??? ???????

    ? ???? ??????? ?? ?? ?? ???? ??? ??? ????? ?????. ???? ??? ???? ??? ?? ?? ????? ??? ?? ?? ???? ????? ???? ???? ???? ???? ???? ????? ? ?? ????? ???? ?? ????? ????? ?? ???? ???? ???? ????? ???? ????.

    ??? ????? ?? ??? ??? ?? ????:
    Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (????-??-?? ??:??:??) at position 0 (?): Unexpected character in /home/centinsure/domains/site.com/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php:80 Stack trace: #0 /home/centinsure/domains/site.com/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\xB9-\xDB...') #1 /home/centinsure/domains/site.com/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\xB9-\xDB...') #2 /home/centinsure/domains/site.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-stats.php(76): RankMath\Analytics\Stats->set_date_range() #3 /home/centinsure/domains/site.com/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/analytics/class-analytics.php(59): in /home/centinsure/domains/site.com/public_html/wp-content/plugins/seo-by-rank-math/includes/class-helper.php on line 80

    • This reply was modified 3 years, 11 months ago by Hamed Azimi.
    • This reply was modified 3 years, 11 months ago by Hamed Azimi.

    ????? ????? ??? ???? ?? ?? ??? ???? ???? ??? ????? ?? ????. ??? ??? ?????? ???? ??? ?? ???? ???? ? ???? ????? ?? ??? ???? ????.
    https://ibb.co/9b2Jq2h

    ????

    ????? ??? ?? ?? ????? ????? ???:
    https://ibb.co/QK4SdCX

    Plugin Author Morteza Geransayeh

    (@man4toman)

    ??? ???? ???? ??? ???? ?? ???.
    ??????? ??? ????:
    https://github.com/wordpress-parsi/wp-parsidate

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘????? ?? Rank Math’ is closed to new replies.