Here's the error message I always see on my log:

	Type:	php
	Date:	Thursday, May 3, 2012 - 19:42
	User:	Anonymous (not verified)
	Location:	http: // www. example.com/forums/programming/visual-basic-net?page=5&order=totalcount&sort=desc&form_build_id=form-z821ZeXHa6hwx-RRdymBpNE4Z5gCK3mqbiBcbdmA1Q4&form_id=advanced_forum_forum_topic_list_sort_form

	Message:	Notice: Trying to get property of non-object in _template_preprocess_advanced_forum_topic_list_view() (line 82 of /home/scode/public_html/sites/all/modules/advanced_forum/includes/template_preprocess_advanced_forum_topic_list_view.inc).
	Severity:	notice
	Hostname:	66.249.73.205
	Operations:	

I have advanced forum module installed.

Comments

troky’s picture

Status: Active » Postponed (maintainer needs more info)

Please contact me privately if you want to help me debug this since I can't reproduce above error.

jaypabs’s picture

I noticed that when I navigate to other page like
http://www.sourcecodester.com/forums/programming/visual-basic-net?page=5
and click again on page 1 but the link is only
http://www.sourcecodester.com/forums/programming/visual-basic-net

without ?page=1 then this error occur.

So I think the problem is when you click Page 1 out of Page N that error occurs because no argument "page=N" is present.

Correct me if I'm wrong.

jaypabs’s picture

I can verify that this bugs occur when you navigate to another page and click Page 1 again.

Type php
Date Thursday, May 3, 2012 - 22:33
User admin
Location http://www.sourcecodester.com/forums/programming/visual-basic-net
Referrer http://www.sourcecodester.com/forums/programming/visual-basic-net?page=6
Message Notice: Trying to get property of non-object in _template_preprocess_advanced_forum_topic_list_view() (line 82 of /home/scode/public_html/sites/all/modules/advanced_forum/includes/template_preprocess_advanced_forum_topic_list_view.inc).
Severity notice
Hostname
Operations

I navigate to page 7 (actual value of page is 6 as shown above) and click again on page 1 (no parameter as page=1) and this error appears on my log.

jaypabs’s picture

Problem fix with the help of troky.

I just saved the node again that has the problem. He said: "node is orphaned... not associated to any forum tid..."

I don't know how this node disassociated but at least the problem is now solved.

I hope somebody will benefit from this solution just in case you encounter the same problem.

Thanks again troky...

troky’s picture

Status: Postponed (maintainer needs more info) » Fixed

Above notice occurs with orphaned shadow topic shown on topic list. I don't how topic got orphaned (no tid associated with it) but patch to suppress error notice is committed to 7.x-2.x-dev .

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.