 | |  | | | Classifieds Bug Reports Post any problems you may be having with Classifieds here. |
September 19th, 2010, 10:01 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: May 2010 Location: Singapore
Posts: 30
| MySQL Error Report Quote:
An error was encountered during execution of the query:
SELECT bigimage,approved,cat,title,userid,date,rating,views,user FROM cp_products WHERE id= LIMIT 1
The query returned with an errorcode of:
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 'LIMIT 1' at line 1
If you need assistence or feel this is a 'bug'; please report it to our support forums at: Photopost Pro Bug Reports - PhotoPost Community
To turn off these emails, set $debug=0 in your config-inc.php file.
| I have been getting quite a few of these, is there something I should do?
|
| |
September 20th, 2010, 08:07 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
I will see if I can find anything.
|
| |
October 30th, 2010, 08:03 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 119
|
The same here since today! Quote:
Originally Posted by Chuck S I will see if I can find anything. | |
| |
October 31st, 2010, 04:59 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
well how do you get this error anything in the report? how about if you set the debug option to display errors?
|
| |
October 31st, 2010, 05:51 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 119
|
Chuck, i will see, if we could get any information. The last three days the error did not happen.
Greetings
Klaus
|
| |
October 31st, 2010, 06:44 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
yeah no problem I am testing as well but do not get any errors then again I am using 4.1 which I think was released after this thread.
|
| |
September 1st, 2011, 08:47 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jun 2002
Posts: 98
|
In the last week, I started getting the same exact errors and I am running 4.1 with MySQL version 5.0.9-community.
|
| |
September 1st, 2011, 08:58 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
That query is only used in comshow.php
I would suspect this is a BOT issue.
That error would only happen if you have no comments and in our software we do not show a link to users unless there is a comment so bots have to be scanning different scripting.
I can alter the query to surpress any error by simply putting '' around the id variable however my suggestion would be to put this in the robots.txt file in your classifieds folder Code: Content visible to verified customers only.
|
| |
September 1st, 2011, 09:27 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Oct 2005
Posts: 119
|
O.k., update from me/us. The error is gone, heaven knows why, for we did not change anything at all.
Greetings
Klaus
|
| |
September 1st, 2011, 09:28 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
Okay no problem
|
| |
January 12th, 2012, 01:30 PM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
I have just started getting these from our Photopost Pro gallery (version 7.1)
Bob
|
| |
January 12th, 2012, 02:24 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
You can try what is posted in post 8
|
| |
January 13th, 2012, 05:11 AM
|
#13 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
That does not work.
Bob
|
| |
January 13th, 2012, 07:09 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
well then maybe your issue is not what is posted here not much for me to go on with the info given.
|
| |
January 13th, 2012, 09:49 AM
|
#15 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
Same error message Quote:
An error was encountered during execution of the query:
SELECT bigimage,approved,cat,storecat,title,userid,width,height,date,filesize,rating,views,user FROM photos WHERE id= LIMIT 1
The query returned with an errorcode of:
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 'LIMIT 1' at line 1
If you need assistence or feel this is a 'bug'; please report it to our support forums at: Photopost Pro Bug Reports - PhotoPost Community
To turn off these emails, set $debug=0 in your config-inc.php file.
| Bob
|
| |
January 13th, 2012, 10:03 AM
|
#16 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
well your problem would have to be a bot viewing the file directly. See if you have no comments on your system we do not show a link to that script.
I suppose you could edit comshow.php and add the following code where noted in bold to kill the script before it does anything if there are no comments like this. Code: Content visible to verified customers only.
|
| |
January 17th, 2012, 11:00 AM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
|
Thank you for the code but it stopped before I used it. Really odd.
Bob
|
| |
January 17th, 2012, 11:46 AM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
yeah as I suspected a bot issue but the code above should as well add a second level of defense
|
| |
January 20th, 2012, 06:40 AM
|
#19 (permalink)
| | Member Verified Customer
Join Date: Jan 2003 Location: London
Posts: 267
| It's back
This has come back with avengance, over a 100 messages overnight, and one in the past few minutes. I have narrowed this down to either Google on IP 66.249. or msnbot on 157.55. I wonder what has changed to do this on an intermittent basis. I will put your code in and see if it goes away permanently.
Bob
|
| |
January 20th, 2012, 07:08 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,941
|
Yep try post 16 also but post 8 should stop a bot anyway do both.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | MySQL Error Report | scalemotorcars | Classifieds Bug Reports | 1 | March 10th, 2010 05:14 PM | | MySQL Error Report | Micky | ReviewPost BETA | 5 | March 7th, 2010 07:57 PM | | MySQL Error Report | deathdlr | Photopost Pro Bug Reports | 5 | October 20th, 2009 10:20 AM | | MySQL error report | zigorob | Photopost Pro Bug Reports | 3 | June 11th, 2008 07:20 AM | | MySQL Error Report | mjm | Photopost Pro Bug Reports | 21 | January 1st, 2007 11:00 PM | All times are GMT -5. The time now is 09:53 AM. | |