PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro Installation & Upgrades

Photopost Pro Installation & Upgrades If you're having install or upgrade problems

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 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.
thechameleon is offline   Reply With Quote
Old 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.
Michael P is offline   Reply With Quote
Old 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.
thechameleon is offline   Reply With Quote
Old 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?
thechameleon is offline   Reply With Quote
Old 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!???
thechameleon is offline   Reply With Quote
Old March 10th, 2005, 06:40 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip N' Download Issue with v5.2 jgommel Photopost Pro Bug Reports 3 October 20th, 2005 10:06 PM
Can I upload in bulk via ZIP files? WeST How Do I? - vBulletin 3.5.X 2 September 30th, 2005 11:31 PM
Feature request .. upload zip files GeoffE vBGallery Suggestions 1 August 16th, 2005 02:02 PM
PP 5.03 - Can't do zip upload wx4castr General Discussion 1 June 20th, 2005 06:59 PM
2MB Zip upload limit rcflood Photopost Pro How Do I...? 3 April 20th, 2005 10:32 AM


All times are GMT -5. The time now is 11:35 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0