Code: Select all
[phpBB Debug] PHP Notice: in file smartfeed.php on line 705: include(./includes/auth/auth_logout_db.php) function.include: failed to open stream: No such file or directory
Code: Select all
<?php
/**
*
* @package phpBB3
* @version $Id: smartfeed.php, v 2.2.17 Production 2009/06/10 [email protected] Exp $
* @copyright (c) Mark D. Hamill ([email protected], http://phpbbservices.com)
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
*
*/
Code: Select all
include($phpbb_root_path . 'includes/auth/auth_' . basename(trim($config['auth_method'])) . '.' . $phpEx);
I tried to create a feed, clicked "GENERATE", then "TEST", and I got the error. I hope that is will help!MarkDHamill wrote:Can you print out the code around the error?
Dan:MarkDHamill wrote:Please run it in the browser, then do a view source and paste the lines near where the error is occurring.
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev ([email protected])" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>******00phpbbchg******00phpbbchg******00phpbbchg******</title>
<description></description>
<link>http://localhost/00phpbbchg/board2/smartfeed.php?u=2&e=Z-3Jy7_ZE2pLEsSQnpVHo_LCDsAlWMMDACF9XxxhkxWDlWDsGXax4g..&lastvisit=1&limit=LF&count_limit=500&sort_by=user&feed_type=RSS2.0&feed_style=HTML</link>
<lastBuildDate>Sat, 26 Dec 2009 17:38:43 GMT</lastBuildDate>
<generator>FeedCreator 1.8.0-dev ([email protected])</generator>
<atom:link href="http://localhost/00phpbbchg/board2/smartfeed.php?u=2&e=Z-3Jy7_ZE2pLEsSQnpVHo_LCDsAlWMMDACF9XxxhkxWDlWDsGXax4g..&lastvisit=1&limit=LF&count_limit=500&sort_by=user&feed_type=RSS2.0&feed_style=HTML" rel="self" type="application/rss+xml" />
<image>
<url>http://localhost/00phpbbchg/board2/styles/prosilver/imageset/site_logo.gif</url>
<title>******00phpbbchg******00phpbbchg******00phpbbchg******</title>
<link>http://localhost/00phpbbchg/board2/smartfeed.php?u=2&e=Z-3Jy7_ZE2pLEsSQnpVHo_LCDsAlWMMDACF9XxxhkxWDlWDsGXax4g..&lastvisit=1&limit=LF&count_limit=500&sort_by=user&feed_type=RSS2.0&feed_style=HTML</link>
</image>
<language>en-GB</language>
<pubDate>Sat, 26 Dec 2009 22:38:43 GMT</pubDate>
<ttl>60</ttl>
</channel>
</rss>
<br />
<b>Fatal error</b>: Cannot redeclare login_db() (previously declared in C:\MyData\My Web Sites\00phpbbchg\board2\includes\auth\auth_db.php:27) in <b>C:\MyData\My Web Sites\00phpbbchg\board2\includes\auth\auth_db.php</b> on line <b>196</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($this->data, $new_session);
}
return;
}
Thanks for the reply. This got me thinking, and a question comes up. If the Admin adds a required forum after the person gets their Smartfeeed URL generated, what happens then? Do they still get the required forums, or does it just have to wait until they generate it the next time? If they have to wait, it might be a good idea on somehow to check to make sure they are getting the required forums, and if not either send it automatically, or invalidate the feed.MarkDHamill wrote:This is not usually a problem. It would only matter if I change the logic for encrypting keys.