PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Bug Reports (http://www.photopost.com/forum/classifieds-bug-reports/)
-   -   MySQL Error Report (http://www.photopost.com/forum/classifieds-bug-reports/144023-mysql-error-report.html)

softsingapore September 19th, 2010 10:01 PM

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?

Chuck S September 20th, 2010 08:07 AM

I will see if I can find anything.

klaush October 30th, 2010 08:03 PM

The same here since today!

Quote:

Originally Posted by Chuck S (Post 1276365)
I will see if I can find anything.


Chuck S October 31st, 2010 04:59 PM

well how do you get this error anything in the report? how about if you set the debug option to display errors?

klaush October 31st, 2010 05:51 PM

Chuck, i will see, if we could get any information. The last three days the error did not happen.

Greetings

Klaus

Chuck S October 31st, 2010 06:44 PM

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.

RobVA September 1st, 2011 08:47 AM

In the last week, I started getting the same exact errors and I am running 4.1 with MySQL version 5.0.9-community.

Chuck S September 1st, 2011 08:58 AM

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.

klaush September 1st, 2011 09:27 AM

O.k., update from me/us. The error is gone, heaven knows why, for we did not change anything at all.

Greetings

Klaus

Chuck S September 1st, 2011 09:28 AM

Okay no problem

firstrebel January 12th, 2012 01:30 PM

I have just started getting these from our Photopost Pro gallery (version 7.1)

Bob

Chuck S January 12th, 2012 02:24 PM

You can try what is posted in post 8

firstrebel January 13th, 2012 05:11 AM

That does not work.

Bob

Chuck S January 13th, 2012 07:09 AM

well then maybe your issue is not what is posted here not much for me to go on with the info given.

firstrebel January 13th, 2012 09:49 AM

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

Chuck S January 13th, 2012 10:03 AM

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.

firstrebel January 17th, 2012 11:00 AM

Thank you for the code but it stopped before I used it. Really odd.

Bob

Chuck S January 17th, 2012 11:46 AM

yeah as I suspected a bot issue but the code above should as well add a second level of defense

firstrebel January 20th, 2012 06:40 AM

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

Chuck S January 20th, 2012 07:08 AM

Yep try post 16 also but post 8 should stop a bot anyway do both.


All times are GMT -5. The time now is 12:22 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97