PHP-Nuke Forums problem!!! "DEBUG MODE"

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   PHP-Nuke Forums problem!!! "DEBUG MODE"
Thugster
CZ Newbie
Thugster has been a member for over 17 year's 17 Year Member
Age: 40
Gender: Male
Website:
Status: Offline
Joined: Feb 21, 2007
0.00 posts per day
Posts: 1
Points: 0
   
Hi i have a problem with my phpnuke forums

Im using phpnuke Currently running version: 7.6.b.4v2

when i enter the forums when im not logged in i get to view all the sections
and subjects bout the posts. But when i click on a post it will give this error:

"Error in getting thread kicker data

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

SELECT user_id, kicker FROM nuke_bbthread_kicker WHERE topic_id=7 AND user_id=

Line : 234
File : viewtopic.php"


but when i login i can check all the threads posted, so this means i need to force users to register @ the forum to read the posts of users.


Does any one knows a thing to solve this error??



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,430
   
The sql error is because there is no user id. Try changing the function to look for Anonymous or user_id 1.




_________________
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