PDA

View Full Version : Search.php Problem :[


applyimage
08-20-2007, 11:11 AM
:(

When clicking 'Find all posts by this user' in the members profile, this error is returned.

Fatal error: Call to a member function on a non-object in /home/applyimg/public_html/forum/search.php on line 2621

Line 2621:
$post['pagetext'] = $hhr->parse_bbcode($post['pagetext'], $post['forumid'], $post['threadid'], $post['postid'], $post['userid']);
I personally can't spot a problem in the line, but I'm a n00b to vbulletin and PHP, does anybody see anyhting wrong? all help appreciated.

Eikinskjaldi
08-20-2007, 11:58 AM
wtf is $hhr? doesn't look vb to me. Looks like the code has been edited.

Marco van Herwaarden
08-20-2007, 12:02 PM
Which vB version are you using?

Also did you do any code edites to search.php, as $hhr does not look like a variable used in standard vBulletin code. Try re-uploading the original files.

applyimage
08-20-2007, 12:21 PM
Version 3.6.8.

I checked the original code and that line doesn't excist atall :eek: I promise I wont have edited codes unless required to by a mod ive installed. Should I try removing that part of the code?

Dismounted
08-20-2007, 12:27 PM
Overwrite all your current files with a freshly downloaded copy of vBulletin from the members' area.

applyimage
08-20-2007, 12:32 PM
I have just overwritten the search.php with the original file and it's fixed the problem, everything else seems to be working fine! atleast upto now I see no problems. Seriosly NO IDEA how that part of code was entered, I don't ever remembering editing the search.php.

Thanks guys for the fantastic help!!!!