How to fix: PHP Warning: A non-numeric value encountered.
-
Hello,
There are too many error lines found in the error_log file regarding this issue as follows:
[10-Sep-2020 00:08:03 UTC] PHP Warning: A non-numeric value encountered in /home/public_html/wp-content/plugins/wp-favorite-posts/wp-favorite-posts.php on line 378
So, the solution is to replace this:
$val = $oldval + $val;
With this:
$val = ((int)$oldval + (int)$val);
Thanks
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to fix: PHP Warning: A non-numeric value encountered.’ is closed to new replies.