PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old October 24th, 2011, 07:53 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2010
Posts: 17
Sticky Invalid SQL

Hi;

2 months ago, I started receiving a lot of "vBulletin Database Error" emails originated from browseimage.php, claiming that there is an invalid SQL statement.

Below is the email content:

Quote:
Database error in vBulletin 4.1.6:

Invalid SQL:

SELECT images.imageid
FROM ppgal_images AS images

WHERE valid = 1 AND images.catid = '11'
ORDER BY sticky DESC, , images.imageid
LIMIT;

MySQL Error : 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 ' images.imageid
LIMIT' at line 5
Error Number : 1064
Request Date : Monday, October 24th 2011 @ 04:26:20 AM
Error Date : Monday, October 24th 2011 @ 04:26:20 AM
Script : ............/gallery/browseimages.php?do=browseimages&c=11
Referrer :
IP Address : ...............
Username : ..................
Classname : vB_Database
MySQL Version :
Any suggestion please!
__________________
Samer Joudi
http://www.cadmagazine.net

sjoudi is offline   Reply With Quote
Old October 24th, 2011, 07:58 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
The problem with the query is your condition doorderby is empty note you have two ,, in the order statement.

Now the problem I see is why. How do you get that error can you replicate it? I have viewed many different conditions of browseimages and can not get an error so I need to know how your getting the issue.

Looking at the script all the different cases I see where we define the doorderby condition.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 24th, 2011, 01:56 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Jul 2010
Posts: 17
Hi Chuck;

I can't replicate the error, but the IP address is always the same allover the last 4 months...

After investigation, I found it is an IP address of GoDaddy Security Protection Service that I have subscribed with to provide me with a security check report on any vulnerabilities on my website...
__________________
Samer Joudi
http://www.cadmagazine.net

sjoudi is offline   Reply With Quote
Old October 24th, 2011, 02:03 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,689
Possibly some kind of spam bot playing with url structures although I see no issues with the specific url. I will try playing around with urls on my test site but without the ability to produce the actual error its all a guess.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Install script problem - invalid sql error GeoffE Installs and Upgrade - vBulletin 3.0.X 9 September 21st, 2006 06:12 AM
Extra sql line- Joining two sql statements Telnoi How Do I? - vBulletin 3.0.X 0 August 14th, 2005 08:49 AM
Sticky photos are not "really" sticky sbb Photopost Pro How Do I...? 4 May 31st, 2005 11:49 AM
Invalid SQL: INSERT INTO adv_gallery_customfields_entries PageUp Installs and Upgrade - vBulletin 3.0.X 3 March 30th, 2005 10:34 AM
Invalid SQL sifuhall Bugs From 1.0.0 8 March 15th, 2005 02:16 PM


All times are GMT -5. The time now is 11:21 PM.

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