xcynthia90x Posted December 22, 2015 Share Posted December 22, 2015 Buenas,He montado una tienda prestashop de la versión 1.6.1.3 desde 0, sin actualizar y al intentar iniciar sesión me sale este mensaje:Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /furanet/sites/multiplicaliatest.com/web/htdocs/ecotienda/controllers/front/AuthController.php on line 364 No he tocado el archivo, y temiendo que estuviera corrupto he subido de nuevo sólo ese archivo pero sigue fallando. Es urgente, ayuda!! Gracias. Link to comment Share on other sites More sharing options...
Karinaandrea Posted December 23, 2015 Share Posted December 23, 2015 Hola xcynthia90x, Qué pone en la línea 364? Saludos Link to comment Share on other sites More sharing options...
dakota_spring Posted December 26, 2015 Share Posted December 26, 2015 Hola, la solución será upgreadear el PHP a la versión 5.4. Mira aquí: https://www.prestashop.com/forums/topic/481073-after-upgrade-1610-1612-unexpected-t-paamayim-nekudotayim-on-user-login/?hl=%2Bt_paamayim_nekudotayim&do=findComment&comment=2184425 Link to comment Share on other sites More sharing options...
xcynthia90x Posted December 28, 2015 Author Share Posted December 28, 2015 (edited) Hola xcynthia90x, Qué pone en la línea 364? Saludos /** * Process the newsletter settings and set the customer infos. * * @param Customer $customer Reference on the customer Object. * * @note At this point, the email has been validated. */ protected function processCustomerNewsletter(&$customer) { $blocknewsletter = Module::isInstalled('blocknewsletter') && $module_newsletter = Module::getInstanceByName('blocknewsletter'); if ($blocknewsletter && $module_newsletter->active && !Tools::getValue('newsletter')) { //if (is_callable(array($module_newsletter, 'isNewsletterRegistered')) && $module_newsletter->isNewsletterRegistered(Tools::getValue('email')) == $module_newsletter::GUEST_REGISTERED) { /* Force newsletter registration as customer as already registred as guest */ //$_POST['newsletter'] = true; //} } if (Tools::getValue('newsletter')) { $customer->newsletter = true; $customer->ip_registration_newsletter = pSQL(Tools::getRemoteAddr()); $customer->newsletter_date_add = pSQL(date('Y-m-d H:i:s')); /** @var Blocknewsletter $module_newsletter */ if ($blocknewsletter && $module_newsletter->active) { $module_newsletter->confirmSubscription(Tools::getValue('email')); } } } Hola, la solución será upgreadear el PHP a la versión 5.4. Mira aquí: https://www.prestashop.com/forums/topic/481073-after-upgrade-1610-1612-unexpected-t-paamayim-nekudotayim-on-user-login/?hl=%2Bt_paamayim_nekudotayim&do=findComment&comment=2184425 Es una opción que dejaré para lo último ya que comparto hosting con más webs y tengo miedo que otras webs se vean afectada por esto. Edited December 28, 2015 by xcynthia90x (see edit history) Link to comment Share on other sites More sharing options...
rikyweb Posted February 3, 2016 Share Posted February 3, 2016 (edited) Hola, Yo también me encontré con la misma línea de error: Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/content/t/r/o/tropicmax/html/store/controllers/front/AuthController.php on line 364 Por lo que he investigado se trata de un error de sintaxis: (T_PAAMAYIM_NEKUDOTAYIM) estas palabras significan: 'double semicolon' , es decir los dos puntos :: ENTONCES ANDA A ESA LÍNEA DE CÓDIGO Y EN LOS PRIMEROS DOS PUNTOS :: REEMPLAZA POR -> if (is_callable(array($module_newsletter, 'isNewsletterRegistered')) && $module_newsletter::isNewsletterRegistered(Tools::getValue('email')) == $module_newsletter->GUEST_REGISTERED) { if (is_callable(array($module_newsletter, 'isNewsletterRegistered')) && $module_newsletter->isNewsletterRegistered(Tools::getValue('email')) == $module_newsletter->GUEST_REGISTERED) { ESO ME SOLUCIONÓ EL PROBLEMA, DISCULPA SI LLEGUÉ TARDE. ESPERO SER DE AYUDA PARA FUTUROS USUARIOS Edited February 3, 2016 by rikyweb (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts