Unknown error on production (number 110)
Opened this issue · 3 comments
I'm using PHP 7.4, SYmfony 5.1, latest CKFinder & CKEditor 4.
It does work correctly when APP_ENV=dev, but it doesn't when APP_ENV=prod so I can't use it on production.
When I open the CKFinder popup, it returns a dialog with the message "Unknown error" and the error number 110 on the console.
Upload folder permissions are correctly set (it does work when environment is set as dev).
Can anyone help me out?
This generic message is from your URI .../ckfinder/connector?command=Init ? First check :)
Have you clean your prod cache ? your asset are deployed correctly ?
Can you dump() your CKFinder object for us, step by step ? Second check...
@diegoiglesias are you trying to upload jpg
/jpeg
files? I'm facing the same issue, and png
files work fine. I guess this might be related to a missing extension in image library.
Actually, my setup was lacking GD JPEG support, which I added following the documentation of PHP Docker image:
FROM php:7.4-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd