• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Redirect SQL Error

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Redirect SQL Error

    • Issue Tools
      • View Changes
    1. issueid=930 November 1, 2009 11:35 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Redirect SQL Error
      Getting a SQL Error for Guests

      Getting this error only from guests:

      Code:
      Invalid SQL:
      
      			SELECT post.*, post.username AS postusername, post.ipaddress AS ip, IF(post.visible = 2, 1, 0) AS isdeleted,
      				user.*,
      				
      				
      				
      				IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid, user.infractiongroupid,
      				
      			FROM vb3_post AS post
      			LEFT JOIN vb3_user AS user ON (user.userid = post.userid)
      			
      			
      			
      			
      			WHERE post.threadid = 18059
      				
      			ORDER BY dateline 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 'FROM vb3_post AS post
      			LEFT JOIN vb3_user AS user ON (user.userid = post.useri' at line 8
    Issue Details
    Issue Number 930
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Redirects
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 2.5.6
    Fixed Version 2.5.7
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. November 1, 2009 1:20 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next build. In vault/special_class_redirect.php, find:
      Code:
      user.infractiongroupid,
      Replace with:
      Code:
      user.infractiongroupid
      Reply Reply  
    2. November 1, 2009 1:24 PM
      Mokonzi Mokonzi is offline
      Senior Member
      I don't believe any of the plugins I have that use those queries aren't connected to CES VaultWiki plugins (If there is, I don't know which one).

      Where does the comma need to be inserted?
      Reply Reply  
    3. November 1, 2009 1:29 PM
      pegasus pegasus is offline
      VaultWiki Team
      There was some confusion about where the error was occurring since you removed that portion of the error message. See my post above.

      Also, I believe this would apply to all users who view a redirect, not just guests.
      Reply Reply  
    4. November 1, 2009 3:41 PM
      Mokonzi Mokonzi is offline
      Senior Member
      My mistake, can't believe I forgot to post the offending script...

      Thanks again for the excellent work
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 8:55 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.