Подскажите пожалуйста где копать?
Ставлю user blog на чистый форум 3.0.5 - всё работает как положено,
но при установке на уже рабочий, на котором порядка 40 модов, при входе по ссылке "Мой блог" выдаёт следующее:
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2158: strtr() [function.strtr]: The second argument is not an array.
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3973: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3273)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3975: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3273)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3976: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3273)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3977: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3273)
Вот код из этих файлов:
/includes/session.php
Код: Выделить всё
2152 if ($day !== false)
2153 {
2154 return str_replace('||', $this->lang['datetime'][$day], strtr(@gmdate($date_cache[$format]['format_short'], $gmepoch + $zone_offset), $date_cache[$format]['lang']));
2155 }
2156 }
2157
2158 return strtr(@gmdate($date_cache[$format]['format_long'], $gmepoch + $zone_offset), $date_cache[$format]['lang']);
2159 }
/includes/functions.php
Код: Выделить всё
3269 // remove complete path to installation, with the risk of changing backslashes meant to be there
3270 $errfile = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $errfile);
3271 $msg_text = str_replace(array(phpbb_realpath($phpbb_root_path), '\\'), array('', '/'), $msg_text);
3272
3273 echo '<b>[phpBB Debug] PHP Notice</b>: in file <b>' . $errfile . '</b> on line <b>' . $errline . '</b>: <b>' . $msg_text . '</b><br />' . "\n";
3274 // echo '<br /><br />BACKTRACE<br />' . get_backtrace() . '<br />' . "\n";
3275 }
3276
3277 return;
/includes/functions.php
Код: Выделить всё
3968 // Start User Blog Mod ----------------------
3969 include($phpbb_root_path . 'blog/header.' . $phpEx);
3970 // End User Blog Mod ------------------------
3971
3972 // application/xhtml+xml not used because of IE
3973 header('Content-type: text/html; charset=UTF-8');
3974
3975 header('Cache-Control: private, no-cache="set-cookie"');
3976 header('Expires: 0');
3977 header('Pragma: no-cache');
3978
3979 return;
3980}
А выглядит это дело так:
Хотя по ссылке "Блоги" всё в порядке. :roll:
Пробовал ставить два раза - результат одинаков.
Может кто подскажет что не так?
Заранее СПАСИБО за помощь!