Magento admin login no funciona en chrome pero funciona bien para firefox


Solo soy un novato en el magento. He instalado magento en mi localhost. Después de toda la configuración cuando utilicé la página de administración para iniciar sesión, no puedo iniciar sesión en el navegador Chrome, incluso con mi nombre de usuario y contraseña correctos. Pero cuando estoy tratando de iniciar sesión en Firefox no hay ningún problema. ¿Puede alguien realmente ayudarme a resolver el problema?

Author: NewUser, 2013-03-19

15 answers

Creo que existe el problema con session cookie con el navegador chrome. Así que sólo tienes que ir a través de este directorio /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php archivo y comentar la línea de 85 a 92 en magento (1.7.2 para mi caso). Así

    // session cookie params
   /* $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath(),
        'domain'   => $cookie->getConfigDomain(),
        'secure'   => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()
    );
  */

Después de eso intenta hacer login desde tu backend. Espero que puedas hacer login con chrome. Esto definitivamente te ayudará. Si todavía se enfrenta al problema, entonces solo respóndame.

 86
Author: NewUser,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-07-12 05:29:36

Intente usar 127.0.0.1 cuando configure magento en localhost. También he encontrado el mismo problema, esa es la solución a han hecho y funciona bien.

 18
Author: khatz0406,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2013-03-19 05:16:27

Desde System -> Configuration -> General -> Web, establezca una URL Base Insegura y Segura con Dirección IP. E intenta iniciar sesión de nuevo.

 5
Author: Emipro Technologies Pvt. Ltd.,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-09-08 06:13:29

VAYA al archivo en esta ubicación :- app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

Y comentando lo siguiente (son las líneas 85 a 102);

// session cookie params
$cookieParams = array(
    'lifetime' => $cookie->getLifetime(),
    'path'     => $cookie->getPath()//,
    //'domain'   => $cookie->getConfigDomain(),
    //'secure'   => $cookie->isSecure(),
    //'httponly' => $cookie->getHttponly()
);

//if (!$cookieParams['httponly']) {
//    unset($cookieParams['httponly']);
//    if (!$cookieParams['secure']) {
//        unset($cookieParams['secure']);
//        if (!$cookieParams['domain']) {
//            unset($cookieParams['domain']);
//        }
//    }
//}

Y utilice sus credenciales para iniciar sesión. Espero que funcione para usted!!!

 4
Author: jiten,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-26 10:58:35

Cuando sucede conmigo, el problema fue porque hago un movimiento de directorio pero el .Los archivos HTACCESS del contenido principal no se movieron a la nueva ruta.

Compruebe si su .el archivo htaccess está en el contenido principal.

 1
Author: Rafael,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-03-03 20:00:27

Simplemente aplica el comentario aquí... ubicación del archivo: \ app \ code \ core \ Mage \ Core \ Model \ Session \ Abstract \ Varien.php

/*
// session cookie params
    $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath(),
        'domain'   => $cookie->getConfigDomain(),
        'secure'   => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()
    );
  */
 0
Author: Jaydip Patel,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-02-25 11:39:02

Inicie sesión como administrador con Internet explorer u otro broswer. limpia todos los cachés.. Y usted será capaz de iniciar sesión con chrome . Puede iniciar sesión sin tener que modificar ningún código

 0
Author: Rashid Hussain,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-10-09 22:15:36

Si está utilizando Magento 1.9, el archivo debe ser ligeramente diferente: / app / code/core/Mage/Core/Model/Session/Abstract / Varien.php

 $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath()/*,
        'domain'   => $cookie->getConfigDomain(),
        'secure'   => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()*/
    );

    /*if (!$cookieParams['httponly']) {
        unset($cookieParams['httponly']);
        if (!$cookieParams['secure']) {
            unset($cookieParams['secure']);
            if (!$cookieParams['domain']) {
                unset($cookieParams['domain']);
            }
        }
    }*/
 0
Author: gconcon,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2014-11-17 22:34:42

Magento ve cookie_domain en la tabla core_config_data cuando intenta iniciar sesión. Si es diferente de su dominio, no puede ingresar a su panel de administración, solo actualizar la página, no aparece ningún error.

Abra la tabla core_config_data de su base de datos y busque o filtre la columna path para web/cookie/cookie_domain y cámbiela a null o a su dominio.

 0
Author: fthopkins,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-13 08:54:36

También es importante que tenga una clave de formulario presente, de lo contrario su formulario no se procesará.

<?php echo $this->getBlockHtml('formkey'); ?>
 0
Author: Tahir Yasin,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-02-27 19:35:15

Esta es mi solución simple que me ayudó en la misma situación. Pruébalo durante 60 segundos de tu tiempo.

En Google Chrome, en Herramientas para desarrolladores (haga clic con el botón derecho en cualquier elemento de la página y seleccione Inspeccionar elemento), vaya a la pestaña Recursos- > Cookies. Elimina la cookie adicional para tu dominio original. O establezca su dominio de url base en otra cosa, o cambie el puerto.

 0
Author: user9714,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-05-12 13:26:17

Como señaló la respuesta aceptada, el problema radica en Chrome al acceder a Magento en un localhost. Envuelva el código en elapp/code/core/Mage/Core/Model/Session/Abstract/Varien.php con el siguiente fragmento de código, y la matriz de parámetros de sesión solo se restablecerá si está en localhost (IP'127.0.0.1' o '::1').

// SNIPPET Part 1: add this before the original array definition
// -----------------------------------------------------------

if(in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1'))) {
    $cookieParams = array();
} else {

    // here comes the original code, thats what you should
    // look for but not touch
    // -------------------------------------------------------

    // session cookie params
    $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path' => $cookie->getPath(),
        'domain' => $cookie->getConfigDomain(),
        'secure' => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()
    );

// SNIPPET Part 2: add the closing bracket
// ------------------------------------------

}
 0
Author: Larzan,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2015-08-14 07:59:07

Tengo Magento ver. 1.14.2.1

Variando.php no resolvió mi problema.

Introducir 127.0.0.1 en lugar de localhost en la URL de la base web de configuración del panel de control resolvió mi problema.

Todavía puedo ingresar localhost en la url y automáticamente la redirige a la url de formato ip.

 0
Author: Nickool,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-01-22 19:21:17

Para Magento 2

En lugar de localhost en su WAMP por favor use http://127.0.0.1

{carpeta ruta} \ magento2 \ vendor \ magento \ zendframework1 \ library \ Zend \ Session.php

Ir a & Comentar como se mencionó

 public static function rememberUntil($seconds = 0)
    {
        if (self::$_unitTestEnabled) {
            self::regenerateId();
            return;
        }

        $cookieParams = session_get_cookie_params();

        session_set_cookie_params(
            $seconds,
            //$cookieParams['path'],
            //$cookieParams['domain'],
            //$cookieParams['secure']
            );

        // normally "rememberMe()" represents a security context change, so should use new session id
        self::regenerateId();
    }
 0
Author: Ankit Shah,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-08-12 10:16:02

¿Tiene problemas de sesión/cookies con los navegadores webkit (por ejemplo, Chrome) en Magento? Ir a Sistema - > Configuración - > Web - > Gestión de cookies de sesión y establecer "Usar solo HTTP" a no. Diviértanse.

 -1
Author: Noman Mustafa Khan,
Warning: date(): Invalid date.timezone value 'Europe/Kyiv', we selected the timezone 'UTC' for now. in /var/www/agent_stack/data/www/ajaxhispano.com/template/agent.layouts/content.php on line 61
2016-02-03 20:51:21