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

Fatal error: Maximum execution time exceeded when uploading avatars

Discussion in 'Troubleshooting and Problems' started by Donnie La Curan, Jul 15, 2011.

  1. Donnie La Curan

    Donnie La Curan Active Member

    It was originally 30 seconds so I bumped that up to 120 seconds. It's still timing out though. I am using the ImageMagick PECL Extension. No other errors show up.

    Code:
    [15-Jul-2011 16:20:16] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/insanein/public_html/community/library/XenForo/Image/ImageMagick/Pecl.php on line 261
    [15-Jul-2011 16:31:41] PHP Fatal error:  Maximum execution time of 120 seconds exceeded in /home/insanein/public_html/community/library/XenForo/Image/ImageMagick/Pecl.php on line 178
     
  2. Luke F

    Luke F Well-Known Member

    Animated gif?
     
  3. Donnie La Curan

    Donnie La Curan Active Member

    Tried both an animated GIF and a JPG.

    150_squidword_pizza.jpg

    16097.gif

    pointer_atack.gif
     
  4. Donnie La Curan

    Donnie La Curan Active Member

    Actually this goes beyond avatars. I tried to upload the same 3 images here to a post on my forum and the JPG went, but the 2 animated GIFs didn't go through.

    The smaller one shows 100% on the bar but goes no further and the larger GIF doesn't do anything. I even tried to upload them one at a time.
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Both of those timeouts are Imagick functions.

    Line 178:
    Code:
    $frame->thumbnailImage($width, $height, true);
    Line 261:
    Code:
    $this->_image = $image->coalesceImages();
    There is no way those images should take that long to process. Imagick is being slow for some reason.

    What version of PHP and Imagick are you running?
     
  6. Donnie La Curan

    Donnie La Curan Active Member

    PHP Version 5.2.17
    imagick module version 3.0.1
    imagick classes Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator
    ImageMagick version ImageMagick 6.4.8 2010-11-12 Q16 OpenMP http://www.imagemagick.org
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  8. Donnie La Curan

    Donnie La Curan Active Member

    I am on 1.0.4 I forgot to mention that. I will see if I can dig around some to find an answer. Thanks!
     
  9. Donnie La Curan

    Donnie La Curan Active Member

    While the version of ImageMagick I have is not that far out of date, I am asking the host if they can update to the latest version.

    Also asking for PHP upgrade since I'm on 5.2.17 and the current stable release is 5.3.6.
     
  10. Donnie La Curan

    Donnie La Curan Active Member

    One thing I noticed, the whole thing bombs before 30 seconds is up. But the error given is max execution time has been exceeded. How is this possible? Is there anything I should ask my host (Site5) to check?
     
  11. Donnie La Curan

    Donnie La Curan Active Member

    Not sure what I did, but I kept messing around with crap and now everything is working!
     
  12. rafass

    rafass Well-Known Member

    I have the same problem now
    Code:
    Fatal error: Maximum execution time of 120 seconds exceeded in /home/foro/public_html/library/XenForo/Image/ImageMagick/Pecl.php on line 332
    PHP Version 5.4.36
     
    Last edited: Jan 3, 2015
  13. Mike

    Mike XenForo Developer Staff Member

    This can be an Imagick issue, or it can just be down to the work involved in resizing animated avatars. Unless you can do about recompiling Imagick and tweaking low level system stuff, the main alternative is to use the default GD processor.
     
  14. rafass

    rafass Well-Known Member

    Yes, you're right.
    FYI, that only happened trying to change the avatar at an user (1Mb("heavy")) as administrator in the ACP. in general works fine. Thanks for the explanation Mike.
     

Share This Page