fullyloaded Posted April 20, 2006 Share Posted April 20, 2006 hii have an error in my website that i cant fix can anyone please help me?when i go to upload a image that is not aloud to be uploaded on my site im getting the following errorsis there away to make it so that it will say image not aloud or away to fix the errors?thanks...[code]Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/singlesp/public_html/member/classes/cls_member.php on line 2388Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/tmp/phpEjwYh5' is not a valid JPEG file in /home/singlesp/public_html/member/classes/cls_member.php on line 2388Warning: imagesx(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2389Warning: imagesy(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2389Warning: Division by zero in /home/singlesp/public_html/member/classes/cls_member.php on line 2389Warning: Division by zero in /home/singlesp/public_html/member/classes/cls_member.php on line 2396Warning: imageistruecolor(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2400Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home/singlesp/public_html/member/classes/cls_member.php on line 2409Warning: imagesx(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414Warning: imagesy(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2416Problem In saving[/code] Quote Link to comment Share on other sites More sharing options...
slashemail Posted April 20, 2006 Share Posted April 20, 2006 It would be better if you could show the code snippet(upload script) which is responsible for the error.Note : Check if GD library is installed on the server. Quote Link to comment Share on other sites More sharing options...
fullyloaded Posted April 20, 2006 Author Share Posted April 20, 2006 [!--quoteo(post=366735:date=Apr 20 2006, 03:35 AM:name=Tux User)--][div class=\'quotetop\']QUOTE(Tux User @ Apr 20 2006, 03:35 AM) [snapback]366735[/snapback][/div][div class=\'quotemain\'][!--quotec--]It would be better if you could show the code snippet(upload script) which is responsible for the error.Note : Check if GD library is installed on the server.[/quote]hi Tux Userhere is the code witch its saying the error is its to big to copy and paste here so i paste it on my server at the link below thanks...[a href=\"http://www.singlespleasures.com/code.htm\" target=\"_blank\"]code for wicth its saying the error is[/a] Quote Link to comment Share on other sites More sharing options...
slashemail Posted April 20, 2006 Share Posted April 20, 2006 Just go throuh your phpinfo page & check if you have GD support.My first target is GD Library.Confirm this first.The errors like 'Division by zero" on lines 2389, 2396, etc are pretty simple, Always check for a non-zero value before using the Division operator. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.