Jump to content

Archived

This topic is now archived and is closed to further replies.

fullyloaded

error in site please help

Recommended Posts

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...

[code]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[/code]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[!--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 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]

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.