• 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.

    http://ww.wp.xz.cn/plugins/yop-poll/

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi Joshua,

    We will look into this to see what causes the problem and fix it.

    Regards,

    YOP Team

Viewing 1 replies (of 1 total)

The topic ‘Excessive php warnings in log’ is closed to new replies.