Shape 5

Joomla Templates => Life Journey - Club => : dambuster May 16, 2011, 06:44:18 AM



: PHP Error
: dambuster May 16, 2011, 06:44:18 AM
Hi All,

New here and just downloaded and instelled that great looking church template.

So far very happy and all OK except for

PHP Notice: Undefined index: REQUEST_URI in ..\templates\life_journey\libs\general_functions.php on line 58

Any help/advice on how to get rid of this?

Running on IIS6, PHP 5.2.8, MYSQL 5.1.56

Thanks :)


: Re: PHP Error
: mikek May 16, 2011, 08:45:12 AM
Hello,

Can you please post a url to where this occurs?


: Re: PHP Error
: dambuster May 17, 2011, 03:06:34 AM
Thanks fo thq quick reply :)

The problem occurs here: http://www.nacukie.org/1/index.php but dissapears when I use a default template so seems to be a problem specific to this Shape5 one?


: Re: PHP Error
: mikek May 17, 2011, 07:36:20 AM
Hello,

REQUEST_URI is actually a built in php server call. Your server php installation may be incomplete. Either way that part of the code is not needed on your site because of it's layout. If you edit the following file:

templates\life_journey\libs\general_functions.php

Then search for this:

$s5_domain = $_SERVER['HTTP_HOST'];
$s5_url = "http://" . $s5_domain . $_SERVER['REQUEST_URI'];

And delete it.