I working with cakephp. In all pages, there is this warning:
Warning (2): strtolower() expects parameter 1 to be string, array given [CORE/src/Controller/Component/AuthComponent.php, line 337]
In line 337:
protected function _isAllowed(Controller $controller)
{
$action = strtolower($controller->request->params['action']);
return in_array($action, array_map('strtolower', $this->allowedActions));
}
How to solve this problem?
strtolower
line withvar_dump($controller->request->params['action']);exit;
Also tell us what you're trying to do. – BeetleJuice$this->allowedActions
contain a subarray. Please consider editing your question adding the debug of$this->allowedActions
– arilia