sparky
22nd of January 2003 (Wed), 08:58
Not seen this come up on the forum before so I thought I'd share it.
EE 1.3 (possibly 1.2 as well) uses the php function getimagesize to work out a photos image size. Unfortunately theres a bug in some versions of php that makes this function return no result for valid jpg images.
Whys this important? Well, if you switch on EE's nice "photo temporarily unavailable" error system it means certain images that exist display this error instead. This is because it checks an image size with the function and then uses its results to determine whether it should display the image or not (lines 1217-1229 photo.php).
If you are getting problems with certain images, its worth switching off the EE error display function (in the misc settings area) to the "fastest" mode (browser displays own error) as this resolves this problem.
EE 1.3 (possibly 1.2 as well) uses the php function getimagesize to work out a photos image size. Unfortunately theres a bug in some versions of php that makes this function return no result for valid jpg images.
Whys this important? Well, if you switch on EE's nice "photo temporarily unavailable" error system it means certain images that exist display this error instead. This is because it checks an image size with the function and then uses its results to determine whether it should display the image or not (lines 1217-1229 photo.php).
If you are getting problems with certain images, its worth switching off the EE error display function (in the misc settings area) to the "fastest" mode (browser displays own error) as this resolves this problem.