Closed (fixed)
Project:
Image FUpload
Version:
6.x-1.1-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2008 at 13:48 UTC
Updated:
10 Oct 2008 at 14:09 UTC
When uploading .png files, using Safari 3.1.2, the last or several images uploaded will throw the following error:
Division by zero in [sitedata snipped...]/sites/all/modules/image_fupload/image_fupload_image/image_fupload_image.module on line 223.
The image node is added, but without the image content. The file can be uploaded normally (not using Image FUpload) thereafter when the node is edited.
Uploading jpegs seems to work fine, this seems to be an image format related problem.
.png file this first occurred with, attached.
| Comment | File | Size | Author |
|---|---|---|---|
| hand-strikes.png | 742.4 KB | aegidian |
Comments
Comment #1
grandcat commentedThis problem often appears if your php filelimit is too low, try to raise it, but of course, I will analyse this case the next days =)
P.S.: I'm back from vacation
Comment #2
grandcat commentedI now tested your case with the provided image (image fupload 3.x devel version, but probably the same behaviour for rc1) but no problem appeared. The image (node) was created successfully.
I think that your php version does not support PNG Image files, you should reinstall (recompile) your php binaries with gd library support, but before, you also have to install some png related packages.
With not knowing anything about your server / operating system, I can't answer more precisely.
UPDATE
Have a look at phpinfo | section "gd" | "png" should be enabled there. If not, some additional, needed packages are needed to make it run.
Comment #3
grandcat commentedI forgot to set that it should be a support request ;)
Comment #4
grandcat commentedNo infos back - close support request