 | |  | | | ReviewPost How do I...? Wondering how to do something in ReviewPost? |
April 21st, 2012, 10:18 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jan 2012
Posts: 102
| SQL Error
I received two times of the following error. Do you know why this is happening? How do we address this?
MySQL Error Report
> An error was encountered during execution of the query:
>
> SELECT bigimage,approved,cat,title,userid,date,rating,views,user FROM rp_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: ReviewPost PHP User Reviews Engine
>
> To turn off these emails, set $debug=0 in your config-inc.php file.
|
| |
April 21st, 2012, 10:59 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
I would suspect some type of spam bot. That query is from the revshow.php script which is only shown when you have reviews. Therefore put a robots.txt file in your reviewpost directory with the contents like this Code: Content visible to verified customers only.
|
| |
April 23rd, 2012, 01:10 AM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jan 2012
Posts: 102
|
Thanks a lot Chuck. I think these will help a lot on other things also.
Do we need to disallow revshow.php and reviews.php also? These two pages have text review information which can help if search engine index them, right?
|
| |
April 23rd, 2012, 07:59 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Well reviews.php is the actual review form when posting a review so that is never shown.
revshow is a sub script which is not shown when there are no reviews your error is because someone is trying to view it when there are no reviews so it has to be a bot.
|
| |
May 8th, 2012, 12:25 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jan 2012
Posts: 102
|
Chuck,
The Robots.txt was already there.
I continue to get error message like this:
An error was encountered during execution of the query:
SELECT bigimage,approved,cat,title,userid,date,rating,views,user FROM rp_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: ReviewPost PHP User Reviews Engine
To turn off these emails, set $debug=0 in your config-inc.php file.
|
| |
May 8th, 2012, 07:11 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
You need to actually edit the robots text file and make it what I posted as I would suspect your robots.txt is not what I posted.
Like I said if there are NO reviews we do not show a link to revshow.php and if there are reviews you would not get that error so I can only guess you have a bot hitting that script so without you altering your robots.txt file you are allowing bots to crawl that script.
|
| |
May 8th, 2012, 08:27 AM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jan 2012
Posts: 102
|
We have a few dozens reviews already last week. And this error was generated last week.
I checked the existing robots file, it has everything you listed plus the cron php. So is it possible it's something else?
|
| |
May 8th, 2012, 08:51 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
No that query is only in one spot in the program unless this is something you have altered. There is no other response I can give.
You can check your revshow.php script for that query and see what I mean. That query is only ran when visiting the script and we do not show that script unless there are comments. You would only get an error is someone was trying to run that script and there are no comments.
|
| |
June 4th, 2012, 12:50 AM
|
#9 (permalink)
| | Member Verified Customer
Join Date: Jan 2012
Posts: 102
|
I am getting some more SQL error. It does not give error code. Could you please help?
An error was encountered during execution of the query:
SELECT bigimage,approved,cat,title,userid,date,rating,views,user FROM rp_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
|
| |
June 4th, 2012, 08:05 AM
|
#10 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,683
|
Please read my replies there is no revshow link showing on our program without there being actual reviews. This has to be a bot issue and if you disallow revshow.php in your actual robots.txt that should solve it.
You can try making sure line 73 of that file encapsulate the id variable Code: Content visible to verified customers only.
|
| | |
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 | | SQL Error | foxfirediego | Photopost Pro Bug Reports | 1 | June 16th, 2009 10:13 AM | | SQL error | drare | Photopost Pro Bug Reports | 7 | May 3rd, 2009 08:28 PM | | SQL Error | BGTKing | PhotoPost Pro Support Forums | 1 | May 30th, 2008 07:05 PM | | SQL Error? | LeicaMarket | Classifieds Bug Reports | 3 | June 24th, 2007 11:51 AM | | SQL Error | prodigy | Classifieds Bug Reports | 1 | August 31st, 2005 09:55 AM | All times are GMT -5. The time now is 03:12 PM. | |