• 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: DELETE FROM `vw_unique` WHERE `primaryid` IN (1,2,3,4,5,6,,8,9,10) LIMIT 10 Mysqli 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: Database Error: DELETE FROM `vw_unique` WHERE `primaryid` IN (1,2,3,4,5,6,,8,9,10) LIMIT 10 Mysqli prepare error

    • Issue Tools
      • View Changes
    1. issueid=6001 March 30, 2020 7:30 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Database Error: DELETE FROM `vw_unique` WHERE `primaryid` IN (1,2,3,4,5,6,,8,9,10) LIMIT 10 Mysqli prepare error

      Error Info
      XenForo_Exception: Database Error: DELETE FROM `vw_unique` WHERE `primaryid` IN (1,2,3,4,5,6,,8,9,10) LIMIT 10 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 '8,9,10) LIMIT 10' at line 1 - library/vw/_core/controller/db/xf.php:185
      Generated By: Alfa, A moment ago

      Stack Trace
      #0 /library/vw/_core/controller/db/xf.php(169): vw_DB_Controller_XF->throw_error(Object(Zend_Db_Statement_Mysqli_Exception) , 'DELETE FROM `vw...')
      #1 /library/vw/_core/model/db/mysql/vw.php(1339): vw_DB_Controller_XF->query_write('DELETE FROM `vw...')
      #2 /library/vw/_core/model/db/mysql/vw.php(366): vw_DB_MySQL_Model->shutdown_or_run('DELETE FROM `vw...', false)
      #3 /library/vw/_install/lib/upgradepath/steps/4/1/0/alpha/1/C/xf0.php(321): vw_DB_MySQL_Model->delete(Array)
      #4 /library/vw/_core/controller/progress/steps/vw.php(85): vw_Install_UpgradePath_Steps_410alpha1_C_Controller_XF0->{closure}(Object(vw_Install_UpgradePath_Controller_XF) , true)
      #5 /library/vw/_core/controller/progress/steps/vw.php(56): vw_Progress_Steps_Controller->call(Object(vw_Install_UpgradePath_Controller_XF), Object(Closure))
      #6 /library/vw/_install/lib/upgradepath/vw.php(78): vw_Progress_Steps_Controller->execute(Object(vw_Install_UpgradePath_Controller_XF))
      #7 /library/vw/_core/controller/progress/vw.php(169): vw_Install_UpgradePath_Controller->exec_script(Array)
      #8 /library/vw/_core/view/response/progress/vw.php(27): vw_Progress_Controller->execute()
      #9 /library/vw/_core/view/response/progress/vw.php(63): vw_Response_Progress_View->stream()
      #10 /library/vw/XenForo/ViewAdmin.php(67): vw_Response_Progress_View->render()
      #11 /library/XenForo/ViewRenderer/Abstract.php(229): vw_XenForo_ViewAdmin->renderRaw()
      #12 /library/XenForo/ViewRenderer/Raw.php(53): XenForo_ViewRenderer_Abstract->renderViewObject('vw_XenForo_View...', 'Raw', Array, 'vw_general_view')
      #13 /library/XenForo/FrontController.php(624): XenForo_ViewRenderer_Raw->renderView('vw_XenForo_View...', Array, 'vw_general_view', NULL)
      #14 /library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Raw), Array)
      #15 /admin.php(13): XenForo_FrontController->run()
      #16 {main}
      Request State
      array(3) {
      ["url"] => string(57) "/admin.php?wiki/upgrade&progress=1"
      ["_GET"] => array(3) {
      ["wiki/upgrade"] => string(0) ""
      ["progress"] => string(1) "1"
      ["panel"] => string(7) "install"
      }
      ["_POST"] => array(4) {
      ["wiki/upgrade"] => string(0) ""
      ["progress"] => string(1) "1"
      ["_xfToken"] => string(8) "********"
      ["panel"] => string(7) "install"
      }
      }
    Issue Details
    Issue Number 6001
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 RC 2
    Fixed Version 4.1.0 RC 2
    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. March 30, 2020 7:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      This occurs when attempting to upgrade a report for wiki content that was deleted already. In library/vw/_install/lib/upgradepath/steps/4/1/0/alpha/1/C/xf0.php, find:
      Code:
      $unique[$entry['primaryid']] = $entry['primaryid'];
      Replace with:
      Code:
      if ($entry['primaryid']) $unique[$entry['primaryid']] = $entry['primaryid'];
      Reply Reply  
    2. March 30, 2020 7:56 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Upgrade is continuing to the next steps.
      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 1:08 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.