i try do a copy of my site on my localhost, i change de database config and change the session.save of my xampp and i obtain this error “Err_too_many_redirects”, when i load my web it redirect many times to login and always obtain a 302 in console
i did a trace and give me this result: #0 C:\xampp\htdocs\ubora\lib\Cake\Error\ErrorHandler.php(213): ErrorHandler::handleFatalError(64, ‘‘continue’ not …’, ‘C:\xampp\htdocs…’, 1852) #1 C:\xampp\htdocs\ubora\lib\Cake\Core\App.php(970): ErrorHandler::handleError(64, ‘‘continue’ not …’, ‘C:\xampp\htdocs…’, 1852, Array) #2 C:\xampp\htdocs\ubora\lib\Cake\Core\App.php(943): App::_checkFatalError() #3 [internal function]: App::shutdown() #4 {main}
i have cakephp 2.8 and this error only appear on my local server
i shlud chane any configuration in my cakephp i be new in this framework
Watch your requests happen in the network monitor of your browser’s developer console to find out what’s happening. Either it’s constantly redirecting to itself, or it’s bouncing between two pages. Knowing which of those situations is happening, and what URLs are involved, will help point to a solution.
So, login redirects to login redirects to login and so on until it errors? That would most likely be caused by not excluding the login from requiring authentication, so that when it tries to load it, it says “nope, you need to log in first”, and sends you to the login page…
i use Authcomponent, but if it was error code why only fail in my Local in the server is good
i load this route
Router::connect(’/login’, array(‘controller’ => ‘users’, ‘action’ => ‘login’));
and call this function
public function login() {
$this->layout = ‘login’;