vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v3.0 Support > Bugs & Issues > Bugs From 3.0 RC1

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2008, 10:30 AM
diettalk's Avatar
diettalk diettalk is offline
Junior Member
 
Join Date: Apr 2004
Posts: 18
Default ORDER BY links.name ASC db error

vBa Links v3.0 RC1


Code:
Database error in vBulletin 3.7.2:

Invalid SQL:

                SELECT  links.linkid
                FROM adv_links AS links
                
                WHERE links.valid = 1
                    AND catid = 
                ORDER BY links.name ASC;

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 'ORDER BY links.name ASC' at line 6
Error Number  : 1064
Request Date  : Friday, August 8th 2008 @ 04:57:34 AM
Error Date    : Friday, August 8th 2008 @ 04:57:34 AM
Script        : http://www.www.com/links/showlink.php?do=showdetails&l=94&goto=next&catid=
Referrer      :
Reply With Quote
  #2  
Old 08-11-2008, 02:38 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

Thank you for pointing this out. Looks like that error can be generated when trying to click the "Next Link" text on a link that's been deleted... Not entirely sure how you would have done that, but you can correct the issue by looking in your forum/includes/vba_links_plugin_sf.php file for this line:
PHP Code:
$checkcat $db->query_first("SELECT catid FROM " TABLE_PREFIX "adv_links WHERE linkid = $linkid"); 
And adding this just below it:
PHP Code:
            if (empty($checkcat))
            {
                
define('SF_ERROR''nolinkid');
            } 
Reply With Quote
  #3  
Old 08-12-2008, 01:10 PM
diettalk's Avatar
diettalk diettalk is offline
Junior Member
 
Join Date: Apr 2004
Posts: 18
Default

Fixed. Thanks... Some how I have users who found it... LOL
Reply With Quote
Reply


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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
News Module - Thread Display Order Error Jitsu Bugs From 3.0.0 1 02-12-2008 03:49 PM
Unknown column 'links.rating' in 'order clause' Shelby Troubleshooting & Problems 4 01-09-2007 06:01 PM
MySQL Error: 1052 : Column 'dateline' in order clause is ambiguous Bailx Troubleshooting & Problems 8 08-23-2006 04:55 PM
Fatal Error: Cannot redeclare order Primeval Troubleshooting / "How do I..." Questions 5 10-10-2005 10:17 PM
Error when editing pages Invalid SQL: SELECT * FROM vb3_adv_pages ORDER BY display Pooh Troubleshooting & Problems 3 08-12-2005 04:18 PM


All times are GMT -4. The time now is 09:05 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.