• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Imagick error

Affected version
XF2 beta 6

PaulK

Active member
#1
I'm not sure if this is a bug or an issue with my server. I'm seeing:

ErrorException: Fatal Error: Maximum execution time of 30 seconds exceeded src/XF/Image/Imagick.php:244
Generated by: xxxx Oct 15, 2017 at 5:06 PM
Stack trace
#0 [internal function]: XF::handleFatalError() #1 {main}
Request state
array(4) { ["url"] => string(15) "/account/avatar" ["referrer"] => string(23) "https://paulsplace.net/" ["_GET"] => array(0) { } ["_POST"] => array(7) { ["avatar_crop_x"] => string(1) "0" ["avatar_crop_y"] => string(1) "0" ["use_custom"] => string(1) "1" ["_xfToken"] => string(8) "********" ["_xfRequestUri"] => string(1) "/" ["_xfWithData"] => string(1) "1" ["_xfResponseType"] => string(4) "json" } }
 

Chris D

XenForo developer
Staff member
#2
It's likely neither a bug nor an issue with the server, per se.

If I had to guess, someone uploaded a large GIF. The problem with large GIFs and Image Magick is that each frame in the GIF has to be resized one by one. If it has a load of frames then it can just take too long (it does depend on the resources available to the server to a certain extent).

As a workaround, you might want to look at the max_execution_time setting in php.ini. It defaults to 30 seconds, but increasing it to 60 might be reasonable.