Jump to content


Photo

error in site please help


  • Please log in to reply
3 replies to this topic

#1 fullyloaded

fullyloaded
  • Members
  • PipPipPip
  • Advanced Member
  • 133 posts

Posted 20 April 2006 - 07:36 AM

hi
i 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 errors

is there away to make it so that it will say image not aloud or away to fix the errors?thanks...

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/singlesp/public_html/member/classes/cls_member.php on line 2388

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/tmp/phpEjwYh5' is not a valid JPEG file in /home/singlesp/public_html/member/classes/cls_member.php on line 2388

Warning: imagesx(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2389

Warning: imagesy(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2389

Warning: Division by zero in /home/singlesp/public_html/member/classes/cls_member.php on line 2389

Warning: Division by zero in /home/singlesp/public_html/member/classes/cls_member.php on line 2396

Warning: imageistruecolor(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2400

Warning: imagecreate() [function.imagecreate]: Invalid image dimensions in /home/singlesp/public_html/member/classes/cls_member.php on line 2409

Warning: imagesx(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414

Warning: imagesy(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2414

Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/singlesp/public_html/member/classes/cls_member.php on line 2416
Problem In saving


#2 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 08:35 AM

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.

#3 fullyloaded

fullyloaded
  • Members
  • PipPipPip
  • Advanced Member
  • 133 posts

Posted 20 April 2006 - 08:40 AM

[!--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) View Post[/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 User
here 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]

#4 slashemail

slashemail
  • Members
  • PipPip
  • Member
  • 15 posts

Posted 20 April 2006 - 09:05 AM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users