![]() |
|
#1
|
|||
|
|||
|
I have installed VBA LD without problems and the users can view and add new links, but Today I get two erros:
Code:
Database error in vBulletin 3.7.4: Invalid SQL: SELECT links.linkid FROM vb_adv_links AS links LEFT JOIN vb_adv_links_posts AS posts ON (posts.linkid = links.linkid) WHERE (links.userid IN(93)) ANDlinks.valid IN(0, 1, 2) ORDER BY links.name ASC LIMIT 500; 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 'ANDlinks.valid IN(0, 1, 2) ORDER BY links.name ASC LIMIT 500' at line 5 Error Number : 1064 Request Date : Monday, December 29th 2008 @ 12:12:19 PM Error Date : Monday, December 29th 2008 @ 12:12:19 PM Script : http://www.gstrail.es/foro/links/search.php Referrer : http://www.gstrail.es/foro/links/search.php IP Address : 77.208.27.196 Username : lawan Classname : vB_Database MySQL Version : 5.0.45 Code:
Database error in vBulletin 3.7.4: Invalid SQL: SELECT links.linkid FROM vb_adv_links AS links LEFT JOIN vb_adv_links_posts AS posts ON (posts.linkid = links.linkid) WHERE (links.userid IN(93)) ANDlinks.valid IN(0, 1, 2) links.catid IN(1,1,2,3,16,15) AND ORDER BY links.name ASC LIMIT 500; 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 'ANDlinks.valid IN(0, 1, 2) links.catid IN(1,1,2,3,16,15) AND ORDER BY links.n' at line 5 Error Number : 1064 Request Date : Monday, December 29th 2008 @ 12:12:09 PM Error Date : Monday, December 29th 2008 @ 12:12:09 PM Script : http://www.gstrail.es/foro/links/search.php Referrer : http://www.gstrail.es/foro/links/search.php IP Address : 77.208.27.196 Username : lawan Classname : vB_Database MySQL Version : 5.0.45 |
|
#2
|
||||
|
||||
|
Thank you for pointing this out. I've just updated the links/search.php file in the download package here to include the fix, so if you will download the files again and update that one on your server, that should take care of the issue.
Or if you would rather apply the fix manually, just look in the file for this line: PHP Code:
PHP Code:
|
|
#3
|
|||
|
|||
|
Thank you very much!
|
|
#4
|
|||
|
|||
|
The fix donīt avoid the error,
Today I have recived two more: Code:
Database error in vBulletin 3.7.4: Invalid SQL: SELECT links.linkid FROM vb_adv_links AS links WHERE (links.name LIKE '%gs %' OR keywords LIKE '%gs %' OR description LIKE '%gs %' AND links.name LIKE '%team %' OR keywords LIKE '%team %' OR description LIKE '%team %') AND links.valid = 1 links.catid IN(1,1,2,3,16,15) AND ORDER BY links.name ASC LIMIT 500; 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 'links.catid IN(1,1,2,3,16,15) AND ORDER BY links.name ASC LIMIT 500' at line 5 Error Number : 1064 Request Date : Sunday, January 4th 2009 @ 06:04:31 PM Error Date : Sunday, January 4th 2009 @ 06:04:31 PM Script : http://www.gstrail.es/foro/links/search.php Referrer : http://www.gstrail.es/foro/links/search.php IP Address : 85.56.155.25 Username : Titan Classname : vB_Database MySQL Version : |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Database Error When Searching by Username | Spika | Bugs From 3.1.0 | 2 | 01-06-2009 02:00 PM |
| Links Directory - Database Error When Searching | grahamsmythe | Bugs From 3.0 RC1 | 2 | 08-25-2008 02:26 PM |
| Error of Keyword searching....V2.0.1 | nostalgia | Bugs From 2.0.1 | 5 | 03-05-2007 03:58 PM |
| Error message when searching keywords | Jester | Troubleshooting & Problems | 1 | 12-20-2004 03:48 PM |
| mysql error when searching advanced | teksigns | Bugs From 1.0 RC3 | 7 | 11-07-2004 11:46 AM |