Replace the kill_session function starting around line 649 with the following:sponkey wrote:Thanks for the solution. I changed the line of code suggested, but I'm still getting the same message attached to my RSS feeds. Any further suggestions?
Code: Select all
function kill_session ($new_session=true)
{
// Kill the sessions we consumed. We don't want to use session_kill() because it updates user_lastvisit,
// which we don't necessarily want to do since the user may want to visit the board later and see
// messages in the feed as unread.
global $db, $user, $config, $phpEx, $phpbb_root_path;
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
AND session_user_id = " . (int) $user->data['session_id'];
$db->sql_query($sql);
// Allow connecting logout with external auth method logout
$method = basename(trim($config['auth_method']));
$method = 'logout_' . $method;
if (!(function_exists($method)))
{
include($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
}
$method($user->data, $new_session);
return;
}
Code: Select all
<b>[phpBB Debug] PHP Notice</b>: in file <b>/smartfeed.php</b> on line <b>667</b>: <b>include(./includes/auth/auth_logout_db.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory</b><br />
<b>[phpBB Debug] PHP Notice</b>: in file <b>/smartfeed.php</b> on line <b>667</b>: <b>include() [<a href='function.include'>function.include</a>]: Failed opening './includes/auth/auth_logout_db.php' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php')</b><br />
<br />
<b>Fatal error</b>: Call to undefined function logout_db() in <b>/home/.detour/iggsoft/forums.iggsoft.com/smartfeed.php</b> on line <b>669</b><br />
Code: Select all
function kill_session ($new_session=true)
{
// Kill the sessions we consumed. We don't want to use session_kill() because it updates user_lastvisit,
// which we don't necessarily want to do since the user may want to visit the board later and see
// messages in the feed as unread.
global $db, $user, $config, $phpEx, $phpbb_root_path;
$sql = 'DELETE FROM ' . SESSIONS_TABLE . "
WHERE session_id = '" . $db->sql_escape($user->session_id) . "'
AND session_user_id = " . (int) $user->data['session_id'];
$db->sql_query($sql);
// Allow connecting logout with external auth method logout
$method = basename(trim($config['auth_method']));
include_once($phpbb_root_path . 'includes/auth/auth_' . $method . '.' . $phpEx);
$method = 'logout_' . $method;
if (function_exists($method))
{
$method($user->data, $new_session);
}
return;
}
Code: Select all
Message: Syntax error
Line: 357
Char: 2
Code: 0
URI: http://www.psychonights.com/smartfeed_url.php
Code: Select all
[phpBB Debug] PHP Notice: in file /language/nl/help_faq.php on line 345: Undefined variable: phpbb_root_path
Code: Select all
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';