: Nomoo & Suckerfish menus : garfield October 09, 2008, 12:59:06 PM Hello,
I've just installed the Eden Rock template on my site, but am getting errors of the following: Notice: Undefined index: REQUEST_URI in X:\XXXXXXX\wwwroot\templates\edenrock\s5_no_moo_menu.php on line 34 It's a windows host and i've read that there's a problem with the REQUEST_URI call on that platform, is there an alternative for those menus on the windows platform? Thanks! Chris : Re: Nomoo & Suckerfish menus : garfield October 09, 2008, 01:20:57 PM I've fixed the problem by adding
<?php if(!isset($_SERVER['REQUEST_URI'])) { if(isset($_SERVER['SCRIPT_NAME'])) $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; else $_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF']; if($_SERVER['QUERY_STRING']){ $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; } } ?> at the beginning of the php file for the menu. |