• 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
    • SELECT SQL_CALC_FOUND_ROWS `o`.

    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: SELECT SQL_CALC_FOUND_ROWS `o`.

    • Issue Tools
      • View Changes
    1. issueid=5163 July 11, 2017 11:22 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      SELECT SQL_CALC_FOUND_ROWS `o`.

      Code:
      XenForo_Exception: Database Error: SELECT SQL_CALC_FOUND_ROWS `o`.`pageid` AS `itemid` FROM `vw_chapterorder` `o` LEFT JOIN `vw_route` `i` ON (`o`.`pageid` = `i`.`itemid` AND `i`.`itemtypeid` = 1) LEFT JOIN `vw_page` `page` ON (`page`.`pageid` = `o`.`pageid`) WHERE `o`.`parentid` IN (441) AND `o`.`pageid` <> 441 AND `page`.`areaid` IN (0,2,6,17,4,7,8,5,16,3,9,10,11,12,13,14,15,18) AND `page`.`visible` = 1 ORDER BY ASC, `i`.`parentprefixid` ASC LIMIT 0,200 Mysqli prepare error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ASC, `i`.`parentprefixid` ASC LIMIT 0,200' at line 2 - vault/core/controller/db/xf.php:187 
      Generated By: Bajeda, 1 minute ago
      
      Stack Trace
      #0 /public_html/vault/core/controller/db/xf.php(226): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception), 'SELECT SQL_CALC...')
      #1 /public_html/vault/core/model/db/mysql/vw.php(27): vw_DB_Controller_XF->query_read_slave('SELECT SQL_CALC...')
      #2 /public_html/vault/core/view/content/list/base/vw.php(466): vw_DB_MySQL_Model->select(Array)
      #3 /public_html/vault/core/view/content/list/book/vw.php(48): vw_Content_List_Base_View->do_query(Array, Array)
      #4 /public_html/vault/core/view/ui/book/vw.php(344): vw_Content_List_Book_View->get('Page', Array, Array, Array)
      #5 /public_html/vault/core/controller/ui/book/vw.php(981): vw_UI_Book_View->book_list(Object(vw_UI_Book_Controller))
      #6 /public_html/vault/core/controller/ui/book/vw.php(65): vw_UI_Book_Controller->book_list()
      #7 /public_html/vault/core/controller/ui/stack/vw.php(276): vw_UI_Book_Controller->execute()
      #8 /public_html/library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #9 /public_html/library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #10 /public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #11 /public_html/index.php(13): XenForo_FrontController->run()
      #12 {main}
      Request State
      array(3) {
        ["url"] => string(56) "https://forum.com/wiki/?title=Book:Faq&do=contents"
        ["_GET"] => array(2) {
          ["title"] => string(8) "Book:Faq"
          ["do"] => string(8) "contents"
        }
        ["_POST"] => array(7) {
          ["filter"] => string(1) "0"
          ["sort"] => string(5) "title"
          ["sortorder"] => string(3) "asc"
          ["_xfToken"] => string(8) "********"
          ["do"] => string(8) "contents"
          ["title"] => string(8) "Book:Faq"
          ["bb2_screener_"] => string(22) "1499786267 xxx"
        }
      }
    Issue Details
    Issue Number 5163
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Books / Chapters
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.18
    Fixed Version 4.0.19
    Milestone (none)
    Software DependencyXenForo 1.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. July 12, 2017 12:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      As a hint when fixing, this probably occurs due to the missing sortkey (usually what is used for the title-sort attempted by the query): https://www.vaultwiki.org/issues/5164/
      Reply Reply  
    2. July 12, 2017 1:36 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release by adding the missing index 'sortkey' to the book view.
      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 4:49 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 © 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.