Код: Выделить всё
[phpBB Debug] PHP Notice: in file [ROOT]/viewonline.php on line 351: Undefined offset: 1
[phpBB Debug] PHP Notice: in file [ROOT]/viewonline.php on line 351: Undefined index:
[phpBB Debug] PHP Notice: in file [ROOT]/viewonline.php on line 351: Undefined index:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4848: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4850: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4851: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4852: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Код: Выделить всё
$topic_title = $user->lang['UNKNOWN'];
if (!empty($on_page) && isset($on_page[1])) {
$post_id = $topic_post_ids[$on_page[1]] ?? null;
if ($post_id !== null && isset($topic_titles[$post_id])) {
$topic_title = $topic_titles[$post_id];
}
}
$location = sprintf(
$user->lang['REPLYING_MESSAGE_TOPIC'],
$forum_data[$forum_id]['forum_name'],
$topic_title
);Я ей ответил, что я просто закомментирую нужную строку, а этот код вставлю выше неё. Она сказала - "это хорошее решение".
Потом я подумал немного, и просто в админке сбросил сессии. Всех разлогинило конечно. Ошибка исчезла.
Проверял потом в течение 2 суток - ошибка не повторилась.
Никакие коды, и от ИИ я не вставлял.
В файле functions я ничего не правил, наверно лет 6, минимум, или больше.

