• 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
    • [4.1 Alpha 3] XF1.5 installation exception (preg_match_all() expects parameter 2 to be string, array given)

    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: [4.1 Alpha 3] XF1.5 installation exception (preg_match_all() expects parameter 2 to be string, array given)

    • Issue Tools
      • View Changes
    1. issueid=5695 April 1, 2019 7:59 AM
      ACL ACL is offline
      Regular Member
      [4.1 Alpha 3] XF1.5 installation exception (preg_match_all() expects parameter 2 to be string, array given)

      After reading your earlier post that recommends upgrading VaultWiki to 4.1 on XenForo 1.5 before upgrading XenForo to 2.0/2.1, I have set up a new private instance of XF1.5 for testing purposes.

      I am unable to finish installing VaultWiki 4.1.0 Alpha 3 to a new copy of XenForo 1.5.21, as the install script is interrupted by an error exception at 38% (Step 10):

      The last section of installation log:
      Step 8
      Preparing database
      Adding data to table: vw_index
      Adding data to table: vw_permission
      Adding data to table: vw_special(3)
      Preparing database
      Updating data in table: vw_block
      Step 9
      Adding data to table: vw_page
      Creating required and example areas
      Step 10
      An exception occurred: preg_match_all() expects parameter 2 to be string, array given in [vw-core]/view/global/xf.php on line 77

      Code:
      #0: vw_CP_Progress_View->handle_php_error()
      #1: preg_match_all() in [vw-core]/view/global/xf.php at line 77
      #2: vw_Global_View_XF->replace_phrases() in [vw-core]/instance/progress/xf0.php at line 19
      #3: vw_Progress_Instance_XF0->preformat() in [vw-core]/instance/progress/vw.php at line 120
      #4: vw_Progress_Instance->popup() in [vw-core]/view/cp/progress/vw.php at line 242
      #5: vw_CP_Progress_View->popup() in [vw-platform]/library/vw/_install/lib/full/steps/xf0.php at line 480
      #6: vw_Install_Full_Steps_Controller_XF0->{closure}() in [vw-core]/controller/progress/steps/vw.php at line 85
      #7: vw_Progress_Steps_Controller->call() in [vw-core]/controller/progress/steps/vw.php at line 56
      #8: vw_Progress_Steps_Controller->execute() in [vw-platform]/library/vw/_install/lib/full/steps/vw.php at line 294
      #9: vw_Install_Full_Steps_Controller->execute() in [vw-core]/controller/progress/vw.php at line 191
      #10: vw_Progress_Controller->exec_script() in [vw-core]/controller/progress/vw.php at line 169
      #11: vw_Progress_Controller->execute() in [vw-core]/view/response/progress/vw.php at line 25
      #12: vw_Response_Progress_View->stream() in [vw-core]/view/response/progress/vw.php at line 61
      #13: vw_Response_Progress_View->render() in [vw-platform]/library/vw/XenForo/ViewAdmin.php at line 67
      #14: vw_XenForo_ViewAdmin->renderRaw() in [vw-platform]/library/XenForo/ViewRenderer/Abstract.php at line 229
      #15: XenForo_ViewRenderer_Abstract->renderViewObject() in [vw-platform]/library/XenForo/ViewRenderer/Raw.php at line 53
      #16: XenForo_ViewRenderer_Raw->renderView() in [vw-platform]/library/XenForo/FrontController.php at line 624
      #17: XenForo_FrontController->renderView() in [vw-platform]/library/XenForo/FrontController.php at line 176
      #18: XenForo_FrontController->run() in [vw-platform]/admin.php at line 13
    Issue Details
    Issue Number 5695
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.1.0 Alpha 3
    Fixed Version 4.1.0 Alpha 3
    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. April 1, 2019 9:09 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/_core/instance/progress/xf0.php, find:
      Code:
      vw_Hard_Core::view('Global')->replace_phrases($content, 'html');
      Replace with:
      Code:
      		if (is_array($content))
      		{
      			foreach ($content AS $key => $text)
      			{
      				$content["$key"] = $this->preformat($text);
      			}
      		}
      		else
      		{
      			vw_Hard_Core::view('Global')->replace_phrases($content, 'html');
      		}
      Reply Reply  
    2. April 1, 2019 9:33 AM
      ACL ACL is offline
      Regular Member
      Thanks. Installation resumed and the "Moderator Settings" overlay has two radio options, without any label:
      Code:
      <dl class="ctrlUnit">
        <dt>Moderator Group</dt>
        <dd><ul class="vw-progress-input-radio">
          <li id="yui_3_5_0_1_1554125118954_45" style="display: flex;">
              <input type="radio" name="vw_moderator_type" value="0">
            </li>
            <li id="yui_3_5_0_1_1554125118954_48" style="display: flex;">
              <input type="radio" name="vw_moderator_type" value="1">
            </li>
          </ul>
          <p class="explain hint">Choose the user group that will be used for wiki moderators.</p>
        </dd>
      </dl>
      Reply Reply  
    3. April 1, 2019 11:40 AM
      ACL ACL is offline
      Regular Member
      It doesn't matter which label-less option I choose at Step 10, as both result in:
      <span style="color: #f00">The selected user group is not usable for this purpose.</span>
      (the html elements are part of the error message)
      Reply Reply  
    4. April 1, 2019 1:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next build. In js/vw/vw/cp-progress.js, find:
      Code:
      li.appendChild(this.dialog_row(radio, tag));
      Replace with:
      Code:
      li.appendChild(this.dialog_row(radio.label, tag));
      Reply Reply  
    5. April 1, 2019 2:19 PM
      ACL ACL is offline
      Regular Member
      Thanks, this fixed the UI side of things for Step 10. I was still unable to proceed with the Create new usergroup option (error: The selected user group is not usable for this purpose.). However, I was able to choose an existing user group and then the installation script continued to 99%.

      At 99% (Step 25), the installation stalls with a console message logged:
      POST /admin.php?wiki/upgrade&progress=1 500 (Internal Server Error)

      However manually refreshing the page reveals that the installation seems complete, i.e. the usual menus appear and I can access various settings without an issue (e.g. Area Manager, Prefix Manager, Discussion Topics, etc..). Navigating to "Run Upgrade Script" brings up the installer at 99%.

      Details about that 500 Internal Server Error:

      Error: Function name must be a string - library/vw/_core/controller/progress/steps/vw.php:85

      Code:
      #0 library/vw/_core/controller/progress/steps/vw.php(56): vw_Progress_Steps_Controller->call(Object(vw_Install_Full_Controller_XF), NULL)
      #1 library/vw/_install/lib/full/steps/vw.php(294): vw_Progress_Steps_Controller->execute(Object(vw_Install_Full_Controller_XF))
      #2 library/vw/_core/controller/progress/vw.php(191): vw_Install_Full_Steps_Controller->execute(Object(vw_Install_Full_Controller_XF))
      #3 library/vw/_core/controller/progress/vw.php(169): vw_Progress_Controller->exec_script(Array)
      #4 library/vw/_core/view/response/progress/vw.php(25): vw_Progress_Controller->execute()
      #5 library/vw/_core/view/response/progress/vw.php(61): vw_Response_Progress_View->stream()
      #6 library/vw/XenForo/ViewAdmin.php(67): vw_Response_Progress_View->render()
      #7 library/XenForo/ViewRenderer/Abstract.php(229): vw_XenForo_ViewAdmin->renderRaw()
      #8 library/XenForo/ViewRenderer/Raw.php(53): XenForo_ViewRenderer_Abstract->renderViewObject('vw_XenForo_View...', 'Raw', Array, 'vw_general_view')
      #9 library/XenForo/FrontController.php(624): XenForo_ViewRenderer_Raw->renderView('vw_XenForo_View...', Array, 'vw_general_view', NULL)
      #10 library/XenForo/FrontController.php(176): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Raw), Array)
      #11 admin.php(13): XenForo_FrontController->run()
      #12 {main}
      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 7:04 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.