Hello,
I'm having a few issues while using imagemagick as the default image processor, whenever i try to upload an avatar i get the following error:
If i switch back the default image processor to GD it works perfectly leading me to belive that this is not a problem with directory permissions (Both directories have 0777 permissions).
I belive that this issue is not related to xenforo itself but with my custom php-fpm container, here's the build script that i'm using:
I'm thankful for any tips on what i could be doing wrong.
I'm having a few issues while using imagemagick as the default image processor, whenever i try to upload an avatar i get the following error:
Code:
RuntimeException: Failed to save image to temporary file; image may be corrupt or check internal_data/data permissions in src/XF/Service/User/Avatar.php at line 263
XF\Service\User\Avatar->updateAvatar() in src/XF/Pub/Controller/Account.php at line 466
XF\Pub\Controller\Account->actionAvatar() in src/XF/Mvc/Dispatcher.php at line 321
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
XF\App->run() in src/XF.php at line 390
XF::runApp() in index.php at line 20
If i switch back the default image processor to GD it works perfectly leading me to belive that this is not a problem with directory permissions (Both directories have 0777 permissions).
I belive that this issue is not related to xenforo itself but with my custom php-fpm container, here's the build script that i'm using:
Code:
FROM php:7-fpm-alpine
RUN apk update \
&& apk add --no-cache \
autoconf \
coreutils \
freetype-dev \
libjpeg-turbo-dev \
libltdl \
gmp-dev \
imagemagick-dev \
libmcrypt-dev \
libpng-dev \
&& docker-php-ext-install mysqli \
&& docker-php-ext-configure gd --with-jpeg-dir=/usr/include/ \
&& pecl install apcu imagick \
&& docker-php-ext-enable apcu imagick \
&& docker-php-ext-install gd \
&& docker-php-ext-install gmp \
&& rm -rf /var/cache/apk/*
I'm thankful for any tips on what i could be doing wrong.