• 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
    • Database Error (SQL_CALC_FOUND_ROWS)

    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: Database Error (SQL_CALC_FOUND_ROWS)

    • Issue Tools
      • View Changes
    1. issueid=4034 October 10, 2014 8:09 AM
      DragonSigh DragonSigh is offline
      Junior Member
      Database Error (SQL_CALC_FOUND_ROWS)

      Started to get this reports recently after update to RC3.

      Code:
      Database error in vBulletin 4.2.3 Beta 2:
      
      Invalid SQL:
      SELECT SQL_CALC_FOUND_ROWS `page`.`pageid` AS `itemid` FROM `vb_vw_page` `page`  LEFT JOIN `vb_vw_categoryitem` `ci` ON (`ci`.`pageid` = `page`.`pageid`)
       LEFT JOIN `vb_vw_route` `i` ON (`page`.`pageid` = `i`.`itemid` AND `i`.`itemtypeid` = 1)   WHERE  `page`.`areaid` IN ()  AND `page`.`visible` = 1 AND  `page`.`pageid` NOT IN (77)  AND `ci`.`itemcategoryid` = 77 ORDER BY `i`.`sortkey` ASC, `i`.`parentprefixid` ASC  LIMIT 0,200;
      
      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 `page`.`visible` = 1 AND  `page`.`pageid` NOT IN (77)  AND `ci`.`itemcate' at line 2
      Error Number  : 1064
      Request Date  : Friday, October 10th 2014 @ 12:05:05 PM
      Error Date    : Friday, October 10th 2014 @ 12:05:05 PM
      Script        : hxxp://rpgmaker.su/wiki/Категории/Категория:Боевые-системы?do=listing
      Referrer      :
      IP Address    : 141.8.189.122
      Username      : Unregistered
      Classname     : vB_Database
      MySQL Version :
    Issue Details
    Issue Number 4034
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Categories
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 RC 3
    Fixed Version 4.0.0 RC 4
    Milestone VaultWiki 4.0 Gold
    Software DependencyvBulletin 4.x w/ ckEditor
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags mysql




    1. October 10, 2014 10:26 AM
      pegasus pegasus is offline
      VaultWiki Team
      This occurs when the user has no permissions to view any part of the wiki at all (including the index page), but they click a direct link to a category's directory listing. In this case, the category's listings do not check if you're allowed to view the category first (the idea was that the category would be empty anyway if you couldn't view its contents), but this runs a query against an empty allowed-to-view set, which throws the error above.

      The same issue applied to the listings for social group nodes.

      This is fixed in the next release. In vault/core/controller/ui/category/vw.php, find:
      Code:
      $this->category_list();
      Replace with:
      Code:
      			if ($this->has_permission('main'))
      			{
      				$this->category_list();
      			}
      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 10:21 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.