Jump to content

[Solved] Cannot upload image - uploaded image results 0 byte


Recommended Posts

Hi all,

Suddenly my prestashop going wrong. I can't upload any image. I mean I can upload it (no error message - update successful) but no images are displayed. I checked my img/p/ directory and found that all new images are in 0 byte.

I checked the error_log and found this:

[22-Feb-2011 16:53:30] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/xxxxxxxx/public_html/img/tmp/PSUoBLhj' is not a valid JPEG file in /home/xxxxxxxx/public_html/images.inc.php on line 212
[22-Feb-2011 16:53:30] PHP Warning:  imagecopyresampled(): supplied argument is not a valid Image resource in /home/xxxxxxxx/public_html/images.inc.php on line 160
[22-Feb-2011 16:53:30] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/xxxxxxxx/public_html/images.inc.php on line 212
[22-Feb-2011 16:53:30] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/xxxxxxxx/public_html/img/tmp/PSUoBLhj' is not a valid JPEG file in /home/xxxxxxxx/public_html/images.inc.php on line 212
[22-Feb-2011 16:53:30] PHP Warning:  imagecopyresampled(): supplied argument is not a valid Image resource in /home/xxxxxxxx/public_html/images.inc.php on line 160
[22-Feb-2011 16:53:30] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file
in /home/xxxxxxxx/public_html/images.inc.php on line 212
[22-Feb-2011 16:53:30] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error:  in /home/xxxxxxxx/public_html/images.inc.php on line 16
[22-Feb-2011 17:24:44] PHP Warning:  imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/xxxxxxxx/public_html/img/p/82-163.jpg' is not a valid JPEG file in /home/xxxxxxxx/public_html/images.inc.php on line 16
[22-Feb-2011 17:24:44] PHP Warning:  imagesx(): supplied argument is not a valid Image resource in /home/xxxxxxxx/public_html/images.inc.php on line 17
[22-Feb-2011 17:24:44] PHP Warning:  imagesy(): supplied argument is not a valid Image resource in /home/xxxxxxxx/public_html/images.inc.php on line 18



Can anyone help me with this?

PS.: My server use PHP 5.2.16


Sorry, my fault. Disk usage in my hosting account is full. I've upgraded my account and it's OK now.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...