• Resolved rmarlow

    (@rmarlow)


    I’ve found hundreds log entries in my “error_log” file within public_html all repeating two lines over and over…

    The lines displayed:
    [02-May-2019 21:15:43 UTC] PHP Warning: A non-numeric value encountered in /home/diving33cl/public_html/wp-content/plugins/wd-facebook-feed/frontend/views/FFWDViewBlog_style.php on line 581
    [02-May-2019 21:15:43 UTC] PHP Warning: A non-numeric value encountered in /home/diving33cl/public_html/wp-content/plugins/wd-facebook-feed/frontend/views/FFWDViewBlog_style.php on line 589

    Any advice would be appreciated.

    Thanks,
    Ross

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Could you please let us know which version of the Plugin you use? Please note that the current version does not have this issue. It can be also because of PHP version.
    You can also go to these files, and search for the certain lines, and delete (int).

    Thank you!

    Have a nice day!

    Thread Starter rmarlow

    (@rmarlow)

    Thanks for getting back to me…

    Plugin Version 1.1.7
    PHP Version 7.2

    These are the two lines of the file:

    [581] max-width: <?php echo $ffwd_info[‘blog_style_width’] * 0.80; ?>px;
    [589] max-width: <?php echo $ffwd_info[‘blog_style_width’] * 0.70; ?>px;

    Thanks

    Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    In this case please add (int) in certain lines:

    [581] max-width: <?php echo (int)$ffwd_info[‘blog_style_width’] * 0.80; ?>px;
    [589] max-width: <?php echo (int)$ffwd_info[‘blog_style_width’] * 0.70; ?>px;

    The string has not been converted to number automatically in this PHP version.

    Please let me know if you have further questions.

    Thank you!

    Have a nice day!

    Thread Starter rmarlow

    (@rmarlow)

    Worked perfect. No errors after I reset the log and made these changes.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP “error_log” Warnings’ is closed to new replies.