J'ai essayé avec :
$ip=$_SERVER['REMOTE_ADDR'];
echo "IP address= $ip";
et voici le résultat :
IP address= 10.0.20.16Forbidden
Ce qui n'est pas mon IP...
J'ai ajouté 10.0.20.16 à la liste des allowed IP et j'ai maintenant ce message BO et FO
InvalidArgumentException in RegisterHookListenersPass.php line 69: Hook hook_home_stats is unknown.
in RegisterHookListenersPass.php line 69
at RegisterHookListenersPass->logAlertMessage('Hook hook_home_stats is unknown.') in RegisterHookListenersPass.php line 344
at RegisterHookListenersPass->getHook('hook_home_stats', '2') in RegisterHookListenersPass.php line 122
at RegisterHookListenersPass->registerHook('Statistic\Hook\AdminHomeHook', object(Module), 'statistic.hook.admin.home', array('event' => 'hook_home_stats', 'type' => '2', 'method' => 'onMainHomeAdmin', 'active' => true, 'templates' => '')) in RegisterHookListenersPass.php line 93
at RegisterHookListenersPass->processHook(object(TheliaContainerBuilder), object(Definition)) in RegisterHookListenersPass.php line 60
at RegisterHookListenersPass->process(object(TheliaContainerBuilder)) in Compiler.php line 107
at Compiler->compile(object(TheliaContainerBuilder)) in ContainerBuilder.php line 589
at ContainerBuilder->compile() in TheliaContainerBuilder.php line 32
at TheliaContainerBuilder->customCompile() in Thelia.php line 518
at Thelia->buildContainer() in Kernel.php line 510
at Kernel->initializeContainer() in Kernel.php line 133
at Kernel->boot() in Thelia.php line 237
at Thelia->boot() in Kernel.php line 182
at Kernel->handle(object(Request)) in index_dev.php line 42
C'est louche !