Не загружаются аватары

Проблемы с установкой или работой phpBB 3.3.x? Получите помощь здесь!
Правила форума
Местная Конституция | Шаблон запроса | Документация (phpBB3) | Мини [FAQ] по phpBB 3.1.x/3.2.x | FAQ | Как задавать вопросы | Как устанавливать расширения

Ваш вопрос может быть удален без объяснения причин, если на него есть ответы по приведённым ссылкам (а вы рискуете получить предупреждение ;) ).
Аватара пользователя
romaamor
phpBB 3.0.7
Сообщения: 2419
Стаж: 13 лет 3 месяца
Откуда: Одесса
Благодарил (а): 636 раз
Поблагодарили: 168 раз

Не загружаются аватары

Сообщение romaamor »

Доброе время суток.
Некоторое время тому, появилась проблема что слитают аватарки которые пользователе установили себе через загрузку. Раньше можно было загрузить заново пока опять не слетит. Сейчас загрузка вообще не происходит.
Если открыть аватарку по ссылке к примеру -
https://pikniktv.info/download/file.php?avatar=47249_1752618739.jpg
То будет куча таких ошибок -

Код: Выделить всё

Deprecated: Return type of phpbb\config\config::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/config/config.php on line 42

Deprecated: Return type of phpbb\config\config::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/config/config.php on line 102

Deprecated: Return type of phpbb\request\deactivated_super_global::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 77

Deprecated: Return type of phpbb\request\deactivated_super_global::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 85

Deprecated: Return type of phpbb\request\deactivated_super_global::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 90

Deprecated: Return type of phpbb\request\deactivated_super_global::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 95

Deprecated: Return type of phpbb\request\deactivated_super_global::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 104

Deprecated: Return type of phpbb\request\deactivated_super_global::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/request/deactivated_super_global.php on line 112

Deprecated: Return type of phpbb\di\service_collection::offsetGet($index) should either be compatible with ArrayObject::offsetGet(mixed $key): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/di/service_collection.php on line 55

Deprecated: Return type of phpbb\di\service_collection::getIterator() should either be compatible with ArrayObject::getIterator(): Iterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/di/service_collection.php on line 47

Deprecated: Return type of phpbb\di\service_collection_iterator::current() should either be compatible with ArrayIterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/di/service_collection_iterator.php on line 42

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/vendor/symfony/http-foundation/ParameterBag.php on line 220

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/vendor/symfony/http-foundation/ParameterBag.php on line 230

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/vendor/symfony/http-foundation/HeaderBag.php on line 288

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/vendor/symfony/http-foundation/HeaderBag.php on line 298

Warning: Cannot modify header information - headers already sent by (output started at /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/di/service_collection_iterator.php:16) in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/includes/functions_download.php on line 452

Warning: Cannot modify header information - headers already sent by (output started at /var/www/pikniktv_inf_usr/data/www/pikniktv.info/phpbb/di/service_collection_iterator.php:16) in /var/www/pikniktv_inf_usr/data/www/pikniktv.info/includes/functions_download.php on line 96
Как исправаить ?
Аватара пользователя
rxu
phpBB Guru
phpBB Guru
Сообщения: 17009
Стаж: 19 лет 2 месяца
Откуда: Красноярск
Благодарил (а): 560 раз
Поблагодарили: 1717 раз

Re: Не загружаются аватары

Сообщение rxu »

Ошибки уровня Deprecated вообще не должны выдаваться в phpBB. Что-то где-то накручено в коде или в расширениях.
Например, используется error_reporting(E_ALL) вместо error_reporting(E_ALL & ~E_NOTICE);. Или ini_set('display_errors', 1) вместо ini_set('display_errors', 0).
Изображение
Аватара пользователя
romaamor
phpBB 3.0.7
Сообщения: 2419
Стаж: 13 лет 3 месяца
Откуда: Одесса
Благодарил (а): 636 раз
Поблагодарили: 168 раз

Re: Не загружаются аватары

Сообщение romaamor »

rxu писал(а): Сегодня 4:57 Ошибки уровня Deprecated вообще не должны выдаваться в phpBB. Что-то где-то накручено в коде или в расширениях.
Например, используется error_reporting(E_ALL) вместо error_reporting(E_ALL & ~E_NOTICE);. Или ini_set('display_errors', 1) вместо ini_set('display_errors', 0).
Ага. В config.php было происанно -
@ini_set('display_errors', 1);
@error_reporting(E_ALL);


Но это проблему не решает. Если сервер переключить в режим PHP-FPM то всё работает. Аватарки загружаются. А если переключить в FastCGI то нет.

Вернуться в «Поддержка phpBB 3.3.x»