i try do a copy of my site on my localhost, i change de database config and change the 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

can anybody help me?

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.

i look the console and redirect itself, always redirect to login, could a bad xampp configuration or htacces maybe?

this is my htacces app

RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]

this is my htacces app/webroot

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

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…

Are you using the Auth component, or the new Authentication plugin?

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’;

	$admiEjercicio = $this->AdmiEjercicio->find('list', [
		'fields' => [
			'', 'AdmiEjercicio.anio'
		'order' => [ 'AdmiEjercicio.anio' => 'Asc' ],
		'recursive' => -1

	foreach ($admiEjercicio as $key => $value) {
		$admiEjercicios[$key] = 'AÑO '.$value;

	$actually = $this->AdmiEjercicio->find('first', [
		'fields' => [
		'limit' => 1,
		'order' => [ 'AdmiEjercicio.anio' => 'Desc' ],
		'recursive' => -1

	$actual = !empty($actually) ? $actually['AdmiEjercicio']['id'] : [];

    if ($this->request->is('post')) {
    	$result = $this->User->find('first', [
 			'conditions' => [
 				'User.username' => $this->request->data['User']['username'],
 				'User.sist_estatuse_id' => $this->requestAction('sist_estatuses/get_id/ACTIVO'),

 				'OR' => [
					[ 'User.sist_niveleusuario_id' => 1 ],
					[ 'User.sist_niveleusuario_id' => 2 ]

 				'NOT' => [
 					'User.sist_estatuse_id' => $this->requestAction('sist_estatuses/get_id/ELIMINADO')

 		if( !empty($result) ){
            if ($this->Auth->login()) {
            	$ejercicio = $this->AdmiEjercicio->find('first', [
            		'conditions' => [
            			'' => $this->request->data['User']['admi_ejercicio_id']
            		'recursive' => -1
            	$this->Session->write('ejercicio', $ejercicio);
            	$this->set('logged_in', $this->Auth->loggedIn());
                $this->set('current_user', $this->Auth->user());
                //$this->Session->setFlash(__('Bienvenido, '. $this->Auth->user('username')), 'msj', ['type' => 'success']);
            } else {
                $this->Session->setFlash(__('Usuario o clave invalida!'), 'msj', ['type' => 'error']);
    		$this->Session->setFlash(__('¡Usuario no admitido!'),'msj', array('type' => 'error'));

    $this->set(compact('admiEjercicios', 'actual'));

I change all my code for a echo ‘hola’ and continue redirect to many times i think that could be for configuration