• 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
    • XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; '' at line 1 in src/XF/Db/AbstractStatement.php

    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: XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; '' at line 1 in src/XF/Db/AbstractStatement.php

    • Issue Tools
      • View Changes
    1. issueid=6055 June 7, 2020 8:14 PM
      xH3LLRAIZ3Rx xH3LLRAIZ3Rx is offline
      New Member
      XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: You have an error in your SQL syntax; '' at line 1 in src/XF/Db/AbstractStatement.php
      Getting syntax error

      Full Error
      Code:
           XF\Db\InvalidQueryException: MySQL statement prepare error [1064]: 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 '' at line 1 src/XF/Db/AbstractStatement.php:228 
      
      Stack trace
      
      SELECT `f`.* FROM `vw_area_field` `a`  LEFT JOIN `vw_field_definition` `f` ON (`f`.`fieldid` = `a`.`fieldid`)   WHERE `a`.`areaid` = 
      ------------
      
      #0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1064, '42000')
      #1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1064, '42000')
      #2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
      #3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute()
      #4 src/addons/vw/vw/_core/controller/db/xf2.php(148): XF\Db\AbstractAdapter->query('SELECT `f`.* FR...')
      #5 src/addons/vw/vw/_core/model/db/mysql/vw.php(25): vw_DB_Controller_XF2->query_read('SELECT `f`.* FR...')
      #6 src/addons/vw/vw/_core/model/customfield/vw.php(652): vw_DB_MySQL_Model->select(Array)
      #7 src/addons/vw/vw/_core/model/customfield/vw.php(38): vw_CustomField_Model->definition(-1, NULL)
      #8 src/addons/vw/vw/_core/controller/dm/base/vw.php(783): vw_CustomField_Model->relevant(Array)
      #9 src/addons/vw/vw/_core/controller/dm/base/vw.php(641): vw_DM_Base_Controller->get_relevant_custom_fields()
      #10 src/addons/vw/vw/_core/controller/dm/revision/vw.php(1019): vw_DM_Base_Controller->process_custom_fields()
      #11 src/addons/vw/vw/_core/controller/dm/revision/vw.php(1639): vw_DM_Revision_Controller->process_custom_fields()
      #12 src/addons/vw/vw/XF/Entity/EntityBase.php(490): vw_DM_Revision_Controller->pre_save(true)
      #13 src/XF/Mvc/Entity/Entity.php(1308): vw\vw\XF\Entity\EntityBase->_preSave()
      #14 src/addons/vw/vw/XF/Entity/EntityBase.php(481): XF\Mvc\Entity\Entity->preSave()
      #15 src/addons/vw/vw/_core/controller/dm/xf2.php(348): vw\vw\XF\Entity\EntityBase->vwPreSave()
      #16 src/addons/vw/vw/_core/controller/dm/base/vw.php(877): vw_DM_Controller_XF2->pre_save(NULL)
      #17 src/addons/vw/vw/_core/controller/dm/page/vw.php(1076): vw_DM_Base_Controller->internal_pre_save(Object(vw_DM_Controller_XF2), NULL)
      #18 src/addons/vw/vw/_core/controller/dm/page/vw.php(811): vw_DM_Page_Controller->process_revision()
      #19 src/addons/vw/vw/XF/Entity/EntityBase.php(490): vw_DM_Page_Controller->pre_save(true)
      #20 src/XF/Mvc/Entity/Entity.php(1308): vw\vw\XF\Entity\EntityBase->_preSave()
      #21 src/addons/vw/vw/XF/Entity/EntityBase.php(481): XF\Mvc\Entity\Entity->preSave()
      #22 src/addons/vw/vw/_core/controller/dm/xf2.php(348): vw\vw\XF\Entity\EntityBase->vwPreSave()
      #23 src/addons/vw/vw/_core/controller/dm/index/vw.php(363): vw_DM_Controller_XF2->pre_save()
      #24 src/addons/vw/vw/_core/controller/dm/index/vw.php(347): vw_DM_Index_Controller->internal_pre_save(Object(vw_DM_Controller_XF2), true)
      #25 src/addons/vw/vw/XF/Entity/EntityBase.php(490): vw_DM_Index_Controller->pre_save(true)
      #26 src/XF/Mvc/Entity/Entity.php(1308): vw\vw\XF\Entity\EntityBase->_preSave()
      #27 src/addons/vw/vw/XF/Entity/EntityBase.php(481): XF\Mvc\Entity\Entity->preSave()
      #28 src/addons/vw/vw/XF/Entity/EntityBase.php(536): vw\vw\XF\Entity\EntityBase->vwPreSave()
      #29 src/addons/vw/vw/_core/controller/dm/xf2.php(382): vw\vw\XF\Entity\EntityBase->vwSave()
      #30 src/addons/vw/vw/_install/lib/db/insert/vw.php(309): vw_DM_Controller_XF2->save()
      #31 src/addons/vw/vw/_install/lib/full/steps/vw.php(140): vw_Install_DB_Insert_Controller->execute_dm(Object(vw\vw\Setup\Caller\Install))
      #32 src/addons/vw/vw/Setup.php(300): vw_Install_Full_Steps_Controller->{closure}(Object(vw\vw\Setup\Caller\Install), false)
      #33 src/addons/vw/vw/Setup.php(218): vw\vw\Setup->vwRunStep('install', Object(vw_Install_Full_Steps_Controller_XF2), Array, 8)
      #34 src/XF/Admin/Controller/AddOn.php(398): vw\vw\Setup->install(Array)
      #35 src/XF/Mvc/Dispatcher.php(350): XF\Admin\Controller\AddOn->actionInstall(Object(XF\Mvc\ParameterBag))
      #36 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:AddOn', 'Install', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #37 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\AddOn), NULL)
      #38 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
      #39 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
      #40 src/XF.php(391): XF\App->run()
      #41 admin.php(13): XF::runApp('XF\\Admin\\App')
      #42 {main}
    Issue Details
    Issue Number 6055
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 RC 3
    Fixed Version 4.1.0
    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. June 7, 2020 8:51 PM
      xH3LLRAIZ3Rx xH3LLRAIZ3Rx is offline
      New Member
      Fixed by following instructions here https://www.vaultwiki.org/issues/6016/
      Reply Reply  
    2. June 8, 2020 10:03 AM
      JulianD JulianD is offline
      New Member
      Thank you!
      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 2:52 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.