На папку backend/web/upload права 777 поставлены - не помогло.
На хостинге при обращении к Elfinder ошибка:
Код: Выделить всё
Некорректный ответ сервера.
Возникла ошибка на стороне сервера.
HTTP error 502
app.log
Код: Выделить всё
2019-07-14 15:12:30 [94.25.238.68][2995][-][warning][yii\debug\Module::checkAcc$
in /home/virtwww/w_dev-umc-str_0cf2b457/http/vendor/mihaildev/yii2-elfinder$
in /home/virtwww/w_dev-umc-str_0cf2b457/http/vendor/mihaildev/yii2-elfinder$
2019-07-14 15:12:30 [94.25.238.68][2995][-][warning][yii\debug\Module::checkAcc$
2019-07-14 15:12:30 [94.25.238.68][2995][-][info][application] $_GET = [
'filter' => 'image'
'CKEditor' => 'materials-content'
'CKEditorFuncNum' => '1'
'langCode' => 'ru'
]
$_POST = []
$_FILES = []
$_COOKIE = [
'_identity' => 'cdf14508714539d9c7f0bedd4348ccf7b1e9137fbea6e3544c60f34071e$
'_csrf-frontend' => '1e37a32b5c01a1266fd92e995aeab36fca85522f5ef65c5fd2c7b2$
'_csrf-backend' => '1aa50d760c371af321fd166f227fa29ce22c639d6b1947362a380f6$
Код: Выделить всё
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\PathController',
'access' => ['@'],
'root' => [
// 'baseUrl'=>'/web',
'path' => 'upload/global',
'name' => 'Global'
],
'watermark' => [
'source' => __DIR__.'/logo.png', // Path to Water mark image
'marginRight' => 5, // Margin right pixel
'marginBottom' => 5, // Margin bottom pixel
'quality' => 95, // JPEG image save quality
'transparency' => 70, // Water mark image transparency ( other than PNG )
'targetType' => IMG_GIF|IMG_JPG|IMG_PNG|IMG_WBMP, // Target image formats ( bit-field )
'targetMinPixel' => 200 // Target image minimum pixel size
]
]
],