Intermittent 500 internal server error

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
php_princess
Posts: 1
Joined: 2013-01-13T17:25:37-07:00
Authentication code: 6789

Intermittent 500 internal server error

Post by php_princess »

The problem: About 50% of the time when I run a script that uses imagick::blurImage it fails and I get this error:
500 Server Error

A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
NOTHING goes in the error logs and this did NOT used to happen--EVER. It just started suddenly, two days ago.

Here's a simple script I put together, to illustrate my point:

Code: Select all

<?php 

$image = new Imagick('http://www.dogrealm.net/images/bordercollie25.jpg');

$image->blurImage(5,3);
print "success";

?>
If you run it over and over it works about half the time and gives you the error the other half.

My host thinks it's something in my coding. Do you see anything wrong with my code? Also, they say they're using ImageMagick 6.7.9-10 2012-10-05

I apologize if anything is wrong with this post. I'm new to the forum and I'm half asleep. Feel free to educate me if I did something horrendously wrong.
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Intermittent 500 internal server error

Post by mkoppanen »

Check if your ImageMagick is compiled with openmp, as that seems to cause issues on certain operating systems (noticed it on Debian Squeeze)
Mikko Koppanen
My blog: http://valokuva.org
Post Reply