• 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
    • Infinite loop with dbSEO

    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: Infinite loop with dbSEO

    • Issue Tools
      • View Changes
    1. issueid=3598 March 4, 2014 4:11 PM
      Replicators Replicators is offline
      Junior Member
      Infinite loop with dbSEO

      Everytime i go into the wiki, i get this message at the top...

      Code:
      Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 30720 bytes) in /home/*****/public_html/wiki_index.php on line 53
    Issue Details
    Issue Number 3598
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Infinite Loops
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 4.0.0 Gamma 3
    Fixed Version 4.0.0 Gamma 4
    Milestone VaultWiki 4 Gamma X
    Software DependencyvBulletin 4.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. March 4, 2014 4:14 PM
      pegasus pegasus is offline
      VaultWiki Team
      Your VW_DEFAULT_SCRIPT is wiki_index.php. This is not supposed to create an infinite loop, but looks like it is in your case. Set VW_DEFAULT_SCRIPT to forum.php instead if you're on vB4 or vbseo.php if you use vbseo.
      Reply Reply  
    2. March 4, 2014 4:20 PM
      Replicators Replicators is offline
      Junior Member
      It's a fresh install, it also seemed to screw up my website now to where no image shows, it's weird, and the website is running slower than what it was before i installed vaultwiki. I am using Dragonbyte SEO with it, and i am pretty confident i done it right.
      Reply Reply  
    3. March 4, 2014 4:23 PM
      Replicators Replicators is offline
      Junior Member
      No, i set the default script to...

      Code:
      define('VW_DEFAULT_SCRIPT', 'dbseo.php');
      Reply Reply  
    4. March 4, 2014 4:24 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you are using Dragonbyte SEO, it is possible the instructions are different than for a vBSEO install. Since the rewrite rules were the same we thought the install instructions were the same, but it is possible additional configuration needs to be done. If you cannot work it out, I will add a free install service to your account so we can set it up for you.
      Reply Reply  
    5. March 4, 2014 4:28 PM
      Replicators Replicators is offline
      Junior Member
      I wouldn't know how to solve the conflict, give me a couple minutes and i will apply to that service.
      Reply Reply  
    6. March 4, 2014 4:33 PM
      pegasus pegasus is offline
      VaultWiki Team
      You should now see the service in the Members tab.
      Reply Reply  
    7. March 4, 2014 5:06 PM
      Replicators Replicators is offline
      Junior Member
      I filled it out, if you need any information or w/e, just pm me or leave a comment here. Take as much time as you need also, i am in no rush or anything and hopefully it's a good test site for you to resolve this conflict for future use.
      Reply Reply  
    8. March 4, 2014 7:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed. Unlike vBSEO, dbSEO sends the request back to the calling script if it doesn't know how to handle it. Since VaultWiki hands the request to dbSEO, when it can't handle it, we can find ourselves in an infinite loop.

      wiki_index.php has been modified for the next release. If this particular loop is stepped into, VaultWiki will simply output the wiki index page.

      Ideally, though, dbSEO should also be updated so that it doesn't hand a request back to a file that's above it in the get_included_files stack. A proper fix by the dbSEO devs would be similar to the following. In dbseo.php, find:
      Code:
      		if (substr($fileType[1], 0, 2) == 'ph' OR $fileType[1] == 'php')
      		{
      			// This was a PHP file
      			require(getcwd() . '/' . $_fileName);
      		}
      		else
      		{
      			// Any other kind of file
      			echo file_get_contents(getcwd() . '/' . $_fileName);
      		}
      Replace with:
      Code:
      		$inc = get_included_files();
      		$_filePath = realpath(getcwd() . '/' . $_fileName);
      
      		if (!in_array($_filePath, $inc) AND file_exists($_filePath))
      		{
      			if (substr($fileType[1], 0, 2) == 'ph' OR $fileType[1] == 'php')
      			{
      				// This was a PHP file
      				require(getcwd() . '/' . $_fileName);
      			}
      			else
      			{
      				// Any other kind of file
      				echo file_get_contents(getcwd() . '/' . $_fileName);
      			}
      		}
      		else
      		{
      			DBSEO::handle404('', true);
      		}
      Reply Reply  
    9. March 4, 2014 8:16 PM
      Replicators Replicators is offline
      Junior Member
      I will forward this to the people at dragonbyte, and link them to this post.
      Reply Reply  
    10. March 5, 2014 4:52 PM
      Replicators Replicators is offline
      Junior Member
      They have updated dbseo to include your fix, so this issue should not be ran into again.
      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:25 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.