Page 1 of 1

Php errors in recent block

Posted: 28. September 2014 17:43
by Nor7on
Your Portal Version: 2.0.2
Your phpBB Type: Standard phpBB3
MODs installed: No
Your knowledge: Beginner

What have you done before the problem was there?


What have you already tryed to solve the problem?


Description and Message
I get this message in debug mode.

[phpBB Debug] PHP Notice: in file [ROOT]/portal/modules/portal_recent.php on line 70: Undefined index: board3_exclude_forums_11

In line 70:

Code: Select all

			$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_exclude_forums_' . $module_id]) ? true : false);
How i can fix it?[/i]

Re: Php errors in recent block

Posted: 28. September 2014 19:15
by Kirk
Hi
Open the root/portal/moduels/portal_recent.php
Find:

Code: Select all

board3_exclude_forums
Replace with:

Code: Select all

board3_recent_exclude_forums

Re: Php errors in recent block

Posted: 30. September 2014 16:25
by Nor7on
Hi!

I found this:
$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_exclude_forums_' . $module_id]) ? true : false);

So i have change to
$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_recent_exclude_forums_' . $module_id]) ? true : false);

or
$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_recent_exclude_forums' . $module_id]) ? true : false);

Thanks :oops:

Re: Php errors in recent block

Posted: 1. October 2014 21:27
by Nor7on
KirK can you help me? :?

Re: Php errors in recent block

Posted: 2. October 2014 09:52
by Kirk
Replace with:

Code: Select all

$sql_where = ' AND ' . $db->sql_in_set('forum_id', array_map('intval', $exclude_forums), ($config['board3_recent_exclude_forums_' . $module_id]) ? true : false);