• 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 4.x Series
    • Bug
    • "My Subscriptions" Database 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: "My Subscriptions" Database Error

    • Issue Tools
      • View Changes
    1. issueid=3694 April 19, 2014 7:34 PM
      Ptah Ptah is offline
      Junior Member
      "My Subscriptions" Database Error
      Clicking "My Subscriptions" results in a database error

      Click "My Subscriptions" from the navbar and get this:

      Code:
      Database error in vBulletin 4.2.2:
      
      Invalid SQL:
      SELECT  COUNT(`subscribeid`)  AS `subcount`,folderid FROM `vw_subscribe` WHERE userid =  AND  `folderid` IN (0,0)  GROUP BY folderid;
      
      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 'AND  `folderid` IN (0,0)  GROUP BY folderid' at line 1
      Error Number  : 1064
      Request Date  : Saturday, April 19th 2014 @ 11:32:53 PM
      Error Date    : Saturday, April 19th 2014 @ 11:32:53 PM
      Script        : [url]http://forums.intpcomplex.com/wiki_subscribe.php[/url]
      Referrer      : [url]http://forums.intpcomplex.com/wiki_index.php[/url]
      IP Address    : 71.201.229.147
      Username      : Ptah
      Classname     : vB_Database
      MySQL Version : 5.5.36-cll
    Issue Details
    Issue Number 3694
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Subscriptions
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 5
    Fixed Version 4.0.0 Gamma 5
    Milestone VaultWiki 4 Gamma X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 19, 2014 7:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/ui/watch/vw.php, find:
      Code:
      		$folderids = array_keys($this->folders);
      		$folderids[] = 0;
      Add after:
      Code:
      $userid = vw_Hard_Core::model('User')->get('id');
      Reply Reply  
    2. April 19, 2014 8:04 PM
      Ptah Ptah is offline
      Junior Member
      Confirmed. That fixes it.
      Thanks!
      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 7:05 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 © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.