• 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
    • XF 2.2 home page issue

    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: XF 2.2 home page issue

    • Issue Tools
      • View Changes
    1. issueid=6098 October 7, 2020 4:15 AM
      expanserpb expanserpb is offline
      Junior Member
      XF 2.2 home page issue

      - Installed XF2.2 onto test site
      - Uploaded new VW package and upgraded
      - All works
      - Changed website name to test domain in vaultwiki
      - Home page now broken with "An error occurred while the page was being generated. Please try again later."
      - Disabling Vaultwiki fixes issue
      - No logs in Xenforo/NGINX/PHP to diagnose issue
    Issue Details
    Issue Number 6098
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Unknown
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0
    Fixed Version (none)
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. October 7, 2020 5:30 PM
      pegasus pegasus is offline
      VaultWiki Team
      In the absence of an error log, this is likely occurring because the page is rerouting too many times.

      If this is a new test site, make sure that PHP is receiving the correct value in $_SERVER['HTTP_HOST'].
      If it's receiving the wrong domain, then your test wiki will think it's actually the live wiki and will try to redirect away from it endlessly. Resolving this would require you to fix your server configuration.

      Example test.php:
      Code:
      <?php
      echo $_SERVER['HTTP_HOST'];
      exit;
      If there is no problem there, please open a ticket for this. I would need to probe the data manually to see what values are causing an endless loop.
      Reply Reply  
    2. October 8, 2020 6:54 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed in the next release. This occurs when $_SERVER['SCRIPT_NAME'] contains an incorrect value. XenForo was able to workaround this problem in src/XF/Http/Request.php:
      Code:
      		// Otherwise, the SCRIPT_NAME is wrong and likely has extra stuff prepended. See if we can find the request
      		// URI in the base URL. If so, ignore what comes before it.
      However, XenForo's solution resulted in a function that VaultWiki expected to return a directory path, to return a file path instead. This lead to an infinite redirect due to not being the expected path.

      Ideally, the server configuration should fill $_SERVER['SCRIPT_NAME'] correctly. An incorrect value here may still cause issues in other aspects of your software. If you look at your test.php which has been updated, you will see that it only prints your HTTP_HOST, when the result should be /test.php.
      Reply Reply  
    3. October 9, 2020 6:57 AM
      expanserpb expanserpb is offline
      Junior Member
      Is this something I can manually fix again if I do the real migration before 4.1.1?

      Is there an underlying issue in server config I need to fix?

      Appreciate your help on this!
      Reply Reply  
    4. October 9, 2020 8:01 AM
      pegasus pegasus is offline
      VaultWiki Team
      On your test server, there is an underlying issue in the server config. I don't know if the same issue exists on your live server. Probably not, if you are already running any version of VaultWiki without problems.

      On your test server, the PHP environment parameter SCRIPT_NAME is being set by your configuration to contain the current host name. But it should contain the path to the current script, relative to the document root for the current host name. So if your host's files are in /home/acct/host, and the current PHP file is /home/acct/host/path/test.php, then SCRIPT_NAME should be /path/test.php.
      Reply Reply  
    5. October 12, 2020 12:05 PM
      expanserpb expanserpb is offline
      Junior Member
      Found it I think. a reference to .net when the test site is on a .com domain
      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 10:41 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.