 | |  | | | Photopost Pro Installation & Upgrades If you're having install or upgrade problems |
March 9th, 2005, 06:46 PM
|
#1 (permalink)
| | Registered User
Join Date: Mar 2005
Posts: 17
| Issue with .zip upload
I have everything running nice and smoothly finally. I am testing the upload situation. Because I am populating the database myself, and because I have 10,000 images, doing it in bulk through .zip files would be wonderful. I can upload single images or multiple images at a time, everything works wonderfully. The second I try a .zip file though, I get to the preview screen where I can comment, press "process" and get this: Warning: getimagesize(c:/inetpub/wwwroot/uploads/1/Virus_by_RedFiery1.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\image-inc.php on line 215
Warning: copy(c:/inetpub/wwwroot/uploads/1/Virus_by_RedFiery1.jpg): failed to open stream: No such file or directory in c:\inetpub\wwwroot\image-inc.php on line 261
Warning: Division by zero in c:\inetpub\wwwroot\image-inc.php on line 288
And then this:
Error creating thumbnail! Error code: 1
Command:
"C:/imagemagick/mogrify.exe" -size 0x100 -quality 70 -geometry 0x100 c:/inetpub/wwwroot/data/2/thumbs/Virus_by_RedFiery1.jpg
I have searched the forums and haven't seen it come up much and the times it does it seems omegatron fixes it but hasn't really mentioned the problem. I have tried the suggested fixes, I have modified my php.ini to up its memory to 16MB, I have adjusted the max upload size to 100MB, I have checked my thumbsize everywhere and its set to the default 100. I installed jpegtran just in case. Still problems.
The .zip is only 1MB with three photos. The first photo in the preview is always the one that throws the error, regardless of the image. After, if I try to upload again, it throws me this error, even if I upload a single file which is completely different. Ideas? Thoughts?
Oh, and the only way to get everything running again is delete every single image I have uploaded and clear the upload directories of the files.
Last edited by thechameleon; March 9th, 2005 at 06:48 PM.
|
| |
March 9th, 2005, 06:49 PM
|
#2 (permalink)
| | PhotoPost Developer Verified Customer
Join Date: Jan 2002
Posts: 11,858
|
Can you verify the permissions on your uploads and uploads/1 directory that the files can be moved there? When you upload and get to that screen, are there any files in the uploads/1 directory?
__________________ Please do not PM me for support or sales questions. Thank you for your understanding. |
| |
March 9th, 2005, 07:11 PM
|
#3 (permalink)
| | Registered User
Join Date: Mar 2005
Posts: 17
|
Hey Michael, yeah, I triple checked the permissions (Win 2003 in case that helps) and everyone, IUSR, IIS, etc. all have 777 (read, write, execute) for both /uploads and uploads/1. The files are in the uploads/1 directory when I get the preview screen, and they remain there after I have clicked process. Each file from the .zip exists along with a copy that is .gz. I am not sure if that is important... each of the image files and copies all have 777 across the board... Thanks!
Oh, I should mention too that when I get the errors, if I go out into the gallery, the images are there from the .zip file, but then I can't upload anything again until I manually clear the uploads/1 directory of all the files...
EDIT: So, doing some research it looks like PHP is having issues running the "getimagesize" function... could it be my images? that doesn't make too much sense since I can upload the same images individually. Is the .zip file somehow screwing up the fie information?
Last edited by thechameleon; March 9th, 2005 at 07:31 PM.
|
| |
March 10th, 2005, 04:29 PM
|
#4 (permalink)
| | Registered User
Join Date: Mar 2005
Posts: 17
|
Okay, so I think I have found a bit of the problem. I am trying to upload a zip archieve of 4 images: 1.jpg, 2.jpg, 3.jpg, and 4.jpg.
When I get the error, its looking for the filename WITH a 1 added before the extension for every file. So for instance, in the above situation it is looking for "11.jpg" which doesn't exist. In my earlier post, it just noticed that it was looking for "*1.jpg" which the file never had.
Where is that extra "1" coming from?
|
| |
March 10th, 2005, 05:57 PM
|
#5 (permalink)
| | Registered User
Join Date: Mar 2005
Posts: 17
|
Okay, so I think the "1" that is getting placed in all of the strings is from this and other lines like it, from bulkupload.php, line 68:
$inpath = "{$Globals['zipuploaddir']}/{$User['userid']}";
It is tacking my userid onto the end of the file I am assuming. Is it supposed to be doing this?
Can anyone help!???
|
| |
March 10th, 2005, 06:40 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,797
|
I would ensure in admin options you have this set to yes
Do you want to allow ZIP uploads?
Also as Michael stated check directory paths to ensure they are correct and permissions.
I am unable to replicate this. If I zip up 4 images and upload them they upload without issue.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 11:35 AM. | |