• 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
    • undefined index: prefixid

    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: undefined index: prefixid

    • Issue Tools
      • View Changes
    1. issueid=4704 August 20, 2016 6:38 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      undefined index: prefixid

      Code:
      ErrorException: Undefined index: prefixid - vault/core/view/content/page/vw.php:658 
      Generated By: Alfa, A moment ago
      
      Stack Trace
      #0 /vault/core/view/content/page/vw.php(658): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/...', 658, Array)
      #1 /vault/core/view/content/page/vw.php(94): vw_Content_Page_View->process_categories(Array)
      #2 /vault/core/view/factory/content/vw.php(91): vw_Content_Page_View->unwrapped(Array, NULL)
      #3 /vault/core/view/factory/content/versioned/vw.php(22): vw_Factory_Content_View->get_content(Array, NULL)
      #4 /vault/core/view/ui/page/vw.php(46): vw_Factory_Content_Versioned_View->make(Array, NULL)
      #5 /vault/core/controller/ui/page/vw.php(789): vw_UI_Page_View->view(Object(vw_UI_Page_Controller_XF))
      #6 /vault/core/controller/ui/stack/vw.php(313): vw_UI_Page_Controller->view()
      #7 /vault/core/controller/ui/stack/vw.php(245): vw_UI_Stack_Controller->view()
      #8 /library/vw/XenForo/ControllerPublic/Wiki.php(68): vw_UI_Stack_Controller->execute()
      #9 /library/XenForo/FrontController.php(351): vw_XenForo_ControllerPublic_Wiki->actionIndex()
      #10 /library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
      #11 /index.php(13): XenForo_FrontController->run()
      #12 {main}
      Request State
      array(3) {
        ["url"] => string(58) "https://site.com/wiki/Aldous-Huxley"
        ["_GET"] => array(0) {
        }
        ["_POST"] => array(0) {
        }
      }
    Issue Details
    Issue Number 4704
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Editing Pages
    Status Fixed
    Priority 4 - Warnings / Script Errors
    Affected Version 4.0.13
    Fixed Version 4.0.14
    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. August 21, 2016 10:51 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      Wiki content cannot be viewed due to this error.
      Reply Reply
    2. August 21, 2016 10:52 AM
      pegasus pegasus is offline
      VaultWiki Team
      This error will not prevent viewing the wiki content. It is an E_NOTICE error. You must have debug mode turned on. Since debug mode halts page execution, it can cause data to be saved in an incomplete form and create more unusual errors, such as the one you see now. You should only use debug mode in development.

      The only way for this to occur is if one of the categories attached to this page has no revision history for its category-page. This is not normal. It would be impossible to access that category now. If you edit this page, you will probably see a strange category attached to it called "Wiki", which should be removed.

      Was this category created and/or added to the page in a recent version? Do you remember what you were doing that achieved the broken category?

      It is possible that it was created in an earlier version if you created the category or purged its current revision while XenForo's debug mode was turned on and encountered an E_NOTICE or other low-level error during creation. If the original E_NOTICE was resolved, then this report is really a duplicate. The error here is a side effect of maintaining the garbage category that was created.

      Since the category has no name data, finding it can be tricky. If you rebuild URLs via the wiki's Maintenance tools, you might then be able to find and remove the category in URL Conflicts (it would probably be a collision with "Wiki").
      Reply Reply
    3. August 21, 2016 10:55 AM
      Alfa1 Alfa1 is offline
      Distinguished Member
      This happens on all wiki pages. No new content was added. This issue occurred after upgrade to 4.0.13
      Reply Reply
    4. August 21, 2016 11:41 AM
      pegasus pegasus is offline
      VaultWiki Team
      When you view the page, does it have a category named "Wiki" or not?
      Reply Reply
    5. August 21, 2016 12:00 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      I see 'wiki' in the breadcrumb.
      I have discovered that this error doesnt occur on all pages. Articles within the same category dont have it.
      Reply Reply
    6. August 21, 2016 12:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      The breadcrumb points to the main wiki tab in the navbar. I am also not sure if you are thinking of "areas" when I say "categories." The stack trace suggests:

      This error occurs when generating the list of categories for a wiki page, in the box that appears at the bottom of the wiki page. The box has a label "Categories". The error occurs because at least one of the categories in this box has no revision data (has no edits, has no title, etc) so it cannot be displayed properly. The problematic category would appear in this box with the name "Wiki" (which is obviously incorrect).

      If this is not the behavior that occurs, then your line 658 might be different from mine.
      Reply Reply
    7. August 21, 2016 1:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      It is also possible for this to occur if the category in question was deleted, but for some reason (possibly another instance of debug mode damage), the page still thinks it is in the category. However, in this case, I would expect a lot more undefined index errors for the same page load than what was reported here.

      In vault/core/view/content/page/vw.php, find:
      Code:
      if (!vw_Hard_Core::model('UI/Tab/Category')->check('can_list_tab', $category))
      Replace with:
      Code:
      if (!$category OR !vw_Hard_Core::model('UI/Tab/Category')->check('can_list_tab', $category))
      Reply Reply
    8. August 21, 2016 5:16 PM
      Alfa1 Alfa1 is offline
      Distinguished Member
      That fixed it.
      Reply Reply
    9. August 21, 2016 7:41 PM
      pegasus pegasus is offline
      VaultWiki Team
      This change will be included in the next release. It will only prevent categories that were not fully removed from the database from appearing in a member-page's category box (and throwing this E_NOTICE).

      The change will not affect corrupt categories that exist but have no revision data. The best way to handle corrupt data is to remove it.

      Marking this as fixed.
      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 11:36 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.