hey drB,
i have a v1.5.5 install and i'm seeing this same error. not all the time, just ran into it twice the other day.
it is my understanding the browser could be behind a proxy server. and some code similar to this might help (obviously changed to the ZC section in functions_lookup):
Code:
<?php
if(! empty($_SERVER['REMOTE_ADDR']) ){
$ip = $_SERVER['REMOTE_ADDR'];
}
else{
$ip = empty($_SERVER['HTTP_X_FORWARDED_FOR']) ? '' : $_SERVER['HTTP_X_FORWARDED_FOR'];
}
in addition, it seems a bit odd to be checking the IP address against the exclude admin address list even IF the site is NOT down for maintenance. or perhaps that is just me.
Bookmarks