• 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
    • Show Stopper Upgrade from Beta 2 to Beta 3 bug

    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: Show Stopper Upgrade from Beta 2 to Beta 3 bug

    • Issue Tools
      • View Changes
    1. issueid=3199 July 14, 2013 1:23 AM
      rizwank rizwank is offline
      New Member
      Show Stopper Upgrade from Beta 2 to Beta 3 bug

      Step 4

      installing_phrases
      Importing phrase group: xf

      Upgrading to Final
      Step 5

      Code:
      An exception occurred: Argument 2 passed to XenForo_CacheRebuilder_Phrase::rebuild() must be an array, null given, called in /var/www/html/forum/vault/core/controller/install/rebuild/xf.php on line 69 and defined in /var/www/html/forum/library/XenForo/CacheRebuilder/Phrase.php on line 23
      XenForo_Application::handlePhpError() in XenForo/CacheRebuilder/Phrase.php at line 23
      XenForo_CacheRebuilder_Phrase->rebuild() in /var/www/html/forum/vault/core/controller/install/rebuild/xf.php at line 69
      vw_Install_Rebuild_Controller_XF->phrases() in /var/www/html/forum/vault/core/controller/install/upgradepath/steps/final/xf.php at line 89
      {closure}() in /var/www/html/forum/vault/core/controller/install/upgradepath/vw.php at line 57
      vw_Install_UpgradePath_Controller->call() in /var/www/html/forum/vault/core/controller/cp/install/vw.php at line 264
      vw_CP_Install_Controller->exec_step() in /var/www/html/forum/vault/core/controller/cp/install/vw.php at line 177
      vw_CP_Install_Controller->upgrade() in /var/www/html/forum/vault/core/controller/cp/install/vw.php at line 69
      vw_CP_Install_Controller->execute() in /var/www/html/forum/vault/cp/global.php at line 72
      require_once() in /var/www/html/forum/vault/install/index.php at line 37
    Issue Details
    Issue Number 3199
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 1 - Security / Login / Data Loss
    Affected Version 4.0.0 Beta 3
    Fixed Version 4.0.0 Beta 3
    Milestone VaultWiki 4 Beta X
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)


    Page 1 of 2 12 Next LastLast


    1. July 14, 2013 1:25 AM
      rizwank rizwank is offline
      New Member
      I can't uninstall to try a fresh install either.
      Code:
      Server Error
      
      Mysqli prepare error: Table 'chat_xenforo.vw_nodetype' doesn't exist
      
      Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
      Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
      Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
      Zend_Db_Adapter_Abstract->query() in /var/www/html/forum/vault/core/controller/db/xf.php at line 136
      vw_DB_Controller_XF->query_read_slave() in /var/www/html/forum/vault/core/model/db/mysql/vw.php at line 29
      vw_DB_MySQL_Model->select() in /var/www/html/forum/vault/core/model/cache/vw.php at line 140
      vw_Cache_Model->get() in /var/www/html/forum/vault/core/model/node/vw.php at line 310
      vw_Node_Model->load() in /var/www/html/forum/vault/core/model/node/vw.php at line 210
      vw_Node_Model->all() in /var/www/html/forum/vault/core/controller/install/db/insert/permission/vw.php at line 51
      vw_Install_DB_Insert_Permission_Controller->__construct() in /var/www/html/forum/vault/core/model/vw.php at line 190
      vw_Hard_Core::fetch_object() in /var/www/html/forum/vault/core/model/vw.php at line 302
      vw_Hard_Core::controller() in /var/www/html/forum/vault/core/controller/install/uninstall/vw.php at line 135
      vw_Install_UnInstall_Controller->remove_insertions() in /var/www/html/forum/vault/core/controller/install/uninstall/xf.php at line 23
      vw_Install_UnInstall_Controller_XF->remove_insertions() in /var/www/html/forum/vault/core/controller/install/uninstall/vw.php at line 31
      vw_Install_UnInstall_Controller->execute() in vw/UnInstall.php at line 27
      vw_UnInstall::uninstall()
      call_user_func() in XenForo/DataWriter/AddOn.php at line 193
      XenForo_DataWriter_AddOn->_postDelete() in AddOnInstaller/DataWriter/AddOn.php at line 10
      AddOnInstaller_DataWriter_AddOn->_postDelete() in XenForo/DataWriter.php at line 1738
      XenForo_DataWriter->delete() in XenForo/ControllerAdmin/AddOn.php at line 116
      XenForo_ControllerAdmin_AddOn->actionDelete() in XenForo/FrontController.php at line 313
      XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
      XenForo_FrontController->run() in /var/www/html/forum/admin.php at line 13
      and now the admin panel isn't accessible
      Code:
      Server Error
      
      Mysqli prepare error: Table 'chat_xenforo.vw_usercount' doesn't exist
      
      Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
      Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
      Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
      Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753
      Zend_Db_Adapter_Abstract->fetchRow() in XenForo/Model/User.php at line 345
      XenForo_Model_User->getUserById() in ForumWatch/Extend/Model/User.php at line 13
      ForumWatch_Extend_Model_User->getUserById() in XenForo/Model/User.php at line 710
      XenForo_Model_User->getVisitingUserById() in XenForo/Visitor.php at line 383
      XenForo_Visitor::setup() in XenForo/Session.php at line 296
      XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
      XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 298
      XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 312
      XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
      XenForo_FrontController->run() in /var/www/html/forum/admin.php at line 13
      Reply Reply  
    2. July 14, 2013 1:28 AM
      rizwank rizwank is offline
      New Member
      temp fix by
      Code:
      $config['enableListeners'] = false;
      however, VW is no longer in the list of addons for me to disable it, so I have to keep listeners off for the moment. Help tonight would be GREATLY appreciated, as my forum is a bit nerfed.
      Reply Reply  
    3. July 14, 2013 1:29 AM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/controller/install/upgradepath/final/steps/xf.php, find:
      Code:
      vw_Hard_Core::controller('Install/Rebuild')->phrases($startat)
      Replace with:
      Code:
      vw_Hard_Core::controller('Install/Rebuild')->phrases($info)
      Find:
      Code:
      vw_Hard_Core::controller('Install/Rebuild')->styles($startat)
      Replace with:
      Code:
      vw_Hard_Core::controller('Install/Rebuild')->styles($info)
      Reply Reply  
    4. July 14, 2013 1:40 AM
      pegasus pegasus is offline
      VaultWiki Team
      As for the listeners that were left behind by the failed uninstall, you will have to disable them manually from the XenForo CP section for CodeEventListeners. Then you would be able to undo your change to config.php

      For future reference, if the upgrade fails during the "final" process, there is never any need to uninstall.
      Reply Reply  
    5. July 14, 2013 2:04 AM
      pegasus pegasus is offline
      VaultWiki Team
      I do hope you're able to resolve this with the information I've provided above. I have to sign off for the night.
      Reply Reply  
    6. July 14, 2013 2:47 AM
      rizwank rizwank is offline
      New Member
      vault/core/controller/install/upgradepath/final/steps/xf.php doesn't exist.
      vault/core/controller/install/upgradepath/steps/final/xf.php does exist.

      made changes there.

      got
      Code:
      An exception occurred: Undefined variable: html in /var/www/html/forum/vault/core/controller/cp/install/vw.php on line 46
      
      XenForo_Application::handlePhpError() in /var/www/html/forum/vault/core/controller/cp/install/vw.php at line 46
      vw_CP_Install_Controller->execute() in /var/www/html/forum/vault/cp/global.php at line 72
      require_once() in /var/www/html/forum/vault/install/index.php at line 37
      in installer.
      Reply Reply  
    7. July 14, 2013 2:53 AM
      rizwank rizwank is offline
      New Member
      Code:
      $html .= $view->print_version_header($phrase);
      replaced with
      Code:
                              $html = $view->print_version_header($phrase);
      then the installer gave an error because listeners were disabled. re-enabling them killed the entire install.
      Reply Reply  
    8. July 14, 2013 3:11 AM
      rizwank rizwank is offline
      New Member
      can't find any eventlisteners labled vw
      Reply Reply  
    9. July 14, 2013 3:14 AM
      rizwank rizwank is offline
      New Member
      All works fine if the vault and library/vw directory are deleted.
      If I reinstall those,

      admin page says
      Code:
      Server Error
      
      Mysqli prepare error: Table 'chat_xenforo.vw_usercount' doesn't exist
      
      Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
      Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
      Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
      Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753
      Zend_Db_Adapter_Abstract->fetchRow() in XenForo/Model/User.php at line 345
      XenForo_Model_User->getUserById() in ForumWatch/Extend/Model/User.php at line 13
      ForumWatch_Extend_Model_User->getUserById() in XenForo/Model/User.php at line 710
      XenForo_Model_User->getVisitingUserById() in XenForo/Visitor.php at line 383
      XenForo_Visitor::setup() in XenForo/Session.php at line 296
      XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
      XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 298
      XenForo_Controller->preDispatch() in XenForo/FrontController.php at line 312
      XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 132
      XenForo_FrontController->run() in /var/www/html/forum/admin.php at line 13
      Homepage
      Code:
      An exception occurred: Mysqli prepare error: Table 'chat_xenforo.vw_nodetype' doesn't exist in /var/www/html/forum/library/Zend/Db/Statement/Mysqli.php on line 77
      
      Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
      Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
      Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
      Zend_Db_Adapter_Abstract->query() in /var/www/html/forum/vault/core/controller/db/xf.php at line 136
      vw_DB_Controller_XF->query_read_slave() in /var/www/html/forum/vault/core/model/db/mysql/vw.php at line 29
      vw_DB_MySQL_Model->select() in /var/www/html/forum/vault/core/model/cache/vw.php at line 140
      vw_Cache_Model->get() in /var/www/html/forum/vault/core/model/node/vw.php at line 310
      vw_Node_Model->load() in /var/www/html/forum/vault/core/model/node/vw.php at line 26
      vw_Node_Model->one() in /var/www/html/forum/vault/core/controller/ui/base/vw.php at line 31
      vw_UI_Base_Controller->__construct() in /var/www/html/forum/vault/core/model/vw.php at line 190
      vw_Hard_Core::fetch_object() in /var/www/html/forum/vault/core/model/vw.php at line 302
      vw_Hard_Core::controller() in vw/XenForo/CodeEventListener/Public.php at line 152
      vw_XenForo_CodeEventListener_Public::front_controller_post_view()
      call_user_func_array() in XenForo/CodeEvent.php at line 54
      XenForo_CodeEvent::fire() in XenForo/FrontController.php at line 170
      XenForo_FrontController->run() in /var/www/html/forum/index.php at line 13
      VW install gives
      Code:
      An exception occurred: Mysqli prepare error: Table 'chat_xenforo.vw_usercount' doesn't exist in /var/www/html/forum/library/Zend/Db/Statement/Mysqli.php on line 77
      
      Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115
      Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381
      Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478
      Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753
      Zend_Db_Adapter_Abstract->fetchRow() in XenForo/Model/User.php at line 345
      XenForo_Model_User->getUserById() in ForumWatch/Extend/Model/User.php at line 13
      ForumWatch_Extend_Model_User->getUserById() in XenForo/Model/User.php at line 710
      XenForo_Model_User->getVisitingUserById() in XenForo/Visitor.php at line 383
      XenForo_Visitor::setup() in XenForo/Session.php at line 296
      XenForo_Session::startAdminSession() in XenForo/ControllerAdmin/Abstract.php at line 48
      XenForo_ControllerAdmin_Abstract->_setupSession() in XenForo/Controller.php at line 298
      XenForo_Controller->preDispatch() in /var/www/html/forum/vault/core/controller/cp/xf.php at line 30
      vw_CP_Controller_XF->has_permission() in /var/www/html/forum/vault/cp/global.php at line 50
      require_once() in /var/www/html/forum/vault/install/index.php at line 37
      Reply Reply  
    10. July 14, 2013 3:19 AM
      rizwank rizwank is offline
      New Member
      Not sure why I coudln't see this on the ui but...
      Code:
      mysql> select * from xf_code_event_listener where addon_id='vaultwiki';
      +-------------------+-------------------------------+---------------+-------------+-------------------------------------+-------------------------------+--------+-----------+
      | event_listener_id | event_id                      | execute_order | description | callback_class                      | callback_method               | active | addon_id  |
      +-------------------+-------------------------------+---------------+-------------+-------------------------------------+-------------------------------+--------+-----------+
      |               317 | container_public_params       |            11 |             | vw_XenForo_CodeEventListener_Public | container_public_params       |      1 | vaultwiki |
      |               318 | front_controller_post_view    |            10 |             | vw_XenForo_CodeEventListener_Public | front_controller_post_view    |      1 | vaultwiki |
      |               319 | front_controller_pre_dispatch |            10 |             | vw_XenForo_CodeEventListener_Public | front_controller_pre_dispatch |      1 | vaultwiki |
      |               320 | front_controller_pre_view     |            10 |             | vw_XenForo_CodeEventListener_Public | front_controller_pre_view     |      1 | vaultwiki |
      |               321 | init_dependencies             |            10 |             | vw_XenForo_CodeEventListener        | init_dependencies             |      1 | vaultwiki |
      |               322 | load_class_bb_code            |            10 |             | vw_XenForo_CodeEventListener_Public | load_class_bb_code            |      1 | vaultwiki |
      |               323 | load_class_controller         |            10 |             | vw_XenForo_CodeEventListener_Public | load_class_controller         |      1 | vaultwiki |
      |               324 | load_class_datawriter         |            10 |             | vw_XenForo_CodeEventListener_Public | load_class_datawriter         |      1 | vaultwiki |
      |               325 | load_class_model              |            10 |             | vw_XenForo_CodeEventListener        | load_class_model              |      1 | vaultwiki |
      |               326 | navigation_tabs               |            10 |             | vw_XenForo_CodeEventListener_Public | navigation_tabs               |      1 | vaultwiki |
      |               327 | template_create               |            10 |             | vw_XenForo_CodeEventListener        | template_create               |      1 | vaultwiki |
      |               328 | template_hook                 |            10 |             | vw_XenForo_CodeEventListener_Public | template_hook                 |      1 | vaultwiki |
      +-------------------+-------------------------------+---------------+-------------+-------------------------------------+-------------------------------+--------+-----------+
      12 rows in set (0.00 sec)
      Reply Reply  
    11. July 14, 2013 4:26 AM
      rizwank rizwank is offline
      New Member
      no luck fixing it although I've emptied almost all tables with xf_ or xenforo.

      still having the same problem.
      Reply Reply  
    12. July 14, 2013 4:28 AM
      rizwank rizwank is offline
      New Member
      I found that removing the files for VW seems to fix the sisue.
      Code:
      [Sun Jul 14 01:24:48 2013] [error] [client 46.24.4.237] PHP Warning:  Uncaught exception 'ErrorException' with message 'require_once(/var/www/html/forum/vault/config.php): failed to open stream: No such file or directory' in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php:31\nStack trace:\n#0 /var/www/html/forum/library/vw/XenForo/CodeEventListener.php(31): XenForo_Application::handlePhpError(2, 'require_once(/v...', '/var/www/html/f...', 31, Array)\n#1 /var/www/html/forum/library/vw/XenForo/CodeEventListener.php(31): vw_XenForo_CodeEventListener::init_dependencies()\n#2 [internal function]: vw_XenForo_CodeEventListener::init_dependencies(Object(XenForo_Dependencies_Public), Array)\n#3 /var/www/html/forum/library/XenForo/CodeEvent.php(54): call_user_func_array(Array, Array)\n#4 /var/www/html/forum/library/XenForo/Dependencies/Abstract.php(180): XenForo_CodeEvent::fire('init_dependenci...', Array)\n#5 /var/www/html/forum/library/XenForo/FrontController.php(125): XenForo_Dependencies_Abstract->preLoadData()\n#6 /var/www/html/forum/index.php(13): XenForo_FrontController->run( in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php on line 31
      [Sun Jul 14 01:24:48 2013] [error] [client 46.24.4.237] PHP Fatal error:  vw_XenForo_CodeEventListener::init_dependencies(): Failed opening required '/var/www/html/forum/vault/config.php' (include_path='/var/www/html/forum/library:.:.:/usr/share/pear:/usr/share/php') in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php on line 31
      [Sun Jul 14 01:25:56 2013] [error] [client 46.24.4.237] PHP Warning:  Uncaught exception 'ErrorException' with message 'require_once(/var/www/html/forum/vault/config.php): failed to open stream: No such file or directory' in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php:31\nStack trace:\n#0 /var/www/html/forum/library/vw/XenForo/CodeEventListener.php(31): XenForo_Application::handlePhpError(2, 'require_once(/v...', '/var/www/html/f...', 31, Array)\n#1 /var/www/html/forum/library/vw/XenForo/CodeEventListener.php(31): vw_XenForo_CodeEventListener::init_dependencies()\n#2 [internal function]: vw_XenForo_CodeEventListener::init_dependencies(Object(XenForo_Dependencies_Public), Array)\n#3 /var/www/html/forum/library/XenForo/CodeEvent.php(54): call_user_func_array(Array, Array)\n#4 /var/www/html/forum/library/XenForo/Dependencies/Abstract.php(180): XenForo_CodeEvent::fire('init_dependenci...', Array)\n#5 /var/www/html/forum/library/XenForo/FrontController.php(125): XenForo_Dependencies_Abstract->preLoadData()\n#6 /var/www/html/forum/index.php(13): XenForo_FrontController->run( in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php on line 31
      [Sun Jul 14 01:25:56 2013] [error] [client 46.24.4.237] PHP Fatal error:  vw_XenForo_CodeEventListener::init_dependencies(): Failed opening required '/var/www/html/forum/vault/config.php' (include_path='/var/www/html/forum/library:.:.:/usr/share/pear:/usr/share/php') in /var/www/html/forum/library/vw/XenForo/CodeEventListener.php on line 31
      Suepect blocks are like these :
      Reply Reply  
    13. July 14, 2013 8:38 AM
      pegasus pegasus is offline
      VaultWiki Team
      If you already manually deleted the listeners from the database, you have to rebuild the CodeEventListeners cache by enabling or disabling a different addon.
      Reply Reply  
    14. July 14, 2013 3:45 PM
      rizwank rizwank is offline
      New Member
      Refresh worked.
      Code:
      Step 6
      
      Adding data to table: vw_bbcode
      Adding data to table: vw_nodetype
      Adding data to table: xf_content_type
      Adding data to table: xf_content_type_field
      Fatal error: Call to a member function set_info() on a non-object in /var/www/html/forum/vault/core/controller/install/db/insert/vw.php on line 122
      Since I had uninstalled the last version, this is on a fresh install.

      p.s. is the pair of
      Code:
      vw_Hard_Core::controller('Install/Rebuild')->phrases($info)
      patches required on vault/core/controller/install/full/steps/xf.php?
      Reply Reply  
    15. July 14, 2013 3:54 PM
      rizwank rizwank is offline
      New Member
      Ah I see minor updates to the zip. Reinstalling using freshest build.
      Reply Reply  
    Page 1 of 2 12 Next LastLast
    + 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:41 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.