Closed (fixed)
Project:
Advanced Forum
Version:
7.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 May 2012 at 12:46 UTC
Updated:
17 May 2012 at 16:20 UTC
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
Comment #1
troky commentedPlease contact me privately if you want to help me debug this since I can't reproduce above error.
Comment #2
jaypabs commentedI 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.
Comment #3
jaypabs commentedI 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.
Comment #4
jaypabs commentedProblem 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...
Comment #5
troky commentedAbove 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 .