You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 69 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Forum Error - Please Help [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
otto
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2003
Posts: 8


PostPosted: Tue Jan 13, 2004 7:53 pm Reply with quoteBack to top

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 'sdf')' at line 1

INSERT INTO nuke_bbposts_text (post_id, post_subject, bbcode_uid, post_text) VALUES (412, '', '83c619bc29', 'asdf 'sdf')

Line : 321
File : c:\domains\sanlan.org\wwwroot\includes\functions_post.php


Well basicly it happens when someone puts an apostrophy in the post.

'asdf 'sdf'

Any suggestions?


Last edited by otto on Wed Jan 14, 2004 7:46 pm; edited 1 time in total
Find all posts by ottoView user's profileSend private message
otto
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2003
Posts: 8


PostPosted: Wed Jan 14, 2004 7:10 pm Reply with quoteBack to top

Someone please help me out here. Everytime someone puts an apostrophe in the text I get the error above and also when someones sends a private message with an apostrophe the user that the pm was sent to is unable to read what the person sent.
Find all posts by ottoView user's profileSend private message
otto
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2003
Posts: 8


PostPosted: Wed Jan 14, 2004 8:08 pm Reply with quoteBack to top

Ok, I found a temporary solution to fix the apostrophe problem in the forums. I had to add this code under line 200


200 Reads:
Code:

$message = prepare_message(trim($message), $html_on, $bbcode_on, $smilies_on, $bbcode_uid);

My addition:
Code:


$message = addslashes($message);



I'm still having a problem with the private messages. When someone reads a private message with an apostrophe in the messages. The script redirects them back to the home page of the site.
Find all posts by ottoView user's profileSend private message
otto
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2003
Posts: 8


PostPosted: Thu Jan 15, 2004 6:45 am Reply with quoteBack to top

I've figured out that when someone sends a PM with an apostrophe in the message the script doesn't store the data in the database. I'm not sure where to look to find out what's wrong. I'm running 6.9 if that helps.
Find all posts by ottoView user's profileSend private message
otto
Nuke Cadet
Nuke Cadet


Joined: Jul 14, 2003
Posts: 8


PostPosted: Fri Jan 16, 2004 9:22 am Reply with quoteBack to top

Someone's gotta be able to help me with the private messaging. It's driving me nuts.
Find all posts by ottoView user's profileSend private message
Greatlord
Nuke Cadet
Nuke Cadet


Joined: Mar 14, 2006
Posts: 1


PostPosted: Sun Jun 03, 2007 7:27 am Reply with quoteBack to top

I am having the same problem...

has anyone found anymore information on this issue?
Find all posts by GreatlordView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Sun Jun 03, 2007 10:10 am Reply with quoteBack to top

There was no need to revive this thread...
And you could post your nuke and bbtonuke versions.
Try updating you bb and it should solve it.
Find all posts by eXistenZeView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.209 Seconds - 224 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::