Problem with forums and words with appostrophies

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Problem with forums and words with appostrophies
fadius12
CZ Newbie
fadius12 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 13, 2004
0.00 posts per day
Posts: 16
Points: 1,292
   
I am running a fresh install of PHPNuke 7.5. With the PHPBB that is included, I have encountered strange problem. WHenever anyone creates a post in the forums or PM's someone, and the messahe has an appostrophy in it, example: I'd - I'm

I get a 1064 error. The error always begins with the ' and whatever follows. This is the error you will get:

Error in posting

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 'd rather not point it out.')' at line 1

INSERT INTO nuke_bbposts_text (post_id, post_subject, bbcode_uid, post_text) VALUES ('27', 'Test', '2ae237c01c', 'This is a tes of the problem we are having. I'd rather not point it out.')

Line : 283
File : /home/content/s/k/u/skunkwerks/html/includes/functions_post.php




Notice the error begins with the '. How do I correct this as it is causing all sorts of problems.



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
   
Attach the functions_post.php in a zip file.




_________________
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
#3   re: Problem with forums and words with appostrophies
fadius12
CZ Newbie
fadius12 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 13, 2004
0.00 posts per day
Posts: 16
Points: 1,292
   
Here is the file in question.



Attached Files
functions_post.zip (7.14 KB, Downloaded: 5232 Time(s))


Back to top Reply with quote
#4   
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
   
Give this one a shot...



Attached Files
fadius12.zip (7.2 KB, Downloaded: 5232 Time(s))



_________________
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
#5   re: Problem with forums and words with appostrophies
fadius12
CZ Newbie
fadius12 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 13, 2004
0.00 posts per day
Posts: 16
Points: 1,292
   
Still get the same problem. It seams to think that from the apostrophy on is code of some sort and errors out as it doesn't know what it is.



Back to top Reply with quote
#6   
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
   
What type of database are you using? What is the language of the site?




_________________
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
#7   re: Problem with forums and words with appostrophies
fadius12
CZ Newbie
fadius12 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 13, 2004
0.00 posts per day
Posts: 16
Points: 1,292
   
OK, it is a mysql db running version 4.0.23.

PHP is version 4.3.10

Site is using PHPNuke 7.5.



Back to top Reply with quote
#8   
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
   
Ok is there a language for the site? Im thinking maybe the charset.




_________________
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
#9   re: Problem with forums and words with appostrophies
fadius12
CZ Newbie
fadius12 has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Apr 13, 2004
0.00 posts per day
Posts: 16
Points: 1,292
   
English.

Is it possible that it is on my hosts side? Maybe a problem with the SQL on the host servers? I am going through godaddy as my host.



Back to top Reply with quote
#10   
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
   
No if you can't figure out just open the viewtopic.php and add a stripslashes() to the $message variable.




_________________
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