Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 235: Undefined index: SEARCH_UNREAD
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 215: Undefined variable: phpbb_root_path
[phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 219: Undefined variable: phpbb_root_path
I am using a test board with nothing in it except a clean phpbb3 RC1 set of files with this mod installed, and I am not getting those errors.saaiberke wrote:Alan,
Strange but suddenly I get these notices in the header of my board pages when I click on the link to the unread postings:
And this one when I mark a topic as unread:Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 235: Undefined index: SEARCH_UNREAD
(These dissapear after 1 or 2 seconds)Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 215: Undefined variable: phpbb_root_path [phpBB Debug] PHP Notice: in file /includes/functions_view_or_mark_unread_posts.php on line 219: Undefined variable: phpbb_root_path
I installed a few other mods, but I uninstalled them. Then I uninstalled the whole view or mark unread post and reinstalled it from scratch.
Do you have any idea where to search for this undefined index and the phpbb_root_path errors pls?
Grtz,
Nic
Code: Select all
@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
Code: Select all
@define('PHPBB_INSTALLED', true);
@define('DEBUG', true);
// @define('DEBUG_EXTRA', true);
Even though it's just notices and not errors (and even though you don't see it unless you use the debug function) it's still strange to me that you ever got those notices (and I wasn't getting any notices in my regular phpo error log). I'll try using the debug feature tonight and see if I can replicate and see what's going on. Were you getting any other unrelated notices?saaiberke wrote:I rechanged it and now it works again. As it where only notices and no errors I think the problem is solved. I forgot to mention that the functions to search unread topic or to mark topics unread worked despite the notices.
Code: Select all
OPEN
includes/functions_view_or_mark_unread_posts.php
FIND
global $db, $user, $auth, $phpEx;
REPLACE WITH
global $db, $user, $auth, $phpbb_root_path, $phpEx;
FIND
$l_search_title = $user->lang['SEARCH_UNREAD'];
REPLACE WITH
$l_search_title = $user->lang['VIEW_UNREADS'];
Thanks for letting me know. I just uploaded a new version (version 0.0.3) that implements that change, and I updated the link in the first post in this topic to now point to the new version.saaiberke wrote:I tried it and it weems to work, no more notices.
Thanks. Good to hear it's working on another live board (I've only got a test phpbb3 board myself).henningl wrote:I'm using the mod on a live board with 50-100 users online any given time.. Works like a charm, except the searchpage title fixed with the changes a few posts up.
Code: Select all
## 2007-07-04 - Version 0.0.4
## deleted a RC1 bugfix change that has now been fixed in RC2
Code: Select all
// start mod view or mark unread posts
'MARK_POST_UNREAD' => 'Beitrag als ungelesen markieren',
'NO_UNREADS' => 'Keine ungelesenen Beiträge',
'POST_MARKED_UNREAD' => 'Beitrag wurde als ungelesen markiert',
'VIEW_UNREADS' => 'Ungelesene Beiträge',
// end mod view or mark unread posts