• 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: path, VW kicking users

    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: path, VW kicking users

    • Issue Tools
      • View Changes
    1. issueid=4767 November 2, 2016 7:48 PM
      Misprints Misprints is offline
      New Member
      Undefined index: path, VW kicking users

      Hello!

      Since the newest upgrade, I've been getting these server errors:
      Code:
      ErrorException: Undefined index: path - library/vw/XenForo/Route/Prefix/vw.php:67
      Stack Trace
      
      #0 /home/thelow8/public_html/library/vw/XenForo/Route/Prefix/vw.php(67): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/thelow8/p...', 67, Array)
      #1 /home/thelow8/public_html/library/XenForo/Router.php(72): vw_XenForo_Route_Prefix_vw->match('index', Object(Zend_Controller_Request_Http), Object(XenForo_Router))
      #2 /home/thelow8/public_html/library/XenForo/Dependencies/Abstract.php(107): XenForo_Router->match(Object(Zend_Controller_Request_Http), NULL)
      #3 /home/thelow8/public_html/library/XenForo/FrontController.php(289): XenForo_Dependencies_Abstract->route(Object(Zend_Controller_Request_Http), NULL)
      #4 /home/thelow8/public_html/library/XenForo/FrontController.php(130): XenForo_FrontController->route()
      #5 /home/thelow8/public_html/index.php(13): XenForo_FrontController->run()
      #6 {main}
      
      Request State
      
      array(3) {
        ["url"] => string(40) "http://thelowerworld.com/index.php?id=15"
        ["_GET"] => array(1) {
          ["id"] => string(2) "15"
        }
        ["_POST"] => array(0) {
        }
      }
      Code:
      ErrorException: Undefined index: path - library/vw/XenForo/Route/Prefix/vw.php:69
      Stack Trace
      
      #0 /home/thelow8/public_html/library/vw/XenForo/Route/Prefix/vw.php(69): XenForo_Application::handlePhpError(8, 'Undefined index...', '/home/thelow8/p...', 69, Array)
      #1 /home/thelow8/public_html/library/XenForo/Router.php(72): vw_XenForo_Route_Prefix_vw->match('index', Object(Zend_Controller_Request_Http), Object(XenForo_Router))
      #2 /home/thelow8/public_html/library/XenForo/Dependencies/Abstract.php(107): XenForo_Router->match(Object(Zend_Controller_Request_Http), NULL)
      #3 /home/thelow8/public_html/library/XenForo/FrontController.php(289): XenForo_Dependencies_Abstract->route(Object(Zend_Controller_Request_Http), NULL)
      #4 /home/thelow8/public_html/library/XenForo/FrontController.php(130): XenForo_FrontController->route()
      #5 /home/thelow8/public_html/index.php(13): XenForo_FrontController->run()
      #6 {main}
      
      Request State
      
      array(3) {
        ["url"] => string(40) "http://thelowerworld.com/index.php?id=15"
        ["_GET"] => array(1) {
          ["id"] => string(2) "15"
        }
        ["_POST"] => array(0) {
        }
      }
      Some users have also been logged out of their accounts while accessing the wiki. They have told me that they have enabled cookies as is prompted in the message that comes up, but that this has not resolved the problem.
    Issue Details
    Issue Number 4767
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category URLs / Routing
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 4.0.14
    Fixed Version 4.1.1
    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. November 3, 2016 9:22 AM
      pegasus pegasus is offline
      VaultWiki Team
      In library/vw/Route/Prefix/vw.php, find:
      Code:
      if (vw_Hard_Core::model('URL')->paths_equal($base_path['path'], $requestUri))
      Before it, add:
      Code:
      					if (empty($base_path['path']))
      					{
      						$base_path['path'] = '';
      					}
      These errors occur when the wiki is located on a separate (sub)domain from the forum and the wiki path name is blank. If you did not intend for the wiki to be on a separate subdomain, please check your settings in AdminCP > Home > Options > VaultWiki: Site Config > Wiki Base URL.

      If the subdomain difference is intended, see below:

      Regarding users getting logged out, this is normal if the wiki is not on the same domain that the user logged in on, due to browser security (sometimes even www.mysite vs mysite). In order to avoid this issue:
      • If the wiki and forum are subdomains of the same domain, then you should reduce the strictness of your cookie domain in library/config.php:
        Code:
        $config['cookie'] = array(
        'path' => '/',
        'domain' => 'mysite.com'
        );
      • If the wiki is on a separate domain entirely, at the current time, you would need to use a multi-site add-on such as XenCentral, which should allow you to manage logins for multiple sites that use the same user database. We are not affiliated with XenCentral, but it is the only add-on I know offhand that provides cross-domain logins at this time. However, I agree that VaultWiki should provide the multi-site login itself if the wiki is configured on a separate domain from the forum, and this issue should be fixed. So I do not recommend paying for XenCentral if you are not using it already, or you have no need of its other features.
      Reply Reply
    2. November 3, 2016 6:10 PM
      Misprints Misprints is offline
      New Member
      Thank you so much! That seems to have solved the server issues -- and the log-in issues, from what I see. I'll ask the members if they're still being kicked and update within a day or two.
      Reply Reply
    3. October 9, 2020 6:31 AM
      pegasus pegasus is offline
      VaultWiki Team
      Closing this as fixed in the next release. In 4.1.1, if the wiki is configured to a different domain than the forum, cookies will be replicated for the opposite domain wherever feasible, in order to preserve the user's logged in state and preferences.

      Please note that in XenForo 2, if this scenario is active, certain actions that were once instant refresh now have an intermediate redirect screen. This is because cookies cannot be reliably copied outside of the request where the original cookie was set (the redirect request vs a subsequent request), and because cookies for another domain can only be set by actually loading content from the other domain in the browser.
      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: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.