-
- 5 Posts
I have a Maxigallery upload problem. I have a gallery which had been working and now I am suddenly getting a strange error. I promise nothing about the code itself was changed (I haven’t been on this site in some time). I just got a call from the customer this morning saying they couldn’t upload a picture.
Here is the error message I’m getting:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Division by zero
Error type/ Nr.: Warning - 2
File: /home/newmande/public_html/assets/snippets/maxigallery/watermark/Thumbnail.class.php
Line: 281
Line 281 source: if ( (($this->img["x"])/$size_x) >= (($this->img["y"])/$size_y) ) {
Parser timing
MySQL: 0.0037 s (3 Requests)
PHP: 0.1589 s
Total: 0.1626 s
I’ve tried uploading all types of files and I’m getting the same error on everything. I do think that my web hosting provider may have done an update on the server this weekend which could have changed the ImageMagick and/or PHP versions.
Has anyone seen this before? I’m really stumped.
Thanks in advance for any advice!
Scott