submit problem

Register an Account
Pligg Chat Room
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2006, 09:24 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
i just discovered a bug of mine in the submit process that i must have introduced while building some custom mods a while back and not caught until now. I am getting a mysql error message in step 3 of the submit process (the review page) whenever i submit tags with an apostrophe ('). It took a long time for this error to come up because i just tried submitting tags with apostrophes for the first time. The error message looks like this if i try to submit the tag s' :

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 's', from_unixtime(1163986345))' at line 1

The error isn't fatal. The rest of the page displays properly and everything including the tags with apostrophes are posted correctly when i submit the story.

I know the problem isn't in submit.php because i reverted back to the default version and still get the error. I aslo get the error regardless of which template i am using.

I am not using version control but have made notes on all of my mods and tried to retrace my steps with no luck. Can anyone guess at which file i may have messed up?

Any tips greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 11-19-2006, 10:15 PM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Sounds like /libs/link.php. Function store_basic() which gets called by function store() which "stores" the link information in the database.
Reply With Quote
  #3 (permalink)  
Old 11-19-2006, 11:11 PM
Constant Pligger
 
Join Date: Oct 2006
Posts: 220
thanks AshDigg ... but i had only altered a single line in link.php and when i tried uploading the original version i still got the error.

Any other ideas?
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in STORY SUBMIT bhatiacane Questions and Comments 7 10-23-2009 01:01 PM
Submit Story page problem in pligg 9.9.5 natkarthik Questions and Comments 5 10-17-2008 04:06 AM
[SOLVED] Weird Problem - Submit "Button" is a "Textbox" vivek231 Questions and Comments 2 08-07-2007 11:03 AM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development