Page 1 of 1

Intermittent 500 internal server error

Posted: 2013-01-13T17:34:28-07:00
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.

Re: Intermittent 500 internal server error

Posted: 2013-01-18T03:00:17-07:00
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)