
Image handling broken in Drupal 7 running PHP 53
#1
Posted 03 June 2011 - 01:39 PM
So I recently installed Drupal 7 and attempted to add some images but received some fatal errors. Like:
Warning: imagecreatefromjpeg(): 'public://Jellyfish.jpg' is not a valid JPEG file in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc) Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc)
Okay, so maybe the Drupal code is broken. So I tried switching over to ImageMagick for processing. Same type of errors are happening ("unable to generate the derived image" most likely similar to the invalid JPEG error from earlier). At this point, I get the feeling it may not be Drupal's fault.
*Throw hands up in air*
Then I get the idea to switch the Drupal install over to PHP 52 (it was running 53) and lo and behold, everything is working! So I'm thinking maybe the PHP 53 binary or image modules were compiled incorrectly? Who knows...
Just thought I'd put that out there. Not a big deal, but PHP 53 does have better performance and I would prefer to use it.
Also, feel free to answer my poll! Just a little something I thought would be a good idea. Not for school or official research or anything.
#2
Posted 03 June 2011 - 10:36 PM
Not really the biggest of issues but an issue nonetheless i suppose.
So I recently installed Drupal 7 and attempted to add some images but received some fatal errors. Like:Warning: imagecreatefromjpeg(): 'public://Jellyfish.jpg' is not a valid JPEG file in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc) Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc)
Okay, so maybe the Drupal code is broken. So I tried switching over to ImageMagick for processing. Same type of errors are happening ("unable to generate the derived image" most likely similar to the invalid JPEG error from earlier). At this point, I get the feeling it may not be Drupal's fault.
*Throw hands up in air*
Then I get the idea to switch the Drupal install over to PHP 52 (it was running 53) and lo and behold, everything is working! So I'm thinking maybe the PHP 53 binary or image modules were compiled incorrectly? Who knows...
Just thought I'd put that out there. Not a big deal, but PHP 53 does have better performance and I would prefer to use it.
Also, feel free to answer my poll! Just a little something I thought would be a good idea. Not for school or official research or anything.
I have the same exact problem! Except I'm running WP.
All of my themes that use timthumb.php doesn't work. And I am using php 5.3.
My blog -- rubiverse.net
#3
Posted 04 June 2011 - 08:06 AM
#4
Posted 28 June 2011 - 03:47 PM
If you haven't, do open a ticket for this so we can look into it. If you did open a ticket, let me know the ticket ID.Not really the biggest of issues but an issue nonetheless i suppose.
So I recently installed Drupal 7 and attempted to add some images but received some fatal errors. Like:Warning: imagecreatefromjpeg(): 'public://Jellyfish.jpg' is not a valid JPEG file in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc) Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of/home/happyplace/public_html/somesite.org/modules/system/image.gd.inc)
Okay, so maybe the Drupal code is broken. So I tried switching over to ImageMagick for processing. Same type of errors are happening ("unable to generate the derived image" most likely similar to the invalid JPEG error from earlier). At this point, I get the feeling it may not be Drupal's fault.
*Throw hands up in air*
Then I get the idea to switch the Drupal install over to PHP 52 (it was running 53) and lo and behold, everything is working! So I'm thinking maybe the PHP 53 binary or image modules were compiled incorrectly? Who knows...
Just thought I'd put that out there. Not a big deal, but PHP 53 does have better performance and I would prefer to use it.
Also, feel free to answer my poll! Just a little something I thought would be a good idea. Not for school or official research or anything.
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#5
Posted 28 June 2011 - 04:10 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#6
Posted 28 June 2011 - 04:13 PM

#7
Posted 28 June 2011 - 04:20 PM
The issue was indeed a change in LibJPEG and we had to rebuild GD/ImageMagick for it but it *should* be working now. I know it's working in 5.2 but I don't have any test sites to try with 5.3.Sure thing. I'll set up a Drupal sandbox (maybe even try to reproduce Adam's problem with WordPress as well) in the next few hours and I'll post the results here
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#8
Posted 28 June 2011 - 04:49 PM
Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of /home/happy_meal/public_html/sb/modules/system/image.gd.inc). Warning: imagecreatefromjpeg(): 'public://Blue hills.jpg' is not a valid JPEG file in image_gd_load() (line 237 of /home/happy_meal/public_html/sb/modules/system/image.gd.inc).
This time, I'll try and debug a little bit more. I'll set up a PHP error log and see what's happening in there and I'll post this issue in Drupal's issue tracker. Again, I will post what I find in hopes that this pesky bug get fixed.
#9
Posted 28 June 2011 - 04:56 PM

█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#10
Posted 28 June 2011 - 05:14 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#11
Posted 28 June 2011 - 05:38 PM
Btw, what was the issue?
#12
Posted 28 June 2011 - 05:45 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#13
Posted 28 June 2011 - 05:47 PM

#14
Posted 21 February 2012 - 08:03 PM
Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of /home/shepherd/public_html/main/modules/system/image.gd.inc). Warning: imagecreatefromjpeg(): 'public://latenightinthezone.jpg' is not a valid JPEG file in image_gd_load() (line 237 of /home/shepherd/public_html/main/modules/system/image.gd.inc). Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in image_gd_load() (line 237 of /home/shepherd/public_html/main/modules/system/image.gd.inc). Warning: imagecreatefromjpeg(): 'public://latenightinthezone.jpg' is not a valid JPEG file in image_gd_load() (line 237 of /home/shepherd/public_html/main/modules/system/image.gd.inc).
#15
Posted 21 February 2012 - 08:04 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#16
Posted 21 February 2012 - 08:51 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#17
Posted 21 February 2012 - 10:11 PM
This has been fixed on the Cypress server (I tested to make sure).
#18
Posted 23 February 2012 - 02:14 PM

█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
#19
Posted 28 May 2012 - 07:09 PM
█ Scalable shared hosting plans in the cloud! Check them out!
█ Highly Available Cloud Shared, Reseller, and VPS
█ http://www.mddhosting.com/
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users