Hi folks, first time poster here and I did search first so hope this is appropriate. My blog just started throwing some errors every time I try to manipulate an image file. I first noticed this when uploading a new image. The thing is, it succesfully uploads the image, and it creates the thumbnail, but subsequently, it throws the following error:
Adding image...
File houseinspring2.jpg successfully uploaded as /home/rathbor/public_html/DomeBlog/uploads/houseinspring2.jpg
Thumbnail created.
Done.
== SERENDIPITY ERROR ==
Please correct:
imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/rathbor/public_html/DomeBlog/include/functions_images.inc.php on line 1309
Any ideas? It was working great for months and now this just started.
Thanks in advance,
Adam
Error Managing Media functions_images.inc.php
-
- Posts: 2
- Joined: Tue May 07, 2013 5:41 pm
Re: Error Managing Media functions_images.inc.php
Try these, one by one, or one after another...
1) Ask your ISP, if something might have changed on the server, regarding the jpeg library
2) Check the disc space available
3) Check the PHP memory limit and set more if necessary:
4) Check the post_max_size and upload_max_filesize
Set more in your .htaccess file:
5) set this somewhere on top of function_images.inc (right after "@define('S9Y_FRAMEWORK_IM'..."
6) put @ in front of the function
7) read (also comments)
http://php.net/manual/de/function.image ... omjpeg.php
( things like: "check the JPEG files. If they are saved in CMYK format (instead of RGB) some GD's will fail to load them" may happen too)
8.) investigate your servers libs
and see if it is and is properly installed (repair if necessary)
1) Ask your ISP, if something might have changed on the server, regarding the jpeg library
2) Check the disc space available
3) Check the PHP memory limit and set more if necessary:
Code: Select all
ini_set("memory_limit","256M");
Set more in your .htaccess file:
Code: Select all
php_value post_max_size 16M
php_value upload_max_filesize 6M
Code: Select all
ini_set("gd.jpeg_ignore_warning", 1);
Code: Select all
@imagejpeg(...);
@imagecreatefromjpeg(...)
http://php.net/manual/de/function.image ... omjpeg.php
( things like: "check the JPEG files. If they are saved in CMYK format (instead of RGB) some GD's will fail to load them" may happen too)
8.) investigate your servers libs
Code: Select all
$ locate libjpeg
Regards,
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Ian
Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
-
- Posts: 2
- Joined: Tue May 07, 2013 5:41 pm
Re: Error Managing Media functions_images.inc.php
Hi, thanks very much for taking the time to reply. I really appreciate it.
What's weird...the problem went away. I came back to it after wrestling with it all night, nothing seeming to fix it, but whatever the problem was seems to have completely dissapeared.
I wish I knew why, as it might be helpful to others, but I'm stumped.
Glad it's working though, thanks again for your suggestions. I'll keep this in mind in case things go wonky again.
Sincere Regards,
Adam
What's weird...the problem went away. I came back to it after wrestling with it all night, nothing seeming to fix it, but whatever the problem was seems to have completely dissapeared.
I wish I knew why, as it might be helpful to others, but I'm stumped.
Glad it's working though, thanks again for your suggestions. I'll keep this in mind in case things go wonky again.
Sincere Regards,
Adam