Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Error with SMF-Mambo Bridge. 8: Undefined index: REQUEST_URI

Aloittaja cnewman, kesäkuu 02, 2006, 12:34:43 AP

« edellinen - seuraava »

cnewman

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


cnewman


Orstio

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.


cnewman


Advertisement: