View Full Version : GD problem! 500 error HELP!
Hi GD experts!
I am running a stockphoto site (http://www.stockaphoto.com) with a script made by ktools.net. I upload photos via FTP, but when I want to add photos larger than 3900 pixels (horizontal mesure) and 3800 pixels (vertical), the server returns a 500 error. I contacted the support at Ktools.net, they told me the script has no limitations on how large the photo can be. The script is using GD library to resize the photo and generate thumbnails, so I think something's wrong with the GD setup or something...
So, my qustion is: how to make the server to process photos larger than 4200-4500 pixels?
Thanks!
You say you upload photos by FTP and then say you upload them with the script - which is it?
If you are using the script, then there is a PHP limit on the size of an uploaded file. I think the default is 2MB. You can change this in a custom php.ini.
I upload by FTP, I add thru the script - this means after FTP-ing the photos they are in the ftp direcory. When I add them, the script is generating thumbnails, stores some info in the database and moves the hires photos into another directory.
All this works fine with photos up to the size I've mentioned above. But with larger photos... :(
Perhaps there's a memory limit? You may want to take this to the PHP section of the forum.
Hi GD experts!
I am running a stockphoto site (http://www.stockaphoto.com) with a script made by ktools.net. I upload photos via FTP, but when I want to add photos larger than 3900 pixels (horizontal mesure) and 3800 pixels (vertical), the server returns a 500 error. I contacted the support at Ktools.net, they told me the script has no limitations on how large the photo can be. The script is using GD library to resize the photo and generate thumbnails, so I think something's wrong with the GD setup or something...
I upload by FTP, I add thru the script - this means after FTP-ing the photos they are in the ftp direcory. When I add them, the script is generating thumbnails, stores some info in the database and moves the hires photos into another directory.
All this works fine with photos up to the size I've mentioned above. But with larger photos...
So, my qustion is: how to make the server to process photos larger than 4200-4500 pixels?
Thanks!
Can't go to the PHP section. Mods are moving back by post :(
So, any other suggestions for my problem?
petemoss
5-30-06, 03:33 PM
If you are using .htaccess and blocking any IP or domains - remove it/them and see what happens.
I've had all types of problems simply by blocking a number of bad ip address using .htaccess. For about 4 days I had DNS problems and couldn't access my site from my browser (http). My site is on cluster4, I have another site on a different cluster that currently doesn't seem to have these problems. Emailing technical and calling on the phone doesn't help either. I think they have problem and either don't know about or don't know how to fix it. I hope they figure it out soon.
BEFORE : Having this caused all sorts of problems
<Limit GET>
order deny,allow
# --- Cyveillance's Bots --- #
deny from 38.118.25.
deny from 38.118.42.
deny from 38.112.21.
deny from 63.148.99.
deny from 65.118.41.
deny from 216.32.64.
deny from 207.87.178.
deny from 63.100.163.
deny from 151.173.221.
deny from 68.48.24.
deny from 4.35.201.
deny from 204.193.117.
deny from .sip.btr.bellsouth.net
</Limit>
AFTER: Site works and creeps are going to town
<Limit GET>
order deny,allow
</Limit>
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.