MyBB Community Forums

Full Version: [F] Archive mode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A user over here has a problem with the archive mode. The links do not work: http://www.kartinfos-forum.de/archive/index.php

If you need the PHP info please send me a short PM.
Maybe running the following as url.com/test.php/forum-2.html will help:
<?php

echo 'Request URI: ' . $_SERVER['REQUEST_URI'] . '<br />';
echo 'PHP Self: ' . $_SERVER['PHP_SELF'] . '<br />';
echo 'Path Info: ' . $_SERVER['PATH_INFO'] . '<br />';
echo 'Redirect URL: ' . $_SERVER['REDIRECT_URL']. '<br />';

?>

Post the output please if possible.
Here it is:
Quote:Request URI: /test.php/forum-2.html
PHP Self: /test.php
Path Info:
Redirect URL:
Open archive/global.php and find:
	if($_SERVER['REDIRECT_URL'])
	{
		$url = $_SERVER['REDIRECT_URL'];
	}

Replace with:
	if ($_SERVER['REQUEST_URI'])
	{
		$url = $_SERVER['REQUEST_URI'];
	}
	elseif($_SERVER['REDIRECT_URL'])
	{
		$url = $_SERVER['REDIRECT_URL'];
	}
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.