image upload broken after php 5.3.3 upgrade

bdj

Verified User
Joined
Feb 22, 2008
Messages
113
I upgraded my php 5.2.12 to 5.3.3 with custombuild.

After the upgrade users cannot upload jpg images (with wordpress).


Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: gd-jpeg: JPEG library reports unrecoverable error: in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Passed data is not in 'JPEG' format in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

Warning: imagecreatefromstring() [function.imagecreatefromstring]: Couldn't create GD Image Stream out of Data in /usr/home/bla/public_html/wp-admin/includes/image.php on line 162

I tried ./build libjpeg
and than ./build php again but that didn't work either
 
oke, I replaced my current php.ini with php.ini-production from 5.3.3 and now the error is gone. Let's see if nothing else is messed up now
 
You may want to compare the two files and try to determine the problem.

Jeff
 
It's this setting;

[gd]
gd.jpeg_ignore_warning = 1

and this one was also bothering me but that was another problem:
short_open_tag = On
 
Short tag was removed. You should update all your code to not use shorttags anymore. Alot of code isnt compatable with 5.3 I wouldnt recommend using it on a production server.
 
Back
Top