XF 1.3 Unable To Upload Animated Avatars

DRE

Well-known member
I have ImageMagick installed and enabled but I am unable to upload animated avatars no matter how small or large. I'm on Xenforo 1.3 Beta 3. No error. It does the loading icon then stops and stays on the upload avatar screen.
 
Anything in the server error log or browser console?

Typically this is indicative of a dodgy Imagick build.... Which actually... You host installed the Imagick extension right?

But is the actual Imagick application available on the server?

You might want to check with them.

If they think everything is set up correctly it will be worth installing a different Imagick build. I've known similar issues before and installing a newer or even slightly older version has solved the issue.
 
Last edited:
  • Like
Reactions: DRE
So we have the latest stable.

Hello,

imagick 3.1.2 is installed on your server:
--
root@host [~]# pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
imagick 3.1.2 stable
root@host [~]# php -m | grep imag
imagick

I asked if he could install another version, he said:
Hello,

Please visit this site and advise which version you would like to attempt:
--

http://pecl.php.net/package/imagick
Which version should I ask him to install? The latest beta or the previous stable version?
 
Here are the server errors I'm getting.

ErrorException: Fatal Error: Maximum execution time of 30 seconds exceeded -library/XenForo/Image/ImageMagick/Pecl.php:197
Generated By: DRE, Today at 3:07 PM
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(36) "https://8th.us/account/avatar-upload"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["use_gravatar"] => string(1) "0"
["avatar_date"] => string(10) "1391584169"
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["_xfToken"] => string(8) "********"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(9) "json-text"
["_xfUploader"] => string(1) "1"
}
}
 
Sheesh

ErrorException: Fatal Error: Maximum execution time of 180 seconds exceeded -library/XenForo/Image/ImageMagick/Pecl.php:312
Generated By: DRE, Today at 7:22 PM
Stack Trace
#0 [internal function]: XenForo_Application::handleFatalError()
#1 {main}
Request State
array(3) {
["url"] => string(36) "https://8th.us/account/avatar-upload"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["use_gravatar"] => string(1) "0"
["avatar_date"] => string(1) "0"
["avatar_crop_x"] => string(1) "0"
["avatar_crop_y"] => string(1) "0"
["_xfToken"] => string(8) "********"
["_xfNoRedirect"] => string(1) "1"
["_xfResponseType"] => string(9) "json-text"
["_xfUploader"] => string(1) "1"
}
}
 
Does this happen with all images or just this one? If it's all, then that sounds like something is wrong with Imagick. (Note that I don't know where the image you're referring to is.)

However, animated images are effectively much bigger than their potential file size. To resize them and maintain animation, they have to be decompressed, each frame manipulated, and then recompressed. You could have a small image that actually has a lot of frames, which means a lot of work to resize.
 
I had this issue with several gifs, even some that were smaller yet some gifs that were small worked fine. I am okay with the limitations and time outs as long at least some can be uploaded. Please Disregard! :p
 
Top Bottom