- You are here:
- Main › Forum › Bug Tracker
debugg error: Undefined variable: phpbb_root_path
4 posts
• Page 1 of 1
- Citromon
- Posts: 60
- Joined: Tue Apr 17, 2012 12:36 pm
- Location: Minsk, Belarus
Sat Mar 30, 2013 1:38 pm • via Web
Hi,
can you help to solve this problem?
If guest enteres on site, all is normal, but whrn he login, debugg shows this:
can you help to solve this problem?
If guest enteres on site, all is normal, but whrn he login, debugg shows this:
- Code: Select all
[ROOT]/includes/functions.php on line 4342: Undefined variable: phpbb_root_path
- IvanPF
- Administrator
- Posts: 2028
- Joined: Fri Jun 17, 2011 12:15 am
- Location: España (Spain)
Sat Mar 30, 2013 7:24 pm • via Android
My mods no change this line on /includes/functions.php but anyway i will try to help you.
i need that you put here the lines between 4340 and 4345 of the file includes/functions.php to see the error.
in normal phpbb forum this line is in the page_header function but in this funcion the variable phpbb_root_path is defined.
i need that you put here the lines between 4340 and 4345 of the file includes/functions.php to see the error.
in normal phpbb forum this line is in the page_header function but in this funcion the variable phpbb_root_path is defined.
- Citromon
- Posts: 60
- Joined: Tue Apr 17, 2012 12:36 pm
- Location: Minsk, Belarus
Sat Mar 30, 2013 9:35 pm • via Web
thanks for help!
here is whole functions.php:
http://www.datafilehost.com/download-63ef2e1f.html
code between 4231 and 4265 lines:
here is whole functions.php:
http://www.datafilehost.com/download-63ef2e1f.html
code between 4231 and 4265 lines:
- Code: Select all
// Need caps version of $item for language-strings
$item_caps = strtoupper($item);
if (sizeof($online_users['online_users']))
{
$sql = 'SELECT u.username, u.username_clean, u.user_id, u.user_type, u.user_allow_viewonline, u.user_colour, s.session_browser
FROM ' . USERS_TABLE . ' u JOIN ' . SESSIONS_TABLE . ' s
ON u.user_id = s.session_user_id
WHERE ' . $db->sql_in_set('u.user_id', $online_users['online_users']) . '
AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) . '
GROUP BY u.user_id
ORDER BY u.username_clean ASC';
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
// User is logged in and therefore not a guest
if ($row['user_id'] != ANONYMOUS)
{
$user_browser = '';
if ($row['user_type'] != USER_IGNORE)
{
if (stristr($row['session_browser'], 'Firefox')) $user_browser = 'firefox';
elseif (stristr($row['session_browser'], 'Chrome')) $user_browser = 'chrome';
elseif (stristr($row['session_browser'], 'Safari')) $user_browser = 'safari';
elseif (stristr($row['session_browser'], 'Opera Mini')) $user_browser = 'operamini';
elseif (stristr($row['session_browser'], 'Opera')) $user_browser = 'opera';
elseif (stristr($row['session_browser'], 'MSIE 6.0')) $user_browser = 'ie';
elseif (stristr($row['session_browser'], 'MSIE 7.0')) $user_browser = 'ie';
elseif (stristr($row['session_browser'], 'MSIE 8.0')) $user_browser = 'ie';
}
if (isset($online_users['hidden_users'][$row['user_id']]))
{
$row['username'] = '<em>' . $row['username'] . '</em>';
}
if (!isset($online_users['hidden_users'][$row['user_id']]) || $auth->acl_get('u_viewonline'))
{
$user_online_link = get_username_string(($row['user_type'] <> USER_IGNORE) ? 'full' : 'no_profile', $row['user_id'], $row['username'], $row['user_colour']) . ($user_browser ? (' <img src="' . $phpbb_root_path . 'images/' . $user_browser . '.gif" alt="(' . $user_browser . ')" />') : '');
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
}
}
}
$db->sql_freeresult($result);
- Citromon
- Posts: 60
- Joined: Tue Apr 17, 2012 12:36 pm
- Location: Minsk, Belarus
Sat Mar 30, 2013 10:10 pm • via Web
I fix it:
And now it works normal, thanks for attention!
- Code: Select all
global $config, $db, $user, $auth;
- Code: Select all
global $config, $db, $user, $auth, $phpbb_root_path;
And now it works normal, thanks for attention!
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests
- External Links
- phpBB Official
- phpBB Official (Spanish)
- Raul Arroyo Monzo
- PasionReef
- About CaniDev
- Terms of use
- Privacy Policy
- About Us
- Contact
- © 2011-2024 CaniDev