Warning: A non-numeric value encountered

后端 未结 18 1862
抹茶落季
抹茶落季 2020-11-22 06:15

Recently updated to PHP 7.1 and start getting following error

Warning: A non-numeric value encountered in on line 29

Here is wha

18条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-22 06:37

    Solve this error on WordPress

    Warning: A non-numeric value encountered in C:\XAMPP\htdocs\aad-2\wp-includes\SimplePie\Parse\Date.php on line 694

    Simple solution here!

    1. locate a file of wp-includes\SimplePie\Parse\Date.php
    2. find a line no. 694
    3. you show the code $second = round($match[6] + $match[7] / pow(10, strlen($match[7])));
    4. and change this 3.) to this line $second = round((int)$match[6] + (int)$match[7] / pow(10, strlen($match[7])));

提交回复
热议问题