• 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
    • MySQL Statement Prepare 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: MySQL Statement Prepare Error

    • Issue Tools
      • View Changes
    1. issueid=6302 April 18, 2022 6:36 AM
      gerryvz gerryvz is offline
      New Member
      MySQL Statement Prepare Error

      XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: 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 `feed`.`visible` = 1 AND `feed`.`feedtype` = 0' at line 1 src/XF/Db/AbstractStatement.php:230

      Generated by: Unknown account Apr 17, 2022 at 6:26 AM

      Stack trace

      SELECT COUNT(*) AS `resultcount` FROM `xf_vw_feed` `feed` WHERE `feed`.`areaid` IN () AND `feed`.`visible` = 1 AND `feed`.`feedtype` = 0
      ------------

      #0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL statement...', 1064, '42000')
      #1 src/XF/Db/Mysqli/Statement.php(41): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1064, '42000')
      #2 src/XF/Db/Mysqli/Statement.php(56): XF\Db\Mysqli\Statement->prepare()
      #3 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
      #4 src/addons/vw/vw/_core/controller/db/xf2.php(251): XF\Db\AbstractAdapter->query('SELECT COUNT(*...')
      #5 src/addons/vw/vw/_core/model/db/mysql/vw.php(25): vw_DB_Controller_XF2->query_first_slave('SELECT COUNT(*...')
      #6 src/addons/vw/vw/_core/view/content/list/base/vw.php(573): vw_DB_MySQL_Model->select(Array)
      #7 src/addons/vw/vw/_core/view/content/list/base/vw.php(47): vw_Content_List_Base_View->do_query(Array, Array)
      #8 src/addons/vw/vw/_core/view/ui/feed/vw.php(1102): vw_Content_List_Base_View->get('Feed', Array, Array, Array, Array)
      #9 src/addons/vw/vw/_core/view/ui/feed/xf2.php(63): vw_UI_Feed_View->feeds(Array)
      #10 src/addons/vw/vw/_core/view/reply/view/vw.php(48): vw_UI_Feed_View_XF2->feeds(Array)
      #11 src/addons/vw/vw/_core/view/reply/base/vw.php(134): vw_Reply_View_View->render_type('html')
      #12 src/addons/vw/vw/_core/view/reply/stack/vw.php(45): vw_Reply_base_View->render('html')
      #13 src/addons/vw/vw/XF/Mvc/View.php(25): vw_Reply_Stack_View->render('html')
      #14 src/XF/Mvc/Renderer/AbstractRenderer.php(91): vw\vw\XF\Mvc\View->renderHtml()
      #15 src/XF/Mvc/Renderer/Html.php(47): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #16 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('vw\\vw:Wiki', 'public:vw_gener...', Array)
      #17 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #18 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
      #19 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
      #20 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
      #21 src/XF.php(524): XF\App->run()
      #22 index.php(20): XF::runApp('XF\\Pub\\App')
      #23 {main}

      Request state

      array(4) {
      ["url"] => string(38) "/forums/wiki-feed/personal?action=list"
      ["referrer"] => bool(false)
      ["_GET"] => array(1) {
      ["action"] => string(4) "list"
      }
      ["_POST"] => array(0) {
      }
      }
    Issue Details
    Issue Number 6302
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Page Output
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.1.4
    Fixed Version 4.1.5
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. April 19, 2022 1:52 PM
      pegasus pegasus is offline
      VaultWiki Team
      How did you encounter this error? Are you seeing it consistently at this URL?

      I cannot see any way to get it, except if the user trying to view this page actually has no permission to view the wiki. In that case, in order to get here, they would have to enter the URL manually.
      Reply Reply  
    2. April 21, 2022 6:41 AM
      gerryvz gerryvz is offline
      New Member
      I am not sure how it appeared. It has only come up one time. I don't know the circumstances. As far as I have my permissions set, all members of my site have access to the Wiki. I wonder if it could have come through a non-registered user using a cached Google search engine link?
      Reply Reply  
    3. April 21, 2022 1:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, assuming this error only occurs for unprivileged users attempting to access the URL manually, this error has been fixed in the next release.
      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 12:40 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.