• Resolved sacredwx

    (@sacredwx)


    Hi, After the last update of the 5.1.0 version of the plugin.
    I started receiving a lot of errors of the following type:
    [May 25, 21:35:38] PHP Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (1527298538) at position 7 (5): Unexpected character in /var/www/html/xxx/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php:62
    Stack trace:
    #0 /var/www/html/xxx/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php(62): DateTime->__construct(‘1527298538’)
    #1 /var/www/html/xxx/wp-content/themes/xxx/wpdiscuz/class.WpdiscuzWalker.php(155): WpdiscuzHelper->dateDiff(1527298538, 1526029940, 1)
    #2 /var/www/html/xxx/wp-includes/class-wp-walker.php(145): WpdiscuzWalker->start_el(”, Object(WP_Comment), 1, Array)
    #3 /var/www/html/xxx/wp-includes/class-walker-comment.php(135): Walker->display_element(Object(WP_Comment), Array, ‘5’, 0, Array, ”)
    #4 /var/www/html/xxx/wp-includes/class-wp-walker.php(370): Walker_Comment->display_element(Object(WP_Comment), Array, ‘5’, 0, Array, ”)
    #5 /var/www/html/xxx/wp-includes/comment-template.php(2097): Walker->page in /var/www/html/xxx/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php on line 62

    seems like you transfer unix timestamp to the DateTime class, but it can’t receive this type of date. Only strings. Please take a look at.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘DateTime’ is closed to new replies.