Php errors in recent block

Current Version: 2.0.2
Released: 2013-10-27
Forum rules
Before creating a new support thread, please take a look at the board3 Portal FAQ and use the search!
Many questions have already been answered.

Topic author
Nor7on
Active Member
Active Member
Posts: 13
Joined: 30. August 2014 22:54
phpBB.com User: Nor7on

Php errors in recent block

Post 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]
User avatar

Kirk
Portal Professional
Portal Professional
Posts: 1742
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Php errors in recent block

Post 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

Topic author
Nor7on
Active Member
Active Member
Posts: 13
Joined: 30. August 2014 22:54
phpBB.com User: Nor7on

Re: Php errors in recent block

Post 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:

Topic author
Nor7on
Active Member
Active Member
Posts: 13
Joined: 30. August 2014 22:54
phpBB.com User: Nor7on

Re: Php errors in recent block

Post by Nor7on »

KirK can you help me? :?
User avatar

Kirk
Portal Professional
Portal Professional
Posts: 1742
Joined: 27. July 2010 18:02
phpBB.de User: Kirk

Re: Php errors in recent block

Post 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);

Return to “Board3 Portal 2.0.x - English Support”