Excessive php warnings in log
-
There are a number of these warnings appearing in the apache error log:
PHP Warning: round() expects parameter 2 to be long, string given in wp-content/plugins/yop-poll/inc/yop_poll_model.php on line 1158
It seems to be generating one for each answer the poll allows. I fixed it by changing
$percentages_decimals = $poll_options[‘percentages_decimals’];
to
$percentages_decimals = intval($poll_options[‘percentages_decimals’]);
on lines 3562, 3663, and 3732 of version 4.9 of this plugin.
I think it is caused by not specifying the percentages_decimals value when setting the poll options.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Excessive php warnings in log’ is closed to new replies.