Spis treści |
Objawy
W Panelu administratora i Panelu moderatora wyświetla się informacja:
- [phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2407: array_fill() [function.array-fill]: Number of elements must be positive
- [phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2407: array_merge() [function.array-merge]: Argument #2 is not an array
- [phpBB Debug] PHP Notice: in file /includes/functions_admin.php on line 2410: vsprintf() [function.vsprintf]: Too few arguments
- [phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153)
- [phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153)
- [phpBB Debug] PHP Notice: in file /adm/index.php on line 155: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153)
- [phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3153)
Powody
Bug w phpBB 3.0.3.
Rozwiązanie
Bug ten został naprawiony w phpBB 3.0.4, zalecamy aktualizację.
Alternatywne rozwiązanie
Otwórz plik includes/functions_admin.php
Znajdź:
if (substr_count($log[$i]['action'], '%') - sizeof($log_data_ary))
Zamień na:
if ((substr_count($log[$i]['action'], '%') - sizeof($log_data_ary)) > 0)
Zapisz plik i wyślij go na serwer.
Nie zapomnij o...
Jeżeli po instalacji modyfikacji pojawił się błąd zawierający słowa "Cannot modify header information", to powinieneś zastosować się do instrukcji zawartych w tym artykule: Błąd:Cannot modify header information
Jeżeli po instalacji modyfikacji pojawił się błąd zawierający słowa "Cannot modify header information", to powinieneś zastosować się do instrukcji zawartych w tym artykule: Błąd:Cannot modify header information