Hi,
I have a custom fire theme from RocketTheme.
I have setup the SMF Bridge. It all works fine with the default Mambo Theme. When I use the rocket theme and try to view the forum or view my messages I get this error:
8: Undefined index: REQUEST_URI
File: D:\Inetpub\wwwroot\mambo\templates\rt_fire\rt_supersucker.php
Line: 168
If i view the rt_supersucker.php file @ line 168 it has this code
(sefRelToAbs( substr($_SERVER['PHP_SELF'],0,-9) . $row->link)) == $_SERVER['REQUEST_URI'] ||
And this code is above and below it
$li = "\n".$indents[$n][1] ;
$current_itemid = trim( mosGetParam( $_REQUEST, 'Itemid', 0 ) );
if ($row->link != "seperator" &&
$current_itemid == $row->id ||
$row->id == $highlight ||
(sefRelToAbs( substr($_SERVER['PHP_SELF'],0,-9) . $row->link)) == $_SERVER['REQUEST_URI'] ||
(sefRelToAbs( substr($_SERVER['PHP_SELF'],0,-9) . $row->link)) == $HTTP_SERVER_VARS['REQUEST_URI']) {
$li = "<li class=\"on\">";
}
echo $li;
Does anyone know what would cause this
Thanks
What version of PHP do you have?
I am runnign PHP 5.1.4.
Could this be causing the prob?
You can probably delete this part:
||
(sefRelToAbs( substr($_SERVER['PHP_SELF'],0,-9) . $row->link)) == $HTTP_SERVER_VARS['REQUEST_URI'])
$HTTP_SERVER_VARS was deprecated in PHP 4.1.0, so that code should only be used in older versions of PHP.
OK Ta, I will give it a go.