Error when submitting new stories

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-03-2007, 12:01 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: It was Shredit but I've torn it apart
 
Join Date: Nov 2007
Posts: 35
Sometimes I get this error when submitting stories and sometimes I don't, I'm not sure why:

Warning: 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 'AND `link_author` = 1 ORDER BY `link_date` DESC LIMIT 1' at line 1 in /home/content/l/i/n/linkbin/html/libs/db.php on line 233
Reply With Quote
  #2 (permalink)  
Old 12-03-2007, 12:32 PM
graphicsguru's Avatar
Pligg Donor
Pligg Version: 9.9.5
 
Join Date: Aug 2006
Location: USA
Posts: 399
Quote:
Originally Posted by rwallen View Post
Sometimes I get this error when submitting stories and sometimes I don't, I'm not sure why:

Warning: 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 'AND `link_author` = 1 ORDER BY `link_date` DESC LIMIT 1' at line 1 in /home/content/l/i/n/linkbin/html/libs/db.php on line 233
I just submitted a new story on your site you can delete it did you get the error fixed ?
Reply With Quote
  #3 (permalink)  
Old 12-03-2007, 12:37 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: It was Shredit but I've torn it apart
 
Join Date: Nov 2007
Posts: 35
Quote:
Originally Posted by graphicsguru View Post
I just submitted a new story on your site you can delete it did you get the error fixed ?
No I just found that the error is my fault somewhere. I have in the header.tpl put this:
Code:
</div></center>
<center><div id="mydiv3" style="display:none; overflow: hidden; height: 75px;">

	<form action="{$URL_submit}" method="post" id="thisform">
		<label for="url">Submit your URL:</label>
		<input type="text" name="url" id="url" value="http://" size="55" />
		<input type="hidden" name="phase" value=1>
		<input type="hidden" name="randkey" value="{$submit_rand}">
		<input type="hidden" name="id" value="c_1">
		<input type="submit" value="{#PLIGG_Visual_Submit1_Continue#}" class="submit-s" />
	</form>
	<br />{if $Submit_Require_A_URL neq 1}{#PLIGG_Visual_Submit_Editorial#}{/if}

</div></center>
It is a collapsable div that has the submit box for links. If links are submitted this way they error sometimes, if you go to submit.php and do it that way they are fine.

So I probably left something important out.
Reply With Quote
  #4 (permalink)  
Old 12-03-2007, 01:08 PM
Banned
Pligg Version: 9.9.5
 
Join Date: Oct 2007
Location: Canada
Posts: 784
I get this error randomly it's unknown why so far
Reply With Quote
  #5 (permalink)  
Old 12-03-2007, 01:14 PM
Casual Pligger
Pligg Version: 9.8.2
Pligg Template: It was Shredit but I've torn it apart
 
Join Date: Nov 2007
Posts: 35
Quote:
Originally Posted by bbrian017 View Post
I get this error randomly it's unknown why so far
Well the error doesnt appear if the user goes to submit.php to submit the links.

I have a submit box appear in the header of every page that always displays this error now if used. So maybe there is something included in the submit.php that I missed or somthing. I only included the submit form in my header. It makes it through step-2 this way and gives that error on step 3.
Reply With Quote
  #6 (permalink)  
Old 08-03-2008, 01:47 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 223
Send a message via MSN to xiesi
i have this error too.
Reply With Quote
  #7 (permalink)  
Old 08-03-2008, 02:06 AM
Pligg Donor
 
Join Date: Jul 2007
Posts: 286
Quote:
Originally Posted by xiesi View Post
i have this error too.
I use 9.6 & dont get this error.
Reply With Quote
  #8 (permalink)  
Old 08-03-2008, 12:09 PM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 223
Send a message via MSN to xiesi
Warning: 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 'AND `link_author` = 3 ORDER BY `link_date` DESC LIMIT 1' at line 1 in /home/sxy366/public_html/libs/db.php on line 233
Reply With Quote
  #9 (permalink)  
Old 08-28-2008, 09:34 AM
xiesi's Avatar
Constant Pligger
Pligg Version: 9.95
Pligg Template: yget + diy
 
Join Date: Jun 2007
Posts: 223
Send a message via MSN to xiesi
Warning: 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 'AND `link_author` = 90 ORDER BY `link_date` DESC LIMIT 1' at line 1 in /home/sxy366/public_html/libs/db.php on line 236
Reply With Quote
  #10 (permalink)  
Old 08-28-2008, 07:01 PM
New Pligger
 
Join Date: Aug 2008
Posts: 19
This error appears for me also sometimes. It seems to appear whenever I try to submit some YouTube videos... very strange.

EDIT: Seems to happen when I submit youtube video URLs, with stuff at the end of it like
YouTube - Jermaine O'Neal Mix by DZ

But if I remove all the fluff and insert the true URL YouTube - Jermaine O'Neal Mix by DZ
it works fine and I don't get the error.

It seems the characters are causing errors.

Last edited by coreyvf; 08-28-2008 at 07:06 PM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Captcha for submitting stories cruz Questions and Comments 2 02-13-2009 10:50 PM
Error when submitting new stories xiesi Questions and Comments 9 09-01-2008 10:56 AM
[Huge Modification] Instead of Submitting stories, getting stories off RSS feeds kappa Questions and Comments 2 10-09-2007 06:08 PM
Submitting stories vissu Questions and Comments 2 09-10-2007 12:04 PM
Submitting stories...again kingp Questions and Comments 5 05-07-2007 01:58 PM


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