WordPress.org

Forums

RSS Image Feed
[resolved] PHP Warning: Division by zero (11 posts)

  1. uporabna
    Member
    Posted 1 year ago #

    Hi,

    after upgrading to version 3.5 I am getting PHP Warning: Division by zero

    rss-image-feed/class-lib/A5_ImageClass.php on line 271
    and
    rss-image-feed/class-lib/A5_ImageClass.php on line 277

    https://wordpress.org/plugins/rss-image-feed/

  2. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for that. I just managed to avoid those for other installations. But I'm anyway fixing more stuff in the plugin, since not all is working as it should.

    Perhaps 3.6 brings something better.

  3. uporabna
    Member
    Posted 1 year ago #

    Hi in update 3.6 I have the same error PHP Warning: Division by zero, but it is here.

    rss-image-feed/class-lib/A5_ImageClass.php on line 284

  4. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Could you provide me with a link to your feed? I don't know what kind of images you use. If they are not on your server, it is sometimes a problem to get the image sizes.

  5. uporabna
    Member
    Posted 1 year ago #

    In update 3.6 everything was OK, after I restarted the plugin. But 3.7 again has

    PHP Warning: Division by zero in
    rss-image-feed/class-lib/A5_ImageClass.php on line 307
    rss-image-feed/class-lib/A5_ImageClass.php on line 311
    rss-image-feed/class-lib/A5_ImageClass.php on line 200

    and restarting plugin doesn't help.

  6. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Could you provide me with a link to your feed? I don't know what kind of images you use. If they are not on your server, it is sometimes a problem to get the image sizes.

  7. uporabna
    Member
    Posted 1 year ago #

  8. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks a lot!

    The only thing is, in Firefox I don't see any of the mistakes. It's just a proper feed with all images showing. Where do your devide by zero errors occure exactly?

    Are they in the error log?

  9. uporabna
    Member
    Posted 1 year ago #

    Yes in error log. And yes feed is working as it should, but I am getting repeating errors in log.

  10. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    I'm affraid, I cannot really help then.

    I just hotlinked an image of your feed to my testing environment and didn't get any error. Neither directly nor in the log.

    Sorry, but I think you gonna have to live with your log filled for while until I find a solution for the problem.

  11. tepelstreel
    Member
    Plugin Author

    Posted 1 year ago #

    There shouldn't be any errors now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.