Title: PHP Warning: Division by zero
Last modified: August 21, 2016

---

# PHP Warning: Division by zero

 *  Resolved [uporabna](https://wordpress.org/support/users/uporabna/)
 * (@uporabna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/)
 * 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/](https://wordpress.org/plugins/rss-image-feed/)

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

 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744488)
 * 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.
 *  Thread Starter [uporabna](https://wordpress.org/support/users/uporabna/)
 * (@uporabna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744679)
 * 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
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744683)
 * 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.
 *  Thread Starter [uporabna](https://wordpress.org/support/users/uporabna/)
 * (@uporabna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744719)
 * 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.
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744720)
 * 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.
 *  Thread Starter [uporabna](https://wordpress.org/support/users/uporabna/)
 * (@uporabna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744721)
 * It is [http://blog.uporabnastran.si/feed/](http://blog.uporabnastran.si/feed/)
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744723)
 * 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?
 *  Thread Starter [uporabna](https://wordpress.org/support/users/uporabna/)
 * (@uporabna)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744724)
 * Yes in error log. And yes feed is working as it should, but I am getting repeating
   errors in log.
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744725)
 * 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.
 *  Plugin Author [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * (@tepelstreel)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744738)
 * There shouldn’t be any errors now.

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

The topic ‘PHP Warning: Division by zero’ is closed to new replies.

 * ![](https://ps.w.org/rss-image-feed/assets/icon-128x128.png?rev=1034510)
 * [RSS Image Feed](https://wordpress.org/plugins/rss-image-feed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rss-image-feed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rss-image-feed/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-image-feed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-image-feed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-image-feed/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [tepelstreel](https://wordpress.org/support/users/tepelstreel/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/php-warning-division-by-zero-1/#post-4744738)
 * Status: resolved