• 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
    • New Posts 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: New Posts SQL Error

    • Issue Tools
      • View Changes
    1. issueid=305 October 27, 2008 4:46 PM
      vimto vimto is offline
      Regular Member
      New Posts SQL Error
      SQL error when clicking on New Posts

      I loaded up my website earlier and clicked on New Posts and received the following error:


      Code:
      Database error in vBulletin 3.7.3:
      
      Invalid SQL:
      
      		SELECT thread.threadid
      		FROM thread AS thread
      		LEFT JOIN forum AS forum ON (forum.forumid = thread.forumid)
      		LEFT JOIN vault_link AS link ON (link.postid = thread.firstpostid)
      		WHERE forum.vault_type > 0
      			AND link.redirect = 1
      		WHERE thread.forumid IN(41, 28, 29, 35, 37, 38, 40, 42, 23, 22, 3, 12, 9, 34, 20, 13, 4, 18, 7, 8, 17, 16, 5, 10, 19, 11, 21, 14, 15)
      			AND thread.visible IN (0,1,2)
      			AND thread.sticky IN (0,1)
      			AND thread.open <> 10
      		ORDER BY thread.lastpost DESC
      		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 'WHERE thread.forumid IN(41, 28, 29, 35, 37, 38, 40, 42, 23, 22, 3, 12, 9, 34, 20' at line 7
      Error Number  : 1064
      Request Date  : Monday, October 27th 2008 @ 08:42:28 PM
      Error Date    : Monday, October 27th 2008 @ 08:42:28 PM
      Script        : http://www.bluedragons.co.uk/forums/search.php?do=getnew
      Referrer      : http://www.bluedragons.co.uk/forums/private.php?do=showpm&pmid=2243
      IP Address    : 89.240.105.190
      Username      : Vimto
      Classname     : vB_Database
      MySQL Version : 4.1.20-log
    Issue Details
    Issue Number 305
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Searching
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 2.1.2
    Fixed Version 2.1.2
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 27, 2008 11:27 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/special_plugins_search.php, find:
      PHP Code:
      WHERE thread.forumid IN(" . implode(', ', $forumids) . ") 
      Replace with:
      PHP Code:
      AND thread.forumid IN(" . implode(', ', $forumids) . ") 
      Reply Reply  
    2. October 28, 2008 4:25 PM
      vimto vimto is offline
      Regular Member
      Many thanks, that's done the trick all working as it should be now.
      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 11:13 PM.
    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.