Open MattBred opened 5 years ago
thanks for reporting ... I'll work on this today.
@luizeof I just sent up the PR #146 addressing this issue, that was a problem that my team had also encountered.
@luizeof I hit this issue today. Also there is missing exif extension to process uploaded file. In the Dockerfile (mautic3 branch) there is wrong include directory, should be
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-png-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd \
&& docker-php-ext-install exif
Using
mautic/mautic:latest
When using the template builder, if I go to preview photos, I get a bunch of broken thumbnails. Navigating to the URL of the thumbnail image gives me this error
{"Error":"WideImage requires the GD extension, but it's apparently not loaded.","Code":"-1","Properties":{"Date Created":null,"Date Modified":null,"Height":null,"Width":null,"Size":null}}
After installing
libpng-dev
& php-gd, I still get the following error in the logs:[2019-11-08 03:56:21] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedFunctionException: "Attempted to call function "imagecreatefromjpeg" from the global namespace." at /var/www/html/app/bundles/CoreBundle/Assets/js/libraries/ckeditor/filemanager/connectors/php/inc/wideimage/lib/Mapper/JPEG.php line 15 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedFunctionException(code: 0): Attempted to call function \"imagecreatefromjpeg\" from the global namespace. at /var/www/html/app/bundles/CoreBundle/Assets/js/libraries/ckeditor/filemanager/connectors/php/inc/wideimage/lib/Mapper/JPEG.php:15)"} []