On 11/6/2015 at 12:00 AM, PauloKruz said:Same issue happens with my store (1.6.1.2)
Problem exist with some servers configuration.
I can solve my problem changed in class/tools.php (don´t forget override ) function getRemoteAddr()
I change last else server variable:
Remove :
return $_SERVER['REMOTE_ADDR'];
and put:
return $_SERVER['HTTP_X_REAL_IP'];
OBS: you can check what best var is for your server configuration, running in one php file the follow code : print_r($_SERVER);
If I do this, it will break my Store (Multishop). The result is HTTP Error 500. After deleting /cache/class_index.php it comes back online.
Though even after applying this fix, the behaviour is the same as before:
One shop doesn't want to go into maintenance mode.
One shop won't whitelist certain IP's.
Version: Prestashop 1.6.1.22