![]() |
How to supress errors in config.php except for a specific ip
I'd like to do some troubleshooting on a live 4.2.2 site. It currently has this in the config.php:
Code:
define('SKIP_ALL_ERRORS', true); Code:
if ($_SERVER['REMOTE_ADDR'] != 'xxx.xxx.xx.xx') { define('SKIP_ALL_ERRORS', true); } |
Lets try this:
Code:
$my_unique_ip="XXX.XXX.XX.X"; // Change this IP to your Unique IP. |
Either one of those should work.
What errors are you getting? Remember, you're allowing errors to be shown to YOU when you do what you're doing. So yes... all sorts of errors can appear. |
Quote:
Code:
if ($_SERVER['REMOTE_ADDR'] != 'xxx.xxx.xx.xx') define('SKIP_ALL_ERRORS', true); Thanks. |
Excellent, glad to hear. :)
|
All times are GMT. The time now is 11:16 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|