Error 500 on upload - Image is found on the server
|
bronken
Joined: 2009-07-28
Posts: 5 |
Posted: Tue, 2009-07-28 12:34
|
|
Hi! I have a webhotel at one.com. When I upload images over 3-400kb, I get error 500. But the thing is that the php size memory limit is 12mb and I still get that error. I have tried editing the htaccess file but then I get a internal error on everything. I have also tried adding a php.ini in the gallery root folder, but still nothing. Now, what can I do? I really need this to work! I contacted the host but they can not edit anything in the php.ini. THe weird thing is that the full size image is found, example here: http://carlcb.com/galleri/var/albums/IMG_4871.jpg Thanks! PS: http://carlcb.com/galleri Theres my gallery |
|

Posts: 25968
So you ca add small items?
If so then this should work even if it is a G2 FAQ:
FAQ: Why can't I upload big files (over a megabyte or two)?
if you get a 500 error there should be something in the servers error log:
FAQ: What is the webserver error log?
But I suspect if your host has a name with 'one' in the title it is going to be tough. Especially if they say: 'they can not edit anything in the php.ini.'
Any info in the gallery3/var/logs?
What image toolkit are you using? If GD; try another.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Hey!
Like I said, I have tried the htaccess thing like in that FAQ you are linking to.
One.com is a huge danish webhost and they are pretty good, but they dont allow customers to change the php.ini on their servers, at least not on my package.
No logs in that folder btw.
I am using GD, and I have to also because thats the only toolkit installed on the server.
This can result in a "Internal Server Error" (error status 500) on all your Gallery pages. If you get an error after this change, remove your changes. That means that your webhost doesn't allow such changes in .htaccess.
I tried that and got that error. Also tried the php.ini trick and that didnt work either.
Posts: 25968
OK but what about the servers logs?
Also try: FAQ: How do I see debug information?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Okay I tried making that local.php file like in that latest FAQ link and the error 500 doesnt show while uploading anymore. But the problem is still all the resized pictures not showing.
Look: http://carlcb.com/galleri/index.php/IMG_4871.jpg
Any idea?
Posts: 25968
Seems to be one of two things:
http://www.carlcb.com/galleri/var/thumbs/ does not have permissions to view or the thumb is not created
is there any files in http://www.carlcb.com/galleri/var/albums/thumbs/ ?
Does the webserver have permisisons to write to the var directory?
There was some fixes to filesystem permisisons in the latest git so see if installing a experimental version helps out:
http://codex.gallery2.org/Gallery3:Upgrading
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
There are no images in the thumbs folder, only in the "uploads" folder where the original image files are.
The webserver does have permissions to write to it. And I am running Gallery3 and I just ran the updater thing but still no changes.
This sucks
Posts: 25968
So now it is pointing to a image toolkit. Se if changing that helps.
If you are getting a server error there should be something in the servers log
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Well I cant change that, the server only has GD.
And I dont have permissions to see server logs.
Posts: 25968
1.
2.
3.
Three strikes against that host.
Without digging in deep and putting a bunch of debug code in the files I don't know what else to say. Without server log files it is hard to diagnose why it does not work on that host and works on others.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 7985
If they raise your PHP memory limit it'll work. Remember that images are compressed and GD uncompresses them in memory. 12MB is not enough if you want to deal with 2-3 megapixel images.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!