Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 07:47:17 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155551 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Error with forum module  (Read 227 times)
bschaich

Offline Offline

Posts: 34


« on: August 15, 2011, 05:20:35 PM »

Hello,

I have the forum module active and the page always  comes up with this error:

Notice: Undefined index: mod_forum_search in **********/www/wb/modules/forum/include_searchform.php on line 29

Same thing happens with the news module:

Notice: Undefined index: HTTP_SERVER_VARS in *********/www/wb/modules/event/view.php on line 338


Looks to me like that has to do with the search activated. Anybody got an idea how to solve this?

REgards,
Benny
« Last Edit: August 15, 2011, 05:25:26 PM by bschaich » Logged
bschaich

Offline Offline

Posts: 34


« Reply #1 on: September 12, 2011, 04:16:26 PM »

Found the error myself and as it's only available in German I'll put the solution in here in English also:

change code in line 28 of include_searchform. php to:

Code:
echo '<label for="mod_forum_search">Suchen : </label>'.
'<input type="text" id="mod_forum_search" name="mod_forum_search" value="';
if (isset($_REQUEST['mod_forum_search'])) echo htmlentities( htmlspecialchars( stripslashes($_REQUEST['mod_forum_search'])));
echo '" />';

And as a newbie I forgot to check the modules thread first...
The German one is here: http://www.websitebaker2.org/forum/index.php/topic,15071.0.html
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!