View Full Version : Upload problems after server move
September 25th, 2006, 03:35 PM
This weekend, I changed hosting companies. While everything is displaying properly, uploads result in the following in the header:
Warning: move_uploaded_file(/home/pierands/public_html/photopost/uploads/10317/ronsray.jpg): failed to open stream: Permission denied in /home/pierands/public_html/photopost/image-inc.php on line 37
Warning: move_uploaded_file(): Unable to move '/tmp/phpuz6U4Y' to '/home/pierands/public_html/photopost/uploads/10317/ronsray.jpg' in /home/pierands/public_html/photopost/image-inc.php on line 37
and this in the body of the page:
Unable to move file [/tmp/phpuz6U4Y] [/home/pierands/public_html/photopost/uploads/10317/ronsray.jpg]
I've checked admin-index.php and my paths appear to be the same. Any guesses as to what's going wrong here?
September 25th, 2006, 04:41 PM
If you moved servers you need to reset permissions like its a new install
uploads and data at every level need to be 777
September 25th, 2006, 05:00 PM
Now I'm getting a different error message:
Error creating thumbnail! Error code: 1
"/usr/local/bin/mogrify" +profile "*" -size 100x67 -quality 70 -geometry 100x67 -unsharp 10 '/home/pierands/public_html/photopost/data/500/thumbs/ronsray1.jpg'
September 25th, 2006, 08:33 PM
If your server has an old imagemagick you could get that issue with the profile statement.
Does the image upload if you use gd2 as the processor?
September 25th, 2006, 09:33 PM
With both GD1 and GD2, the image processes, an error message briefly appears before the forward (happens too fast to catch it), then a black thumbnail appears in the gallery.
If you click the thumbnail, the bigger image appears properly.
September 26th, 2006, 09:03 AM
Make sure your data directories at every level are set to 777 and try to get the error with gd2. It looks to me like permissions in the thumbs directories and see that safe mode is not on on the server.
September 26th, 2006, 07:23 PM
I chmoded /thumbs. Now there are no error messages during an upload, but the picture won't appear. It goes through the whole "processing images" routine, kicks me into my gallery, and there's nothing there.
September 27th, 2006, 07:13 AM
Not even the big image?
You can post a test user account and url here for us to try and upload and also a link to phpinfo on the server.
September 27th, 2006, 08:55 PM
The bizarre thing is, some users can upload. But many--myself included--cannot. It goes through the whole process, tells me the picture is uploaded, then dumps me into my gallery. But there's nothing there. No thumb, no big picture, nothing.
I've cleared my cookies, even come back under newly-created test accounts. Nada.
September 27th, 2006, 09:45 PM
well if the file is being dropped is it because your trying to upload a file larger then your PHP max upload?
September 28th, 2006, 10:05 AM
Upload File Size Limit is set to 0 for all usergroups.
September 28th, 2006, 11:30 AM
No how big is the file your trying to upload? what is the max upload filesize allowed in PHP info?
You basically saying if I am following is you try to upload and then the upload is dropped and your being returned to the page
September 29th, 2006, 11:23 AM
Yes, that's what I'm saying. The picture disappears during the upload process, but there's no error message given.
As I said above, Upload File Size Limit is set to 0 for all usergroups. The documentation for Photopost says that setting it to 0 will allow uploads of any size. The particular photo that keeps failing is about 1.5 megs.
September 29th, 2006, 11:53 AM
What is the largest file you can safely upload? If others can upload and its only these big files that cause a problem either the max upload in PHP is lower than the file your trying to upload or the server has a LimitBodyRequest variable set in there apache setup to limit upload sizes
You did clear your uploads directory of all files?
September 30th, 2006, 06:58 PM
I'm having exactly the same problem, data and uploads directories are all set to 777 including all levels under it.
I also run PLESK.
September 30th, 2006, 07:04 PM
If it is disappearing then one of the 3 is your culprit
1. safe mode is on
2. file uploads are off
3. Your file is over your php max_upload_filesize or the LimitBodyRequest variable on your server
October 1st, 2006, 11:18 AM
Well, #1 and #2 can't be the case, since some photos are making it up.
php max_upload_filesize--is that the variable that's set by "Upload File Size Limit"?
I'll ask my host about LimitBodyRequest.
October 1st, 2006, 11:33 AM
No your PHP setting is set in your php.ini file and that means no matter what you put in photopost you can not upload a file larger than this.
So if your left with no errors other than large files do not process this would be your issue.
If your left with other errors please post them
October 1st, 2006, 05:30 PM
I'm having the same problems and have tried all that you have suggested. I changed from Image to GD and finally got past the error code 1 error and the bulkload page actually showed something but the image shows as an x and turns out the image is not yet in the data/500/thumbs dir.
I have confirmed my image is less than the 2M limit imposed in php.ini.
FYI, i just upgraded an hour ago from 5.3 to 5.5 and noticed the photopost 5.5 download file was updated this morning.
October 1st, 2006, 06:01 PM
Have you verified your path is correct?
I have had two guys this weekend swear up and down permissions where fine paths where right etc and their paths set to data and uploads where incorrect.
What is the error you get that is what you need to post and please post a url and test login to your gallery
October 1st, 2006, 06:20 PM
From my hosting provider error log are these two entries:
0: [Sun Oct 01 19:09:07 2006] [error] [client 18.104.22.168] PHP Notice: Undefined variable: argv in /home/godigita/godigitalscrapbooking.com/html/photopost/index.php on line 15, referer: http://www.godigitalscrapbooking.com/photopost/uploadphoto.php
1: [Sun Oct 01 19:07:30 2006] [error] [client 22.214.171.124] File does not exist: /home/godigita/godigitalscrapbooking.com/html/photopost/data/500/thumbs/Pretty-Silver-Chain1.jpg, referer: http://www.godigitalscrapbooking.com/photopost/bulkupload.php?ppaction=addphotos&do=preview&photopath=1&upuser=admin¬ify=no&rating=&comments=yes&defcat=500&deftitle=SDf&defdesc=ASef&defdesc=ASef&keywords=SDf&numprocess=10&processall=no&dthumbs=yes
I have crossreferenced the path in the error log to the path I'm checking permissions for and have verified that the data/500 and all of it's subdirectories have 777 as their permissions. You can use tester / t$st as a test account.
October 1st, 2006, 06:59 PM
redownload the build upload image-inc.php and rebuild in admin scan database missing thumbnails
October 1st, 2006, 07:09 PM
Bless you Chuck! That process fixed it! During this whole thing I changed from ImageMagik to GD2. Things work under GD2 but I am going to try IM now. If it doesn't work, I'm gonna switch it back to GD2 :)
October 8th, 2006, 07:11 PM
I honestly have no idea what it was. I hired someone to upgrade me about a year ago and I just stumbled across the thing.
Anyway, it's deleted and things are still working fine.
Thanks for all your help.
October 9th, 2006, 09:31 AM
More than likely they took a backup of your database or so when they upgraded you
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.