• 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
    • Users can no longer post articles in 4.0.24

    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: Users can no longer post articles in 4.0.24

    • Issue Tools
      • View Changes
    1. issueid=5480 September 8, 2018 3:08 AM
      expanserpb expanserpb is offline
      Junior Member
      Users can no longer post articles in 4.0.24

      No one can post new articles or preview new articles.

      Error Info
      ErrorException: Invalid argument supplied for foreach() - library/vw/XenForo/DataWriter.php:343
      Generated By: Velaeri, Today at 12:55 AM
      Stack Trace
      #0 /var/www/html/library/vw/XenForo/DataWriter.php(343): XenForo_Application::handlePhpError(2, 'Invalid argumen...', '/var/www/html/l...', 343, Array)
      #1 /var/www/html/library/vw/XenForo/DataWriter.php(160): vw_XenForo_DataWriter->_castValueToType('array_uint', '', 'notalklist', Array)
      #2 /var/www/html/vault/core/controller/dm/xf.php(312): vw_XenForo_DataWriter->getMergedData()
      #3 /var/www/html/vault/core/controller/dm/base/vw.php(1520): vw_DM_Controller_XF->get()
      #4 /var/www/html/vault/core/controller/dm/page/vw.php(1693): vw_DM_Base_Controller->data_to_itemlist(2)
      #5 /var/www/html/library/vw/XenForo/DataWriter.php(537): vw_DM_Page_Controller->post_save_each()
      #6 /var/www/html/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #7 /var/www/html/vault/core/controller/dm/xf.php(431): XenForo_DataWriter->save()
      #8 /var/www/html/vault/core/controller/ui/edit/vw.php(228): vw_DM_Controller_XF->save()
      #9 /var/www/html/vault/core/controller/ui/create/vw.php(279): vw_UI_Edit_Controller->save(Object(vw_UI_Area_Controller))
      #10 /var/www/html/vault/core/controller/ui/area/vw.php(152): vw_UI_Create_Controller->publish(Object(vw_UI_Area_Controller))
      #11 /var/www/html/vault/core/controller/ui/area/vw.php(44): vw_UI_Area_Controller->publish()
      #12 /var/www/html/vault/core/controller/ui/stack/vw.php(276): vw_UI_Area_Controller->execute()
      #13 /var/www/html/library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #14 /var/www/html/library/XenForo/FrontController.php(369): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #15 /var/www/html/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #16 /var/www/html/index.php(13): XenForo_FrontController->run()
      #17 {main}
      Request State
      array(3) {
      ["url"] => string(67) "https://chroniclesrp.net/Folklore/Locations?do=publish&itemtypeid=1"
      ["_GET"] => array(2) {
      ["do"] => string(6) "create"
      ["itemtypeid"] => string(1) "1"
      }
      ["_POST"] => array(24) {
      ["message_html"] => string(11) "<p><br></p>"
      ["_xfRelativeResolver"] => string(66) "https://chroniclesrp.net/Folklore/Locations?do=create&itemtypeid=1"
      ["query"] => string(8) "landmark"
      ["categoryids"] => array(1) {
      [0] => string(2) "63"
      }
      ["prefixid"] => string(1) "3"
      ["edittitle"] => string(14) "The Eldyr Tree"
      ["typelist"] => array(1) {
      [14] => string(1) "0"
      }
      ["itemlangid"] => string(1) "1"
      ["icontype"] => string(0) ""
      ["fonticon"] => string(4) "f016"
      ["iconurl"] => string(0) ""
      ["_xfToken"] => string(8) "********"
      ["do"] => string(7) "publish"
      ["itemtypeid"] => string(1) "1"
      ["areaid"] => string(2) "11"
      ["section"] => string(1) "0"
      ["posthash"] => string(32) "6daae523e97b57f8034abaf94af7fe9a"
      ["poststarttime"] => string(10) "1536364441"
      ["revparentid"] => string(0) ""
      ["loggedinuser"] => string(2) "12"
      ["sbutton"] => string(15) "Create New Page"
      ["parseurl"] => string(1) "1"
      ["notifytype"] => string(1) "0"
      ["sub_options"] => array(2) {
      ["item_edits"] => string(1) "1"
      ["item_comments"] => string(1) "1"
      }
      }
      }
    Issue Details
    Issue Number 5480
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Install / Upgrade
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.0.24
    Fixed Version 4.0.24
    Milestone (none)
    Software DependencyAny
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. September 8, 2018 9:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/XenForo/DataWriter.php, find:
      Code:
      			foreach ($value AS $row)
      			{
      				$arr[] = parent::_castValueToType($doFieldType, $row, $fieldName, $fieldData);
      			}
      Replace with:
      Code:
      			if (is_array($value))
      			{
      				foreach ($value AS $row)
      				{
      					$arr[] = parent::_castValueToType($doFieldType, $row, $fieldName, $fieldData);
      				}
      			}
      Reply Reply  
    2. September 8, 2018 5:50 PM
      expanserpb expanserpb is offline
      Junior Member
      I can now post articles fine, but doing so generated these in the admin console:

      Error Info
      ErrorException: Undefined index: isPage - vault/core/controller/dm/base/vw.php:792
      Generated By: Raigryn Vayd, 4 minutes ago
      Stack Trace
      #0 /var/www/html/vault/core/controller/dm/base/vw.php(792): XenForo_Application::handlePhpError(8, 'Undefined index...', '/var/www/html/v...', 792, Array)
      #1 /var/www/html/library/vw/XenForo/DataWriter.php(539): vw_DM_Base_Controller->set_itemid()
      #2 /var/www/html/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #3 /var/www/html/vault/core/controller/dm/xf.php(431): XenForo_DataWriter->save()
      #4 /var/www/html/vault/core/controller/dm/page/vw.php(2760): vw_DM_Controller_XF->save()
      #5 /var/www/html/vault/core/controller/dm/page/vw.php(1584): vw_DM_Page_Controller->generate_language_record()
      #6 /var/www/html/library/vw/XenForo/DataWriter.php(540): vw_DM_Page_Controller->post_save_each()
      #7 /var/www/html/library/XenForo/DataWriter.php(1423): vw_XenForo_DataWriter->_postSave()
      #8 /var/www/html/vault/core/controller/dm/xf.php(431): XenForo_DataWriter->save()
      #9 /var/www/html/vault/core/controller/ui/edit/vw.php(228): vw_DM_Controller_XF->save()
      #10 /var/www/html/vault/core/controller/ui/create/vw.php(279): vw_UI_Edit_Controller->save(Object(vw_UI_Area_Controller))
      #11 /var/www/html/vault/core/controller/ui/area/vw.php(152): vw_UI_Create_Controller->publish(Object(vw_UI_Area_Controller))
      #12 /var/www/html/vault/core/controller/ui/area/vw.php(44): vw_UI_Area_Controller->publish()
      #13 /var/www/html/vault/core/controller/ui/stack/vw.php(276): vw_UI_Area_Controller->execute()
      #14 /var/www/html/library/vw/XenForo/ControllerPublic/Wiki.php(70): vw_UI_Stack_Controller->execute()
      #15 /var/www/html/library/XenForo/FrontController.php(369): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #16 /var/www/html/library/XenForo/FrontController.php(152): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #17 /var/www/html/index.php(13): XenForo_FrontController->run()
      #18 {main}
      Request State
      array(3) {
      ["url"] => string(70) "https://chroniclesrp.net/Folklore/Archive-Area?do=publish&itemtypeid=1"
      ["_GET"] => array(2) {
      ["do"] => string(6) "create"
      ["itemtypeid"] => string(1) "1"
      }
      ["_POST"] => array(23) {
      ["message_html"] => string(11) "<p>Test</p>"
      ["_xfRelativeResolver"] => string(69) "https://chroniclesrp.net/Folklore/Archive-Area?do=create&itemtypeid=1"
      ["query"] => string(0) ""
      ["prefixid"] => string(1) "0"
      ["edittitle"] => string(9) "Test Page"
      ["typelist"] => array(2) {
      [14] => string(1) "0"
      [15] => string(1) "0"
      }
      ["itemlangid"] => string(1) "1"
      ["icontype"] => string(0) ""
      ["fonticon"] => string(4) "f016"
      ["iconurl"] => string(0) ""
      ["_xfToken"] => string(8) "********"
      ["do"] => string(7) "publish"
      ["itemtypeid"] => string(1) "1"
      ["areaid"] => string(2) "12"
      ["section"] => string(1) "0"
      ["posthash"] => string(32) "bc4ee2f1819e03b9e39a0791f02259d3"
      ["poststarttime"] => string(10) "1536443054"
      ["revparentid"] => string(0) ""
      ["loggedinuser"] => string(1) "8"
      ["sbutton"] => string(15) "Create New Page"
      ["parseurl"] => string(1) "1"
      ["notifytype"] => string(1) "0"
      ["sub_options"] => array(2) {
      ["item_edits"] => string(1) "1"
      ["item_comments"] => string(1) "1"
      }
      }
      }
      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:20 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.