Can anyone help with this
Notice: Undefined index: REMOTE_HOST in /var/www/vhosts/gyweather.com/httpdocs/Settings.php on line 35
Notice: Undefined index: SCRIPT_URI in /var/www/vhosts/gyweather.com/httpdocs/include-style-switcher.php on line 313
Notice: Undefined index: SCRIPT_URI in /var/www/vhosts/gyweather.com/httpdocs/include-style-switcher.php on line 315
Notice: Undefined index: SCRIPT_URI in /var/www/vhosts/gyweather.com/httpdocs/include-style-switcher.php on line 313
Notice: Undefined index: SCRIPT_URI in /var/www/vhosts/gyweather.com/httpdocs/include-style-switcher.php on line 315
Notice: Use of undefined constant NAME - assumed ‘NAME’ in /var/www/vhosts/gyweather.com/httpdocs/flyout-menu.php on line 431
Have not changed anything on my site for weeks but these errors show up when i log on sometimes but not always!!!
Thanks
ktrue
July 19, 2010, 6:18pm
2
Methinks your hoster has updated your site to PHP5 recently.
I’d put
error_reporting = E_ALL & ~E_NOTICE
in a php.ini file in your document root directory to suppress the notice messages for items your hoster is not returning like
$_SERVER[‘REMOTE_HOST’] and $_SERVER[‘SCRIPT_URI’]
Best regards,
Ken
thanks once again Ken
Have tried your suggestion but still the same problem
regards
Tony
ktrue
July 19, 2010, 6:48pm
4
Then try on a new line right after the starting <?php at the top of your Settings.php
error_reporting(E_ALL ^ E_NOTICE);
Best regards,
Ken
Ken
Received this from my host
This was displayed because the logging verbosity was
increased server wide to diagnose certain performance issues.
We have reverted the change now and you will no longer see the warning
messages.
Let us know if you require anything else.
Regards,
Vincent
Technical Support
Lowesthosting.com
Now fixed, thanks once again Ken for your kind help and patience
Tony
ktrue
July 19, 2010, 9:08pm
6
Hi Tony,
You’re very welcome
I love it when the server admins mess about with the settings for ‘diagnostic purposes’ without letting the customers know. :roll: #-o
Glad it’s sorted out now.
Best regards,
Ken