• Resolved paweltar

    (@paweltar)


    I have deactivated Feedzy RSS on a website I’m working on because after updating to PHP 7.2.3 the following Warnings were displayed at the top of RSS Feed:

    Warning: A non-numeric value encountered in /app/public/wp-includes/SimplePie/Parse/Date.php on line 694

    I know that – as stated in a plugin description – SimplePie php CLASS is natively included in WordPress and is not part of your plugin, however, I need to ask if you have any tips on how to deal with this so I can continue using Feedzy RSS?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Hardeep Asrani

    (@hardeepasrani)

    Hey there,

    Can you let us know which feed you’re using on your blog so we could try to reproduce this issue on our end? Thank you.

    Thread Starter paweltar

    (@paweltar)

    Hi,
    I was using following feeds:

    https://www.edynburg.msz.gov.pl/rss/edynburgaktualnosci.xml608, https://manchester.msz.gov.pl/rss/manchesteraktualnosci.xml733

    however, I believe it has more to do with the update to the latest version of PHP. The warning appeared after update from an older version of PHP to 7.2.3. It seems that there might be some bug or incompatibility.

    Hello @paweltar,

    Thank you for reaching out to us! Do you still need help with this?
    I have looked into your problem and I found 2 solutions that worked for me. First, you can downgrade your php version (I tested on 7.1.16 and it still did not work, so you need to go lower). Second, the php file that was causing me trouble was Date.php ( wordpress\wp-includes\SimplePie\Parse) so I looked for a fix. I found that other people had the same problem and the fix was by simply replacing a code line (the line 694). Here is where I found the solution -> https://github.com/simplepie/simplepie/issues/534. I will sumarize for you. The line that needs replacing is: $second = round($match[6] + $match[7] / pow(10, strlen($match[7])));, and the replacement for it is $second = round((int)$match[6] + (int)$match[7] / pow(10, strlen($match[7])));. However, this fix isn’t made by our team so I can’t guarantee it is safe to use. It is not risk-free.

    I hope this helps.
    Regards,
    Silviu

    Thread Starter paweltar

    (@paweltar)

    Hi @silviu0themeisle,

    Thank you for taking the time to take a closer look at this problem and for clarifications. I will probably try one of those solutions soon. I’m marking this issue as resolved.

    Regards,
    Pawe?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: A non-numeric value encountered’ is closed to new replies.