Jump to content

Где у этого парня кнопка, шеф?


Recommended Posts

Подгружаю новые изорражения в галерею, либо пытаюсь редактировать старые изображения. Не пропускает изображения более 4000 пикселей (максимальный размер по ширине, по высоте не проверял). С любым размером (выставил в настройках пхп очень большие лимиты, гораздо больше подгружаемых файлов с картинками). Такое ощущение, что где-то в js или в php созданы лимиты. При попытке подгрузить изображения 5184х3456 пикселей с размером 2.2 МБ выдает ошибку загрузки. Куда копать? Где у этого парня кнопка?

Замечено после обновления с 4.3.6 на 4.4.7. До этого большие изображения подгружались и есть в галерее. Теперь не могу даже поменять для них заголовок: при сохранении выдает ошибку 500. Еще сервер менял, может где лимиты не докрутил, нгинкс, апач, пхп?

PHP    7.1.33
post_max_size    100M
upload_max_filesize    1024M
Используется mecach

123123123123123.jpg

Тестовая картинка

aaaaaa12111111.zip

Edited by Zero108
Link to post
Share on other sites

Нормально подгрузилась картинка 3000x2000 пикселей, 1.04 MB.
Та, которая тестовая выше (4000 пикселей), она в загрузчик подгружается без ошибки, но при сохранении данных выдается ошибка 500.
Та, которая более 5000 пикселей, не может подгрузиться в загрузчик.
Права на папку uploads 777 и подпапки. Владелец всех папок - пользователь.

Link to post
Share on other sites

В логах апача однотипные ошибки (путь от корня изменен) 

2019/11/12 22:28:44 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2352-img_5439jpg/ HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/album/51-samara-russia-2017/"
2019/11/12 22:28:44 [crit] 23587#23587: *59 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 217.182.175.162, server: a108.net, request: "HEAD /blogs/entry/29258-video-what-does-it-take-to-love-god-swami-mukundananda-000731/ HTTP/1.1", host: "www.site.com"
2019/11/12 22:28:44 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/uploads/javascript_gallery/front_front_view.js.521bc7de5cea509f9b2e3fb6a926e8e2.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /uploads/javascript_gallery/front_front_view.js.521bc7de5cea509f9b2e3fb6a926e8e2.js?v=026d4e282a HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:44 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/uploads/javascript_gallery/front_front_view.js.521bc7de5cea509f9b2e3fb6a926e8e2.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /uploads/javascript_gallery/front_front_view.js.521bc7de5cea509f9b2e3fb6a926e8e2.js?v=026d4e282a HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:44 [crit] 23592#23592: *57 openat() "/var/www/user/data/www/www.site.com/uploads/javascript_global/root_map.js.2e623bc47cf7fff85e3cfb2ae1cd1d13.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /uploads/javascript_global/root_map.js.2e623bc47cf7fff85e3cfb2ae1cd1d13.js?v=026d4e282a HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:44 [crit] 23592#23592: *57 openat() "/var/www/user/data/www/www.site.com/uploads/javascript_global/root_map.js.2e623bc47cf7fff85e3cfb2ae1cd1d13.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /uploads/javascript_global/root_map.js.2e623bc47cf7fff85e3cfb2ae1cd1d13.js?v=026d4e282a HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:45 [crit] 23592#23592: *57 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2352-img_5439jpg/?lightbox=1&csrfKey=22c4de35f7457885138b8370566140ba HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:45 [crit] 23592#23592: *57 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2351-img_5435jpg/?browse=1&lightbox=1&preload=1&csrfKey=22c4de35f7457885138b8370566140ba HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:45 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2323-on-the-strelnaya-mountain/?browse=1&lightbox=1&preload=1&csrfKey=22c4de35f7457885138b8370566140ba HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:47 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/sw.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /sw.js?truepush157298572 HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/sw.js?truepush157298572"
2019/11/12 22:28:47 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/sw.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /sw.js?truepush157298572 HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/sw.js?truepush157298572"
2019/11/12 22:28:48 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2352-img_5439jpg/?do=download HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:28:49 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/sw.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /sw.js?truepush157298572 HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/sw.js?truepush157298572"
2019/11/12 22:28:49 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/sw.js" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /sw.js?truepush157298572 HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/sw.js?truepush157298572"
2019/11/12 22:28:53 [error] 23589#23589: *105 access forbidden by rule, client: 54.36.150.83, server: a108.net, request: "GET /tags/downloads/Govinda+Dasa/ HTTP/1.1", host: "www.site.com"
2019/11/12 22:28:54 [error] 23589#23589: *109 access forbidden by rule, client: 54.36.150.50, server: a108.net, request: "GET /listen/play/4864-shrila_bhakti_vedanta_narayana_swami_-_lecture_-_1992-06-29_-_hindi/ HTTP/1.1", host: "www.site.com"
2019/11/12 22:28:57 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2352-img_5439jpg/?do=edit&csrfKey=22c4de35f7457885138b8370566140ba HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:29:00 [crit] 23588#23588: *56 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "GET /gallery/image/2352-img_5439jpg/?do=edit&postKey=&deleteFile=0&csrfKey=22c4de35f7457885138b8370566140ba HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"
2019/11/12 22:29:01 [crit] 23592#23592: *57 openat() "/var/www/user/data/www/www.site.com/does_not_exists" failed (40: Too many levels of symbolic links), client: 192.168.1.51, server: a108.net, request: "POST /gallery/image/2352-img_5439jpg/?do=edit HTTP/1.1", host: "www.site.com", referrer: "https://www.site.com/gallery/image/2352-img_5439jpg/"

 

Edited by Zero108
Link to post
Share on other sites
1 час назад, Zero108 сказал:

В логах апача

Надо в .htaccess добавить (переопределить) команды для лога ошибок PHP:

php_flag log_errors on
php_value error_log /var/www/user/data/www/PHP_errors.log

Причины ошибки 500 будут в этом логе
 

Link to post
Share on other sites
(40: Too many levels of symbolic links)

Решается удалением строки в nginx.conf, начинающейся с disable_symlinks if_not_owner:

disable_symlinks if_not_owner from=$root_path;

Ошибка возникает у тех, у кого панель ISP Manager на сервере.

После удаления, в терминале нужно перезапустить nginx: service nginx restart

Пока с основной проблемой не разобрался.

Метод 
php_flag log_errors on
php_value error_log /var/www/user/data/www/PHP_errors.log
Не дает результата. Данные в файл не пишутся.

Edited by Zero108
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...