Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Aiheen aloitti: cnewman - kesäkuu 02, 2006, 12:34:43 AP

Otsikko: Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI
Kirjoitti: cnewman - kesäkuu 02, 2006, 12:34:43 AP
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
Otsikko: Re: Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI
Kirjoitti: Orstio - kesäkuu 02, 2006, 06:37:31 AP
What version of PHP do you have?
Otsikko: Re: Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI
Kirjoitti: cnewman - kesäkuu 02, 2006, 05:46:35 IP
I am runnign PHP 5.1.4.

Could this be causing the prob?
Otsikko: Re: Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI
Kirjoitti: Orstio - kesäkuu 02, 2006, 08:03:05 IP
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.

Otsikko: Re: Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI
Kirjoitti: cnewman - kesäkuu 03, 2006, 08:07:49 AP
OK Ta, I will give it a go.