Error message in PNphpBB2 forum, need help please... thanks

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Error message in PNphpBB2 forum, need help please... thanks
riFFiez
CZ Newbie
riFFiez has been a member for over 19 year's 19 Year Member
Gender: Male
Status: Offline
Joined: Mar 14, 2005
0.00 posts per day
Posts: 1
Points: 44
   
Hi, i have problems with my PNphpBB2 forum, i uploaded to postnuke, each time i pressed a topic, it has this error: "Fatal error: Call to a member function on a non-object in /home/catchers/public_html/catchers/modules/PNphpBB2/viewtopic.php on line 153"

i never modify my code, but i give you the lines in the viewtopic.php file:

148 $sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
149 FROM " . TOPICS_TABLE . " t, " . FORUMS_TABLE . " f" . $join_sql_table . "
150 WHERE $join_sql
151 AND f.forum_id = t.forum_id
152 $order_sql";
153 if ( !($result = $db->sql_query($sql)) )
154 {
155 message_die(GENERAL_ERROR, "Could not obtain topic information", '', __LINE__, __FILE__, $sql);
156 }
157
158 if ( !($forum_topic_data = $db->sql_fetchrow($result)) )
159 {
160 message_die(GENERAL_MESSAGE, 'Topic_post_not_exist');
161 }
162
163 $forum_id = intval($forum_topic_data['forum_id']);
164

can anyone please help me..??
i really appreciate any kind of help.

Thanks



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
Am not real familiar with PN. But that error usually means that the $sql is not defined or the $db is not defined.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum