• 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
    • Error when making a page...

    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: Error when making a page...

    • Issue Tools
      • View Changes
    1. issueid=3176 July 8, 2013 12:02 PM
      rizwank rizwank is offline
      New Member
      Error when making a page...

      Code:
      An exception occurred: Undefined index: htmlstate in /var/www/html/forum/vault/core/view/ui/edit/page/vw.php on line 88
       
          XenForo_Application::handlePhpError() in /var/www/html/forum/vault/core/view/ui/edit/page/vw.php at line 88
          vw_UI_Edit_Page_View->get_fields() in /var/www/html/forum/vault/core/view/ui/edit/vw.php at line 89
          vw_UI_Edit_View->edit() in /var/www/html/forum/vault/core/controller/ui/edit/vw.php at line 596
          vw_UI_Edit_Controller->edit() in /var/www/html/forum/vault/core/controller/ui/create/vw.php at line 116
          vw_UI_Create_Controller->create() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 89
          vw_UI_Area_Controller->create() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 48
          vw_UI_Area_Controller->execute() in /var/www/html/forum/vault/core/controller/ui/stack/vw.php at line 129
          vw_UI_Stack_Controller->execute() in /var/www/html/forum/wiki_index.php at line 92
    Issue Details
    Issue Number 3176
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Beta 2
    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)




    1. July 8, 2013 10:05 PM
      pegasus pegasus is offline
      VaultWiki Team
      This occurs only in areas where HTML is allowed in pages. In vault/core/view/ui/edit/page/vw.php, find:
      Code:
      $htmloption = vw_Hard_Core::view('Editor')->htmlstate($edit['htmlstate']);
      Replace with:
      Code:
      $htmloption = vw_Hard_Core::view('Editor')->htmlstate(!empty($edit['htmlstate']) ? $edit['htmlstate'] : '');
      Reply Reply  
    2. July 8, 2013 10:12 PM
      rizwank rizwank is offline
      New Member
      Now we have

      Code:
      An exception occurred: Undefined index: 6 in /var/www/html/forum/vault/core/view/ui/create/page/vw.php on line 152
      
      XenForo_Application::handlePhpError() in /var/www/html/forum/vault/core/view/ui/create/page/vw.php at line 152
      vw_UI_Create_Page_View->typelist_field() in /var/www/html/forum/vault/core/view/ui/edit/page/vw.php at line 93
      vw_UI_Edit_Page_View->get_fields() in /var/www/html/forum/vault/core/view/ui/edit/vw.php at line 89
      vw_UI_Edit_View->edit() in /var/www/html/forum/vault/core/controller/ui/edit/vw.php at line 596
      vw_UI_Edit_Controller->edit() in /var/www/html/forum/vault/core/controller/ui/create/vw.php at line 116
      vw_UI_Create_Controller->create() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 89
      vw_UI_Area_Controller->create() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 48
      vw_UI_Area_Controller->execute() in /var/www/html/forum/vault/core/controller/ui/stack/vw.php at line 129
      vw_UI_Stack_Controller->execute() in /var/www/html/forum/wiki_index.php at line 92
      Reply Reply  
    3. July 8, 2013 10:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/core/view/ui/create/page/vw.php, find:
      Code:
      				$typeoptions .= "<li><label><input class=\"vw-typelist-option\" type=\"checkbox\" name=\"typelist[$typeid]\" value=\"1\" " . $typechecked["$typeid"] . " tabindex=\"1\" /> ";
      Replace with:
      Code:
      				$typeoptions .= "<li><label><input class=\"vw-typelist-option\" type=\"checkbox\" name=\"typelist[$typeid]\" value=\"1\" ";
      
      				if (!empty($typechecked["$typeid"]))
      				{
      					$typeoptions .= $typechecked["$typeid"];
      				}
      
      				$typeoptions .= " tabindex=\"1\" /> ";
      Reply Reply  
    4. July 8, 2013 10:33 PM
      rizwank rizwank is offline
      New Member
      Those are both escaped to read \"1\"
      Reply Reply  
    5. July 8, 2013 10:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      Refresh please.
      Reply Reply  
    6. July 8, 2013 10:44 PM
      rizwank rizwank is offline
      New Member
      Fixed the create page.

      Trying to save a page :
      Code:
      An exception occurred: Undefined index: title in /var/www/html/forum/vault/core/controller/ui/edit/vw.php on line 432
      (when title is empty)
      Code:
      XenForo_Application::handlePhpError() in /var/www/html/forum/vault/core/controller/ui/edit/vw.php at line 432
      vw_UI_Edit_Controller->prepare_title() in /var/www/html/forum/vault/core/controller/ui/edit/vw.php at line 95
      vw_UI_Edit_Controller->save() in /var/www/html/forum/vault/core/controller/ui/create/vw.php at line 189
      vw_UI_Create_Controller->publish() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 96
      vw_UI_Area_Controller->publish() in /var/www/html/forum/vault/core/controller/ui/area/vw.php at line 37
      vw_UI_Area_Controller->execute() in /var/www/html/forum/vault/core/controller/ui/stack/vw.php at line 129
      vw_UI_Stack_Controller->execute() in /var/www/html/forum/wiki_index.php at line 92
      Reply Reply  
    7. July 8, 2013 10:48 PM
      pegasus pegasus is offline
      VaultWiki Team
      FYI the title is a required field anyway, but of course this needs to be fixed. You can create a page successfully when the title is entered?
      Reply Reply  
    8. July 8, 2013 10:56 PM
      rizwank rizwank is offline
      New Member
      Yep.
      Reply Reply  
    9. July 9, 2013 11:43 AM
      pegasus pegasus is offline
      VaultWiki Team
      Okay, the error when omitting the title field for a new page is now fixed under XenForo in the next release.
      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 6:22 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.