[wp-trac] [WordPress Trac] #42515: PHP 7.1 Warning: A non-numeric value encountered in \wordpress\wp-includes\SimplePie\Parse\Date.php on line 694

WordPress Trac noreply at wordpress.org
Thu Apr 30 04:48:54 UTC 2020


#42515: PHP 7.1 Warning: A non-numeric value encountered in \wordpress\wp-
includes\SimplePie\Parse\Date.php on line 694
--------------------------------+-----------------------
 Reporter:  aquakitty           |       Owner:  (none)
     Type:  defect (bug)        |      Status:  reopened
 Priority:  normal              |   Milestone:
Component:  External Libraries  |     Version:  5.1
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |     Focuses:
--------------------------------+-----------------------
Changes (by stevenjram):

 * status:  closed => reopened
 * resolution:  duplicate =>


Comment:

 As of 30.04.2020, this error is still happening.

 [30-Apr-2020 04:13:09 UTC] PHP Warning:  A non-numeric value encountered
 in /..../..../public_html/wp-includes/SimplePie/Parse/Date.php on line 694

 I've added the fix from above comment:
 $second = round((int)$match[6] + (int)$match[7] / pow(10,
 strlen($match[7])));

 and commented out the original:
 $second = round($match[6] + $match[7] / pow(10, strlen($match[7])));

 Thanks.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/42515#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list