MyBB Community Forums

Full Version: error after upgrading to 1.2.14!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Fatal error: Call to a member function on a non-object in /homepages/18/d241666310/htdocs/US/inc/functions_forumlist.php on line 186

please how can i resolve this.



// Format lastpost date and time
					$lastpost_date = my_date($mybb->settings['dateformat'], $lastpost_data['lastpost']);
					$lastpost_time = my_date($mybb->settings['timeformat'], $lastpost_data['lastpost']);

					// Set up the last poster, last post thread id, last post subject and format appropriately
					$lastpost_profilelink = build_profile_link($lastpost_data['lastposter'], $lastpost_data['lastposteruid']);
					$lastposttid = $lastpost_data['lastposttid'];
					$lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);
					if(my_strlen($lastpost_subject) > 25)
					{
						$lastpost_subject = my_substr($lastpost_subject, 0, 25) . "...";
					}
					$lastpost_subject = htmlspecialchars_uni($lastpost_subject);
					$full_lastpost_subject = htmlspecialchars_uni($full_lastpost_subject);

					// Call lastpost template
					eval("\$lastpost = \"".$templates->get("forumbit_depth$depth$forumcat"."_lastpost")."\";");

forgot to give a link:
http://unreal-station.com/forum.php
Ok, found some stuff you might be able to understand, because I don't. But I can find things, so here hope it helps:

http://www.stadtaus.com/forum/t-1831.html

http://bytes.com/forum/thread1885.html

http://gallery.menalto.com/node/740

http://www.codingforums.com/showthread.php?t=71335
everything works except the forums page. I cant find any "index" text to change to "forum" anywhere in the php file.
ok i delete this line:
		$lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);

now it works.

is this important?
That line's not incredibly important. All it does is filter out bad words that appear in the last post's subject.
(2008-07-20, 04:42 PM)incadudeF Wrote: [ -> ]
		//$lastpost_subject = $full_lastpost_subject = $parser->parse_badwords($lastpost_data['lastpostsubject']);

now it works.

is this important?

I´ve found this solution too

could this be solved by another way?? Maybe running a query in phpMyAdmin?