View Full Version : Photo Upload Error's
March 25th, 2008, 03:09 PM
When trying to upload photo's into my gallery, I get this error message: (): Sorry, this image type is not supported yet
I just installed the program on my server, and I have set all of the access permiossions to the levels described in the installation manual. Is there something that I am missing in the admin panel.
I can get as far as the final upload stage, where the thumnails and photo titles are to be placed, however the thumbnails are not visible, just a red-x area. I can click on these and view the photo, but the system will not upload them. It just returns the error noted above.
March 25th, 2008, 03:13 PM
That error would suggest your data and uploads directories are not READ WRITE EXECUTE at every level.
March 25th, 2008, 03:15 PM
All of the directories are 777, should they be something else?
March 25th, 2008, 03:23 PM
Do the Index.HTM files in the data and upload directories need to be set to 777 as well?
March 25th, 2008, 03:43 PM
No they do not need to be 777 only 644
The medium thumbs and mini directories need to be 777 as well as all numeric directories under data
March 26th, 2008, 12:19 AM
Users can't upload and I'm getting the following messages:
Warning: move_uploaded_file(/home/downsh/public_html/photopost/uploads//4/wubiegirls.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/downsh/public_html/photopost/image-inc.php on line 48
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpytds35' to '/home/downsh/public_html/photopost/uploads//4/wubiegirls.jpg' in /home/downsh/public_html/photopost/image-inc.php on line 48
Gallery has been working fine. Haven't made any changes. This just started happening... the // in the path seems strange? I've checked the paths in the setup.
March 26th, 2008, 08:40 AM
That tells me your uploads path in global options has an extra slash which needs to be removed and also based on the error make sure the uploads directory and all subdirectories is set to 777 permissions and that in php safe mode is set to OFF.
March 26th, 2008, 09:24 AM
Here is my upload path:
Both the data and upload directories are set to 777.
I'll check to see if my ISP has changed the safe mode.
March 26th, 2008, 09:40 AM
All of the settings seem to be as suggested.... safe mode is off.
Any other thoughts? The upload and data directories were not set to 777 before I read this thread last night but have been working fine. Last night I changed them to 777 and also tried to change the files under them to 777 but a number of them would not all a permission change.
I think another clue is that logged in with admin rights I can actually upload a picture. I do get an error, which I haven't been able to capture but the file still uploads.
all very confusing...
March 26th, 2008, 10:03 AM
Here's the error message I get when I have admin rights...
Warning: imagegif() [function.imagegif]: unable to open '/home/downsh/public_html/photopost/data/500/thumbs/pic.gif' for writing: Permission denied in /home/downsh/public_html/photopost/image-inc.php on line 144
But it does actually complete the upload...
March 26th, 2008, 10:56 AM
Correct that tells me permissions on the thumbs directory under directory 500 is not 777 permissions.
March 26th, 2008, 10:40 PM
Turns out the server had a problem... permissions messed up, ownership messed up so I couldn't change the permissions, etc. Hopefully on the way to being straightened out.
Thanks for you help as always,
March 27th, 2008, 08:12 AM
The isp sent the following message:
We installed phpsuexec on the server where your account is located. It means the site will work fine if access prmissions 755 and 644 are applied for all folders, files. phpsuexec executes php scripts uneder user IDs. So your php scripts will be able to upload files into the filders with permissions 755.
Is this true? Will it work with 755 under phpsuexec ??
If I have to restore can I restore the files from last week but not the database? or do I have to restore the files and the database from the same time?
March 27th, 2008, 09:59 AM
If a server is setup correct 755 should work fine.
You need to restore files and database both to restore a site.
March 27th, 2008, 01:02 PM
well the server must not be set up correctly because it didn't work until they changed to 777. Now that error has gone away. But I'm still left with these:
Warning: move_uploaded_file(/home/downsh/public_html/photopost/uploads/4/wubiegirls.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/downsh/public_html/photopost/image-inc.php on line 48
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpytds35' to '/home/downsh/public_html/photopost/uploads/4/wubiegirls.jpg' in /home/downsh/public_html/photopost/image-inc.php on line 48
I did manage to get rid of the // that was in them before but the errors persist...
March 27th, 2008, 02:24 PM
Make sure your uploads directories are all 777 and that safe mode is off in php.
March 27th, 2008, 03:40 PM
Chuck, you are a very patient man. Thank you for not yelling at me. :-)
I finally got the isp to change everything as required to chmod 777 and all problems have gone away.
There only answer as to why this happened they could give me was that there was a hardware problem. I believe it was also related to a php upgrade. The bad thing is that currently I can only chmod some directories and not others which I'm assuming is a directory ownership issue.
Anyway, I greatly appreciate your knowledge and your patience.
March 27th, 2008, 04:00 PM
Not a problem Bill glad to help out thats why I am here.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.