juanunlin Posted February 23, 2018 Share Posted February 23, 2018 Buenas tardes, he actualizado de prestashop 1.6.1.11 a 1.7.02 y todo ha ido correcto con el módulo 1click upgrade, al terminar la actualización le he dado a inicio y me ha sacado del backoffice, al poner de nuevo el usuario y la contraseña no hace nada, es como que se reinicia, he activado el modo de errores y ahora al entrar en la url del admin me sale el siguiente error: PrestaShopDatabaseException in Db.php line 744:Unknown column 'j.id_authorization_role' in 'on clause'<br /><br /><pre> SELECT `slug`, `slug` LIKE "%CREATE" as "add", `slug` LIKE "%READ" as "view", `slug` LIKE "%UPDATE" as "edit", `slug` LIKE "%DELETE" as "delete" FROM `ps16w_authorization_role` a LEFT JOIN `ps16w_access` j ON j.id_authorization_role = a.id_authorization_role WHERE j.`id_profile` = 0</pre> in Db.php line 744 at DbCore->displayError(' SELECT `slug`, `slug` LIKE "%CREATE" as "add", `slug` LIKE "%READ" as "view", `slug` LIKE "%UPDATE" as "edit", `slug` LIKE "%DELETE" as "delete" FROM `ps16w_authorization_role` a LEFT JOIN `ps16w_access` j ON j.id_authorization_role = a.id_authorization_role WHERE j.`id_profile` = 0') in Db.php line 378 at DbCore->query(' SELECT `slug`, `slug` LIKE "%CREATE" as "add", `slug` LIKE "%READ" as "view", `slug` LIKE "%UPDATE" as "edit", `slug` LIKE "%DELETE" as "delete" FROM `ps16w_authorization_role` a LEFT JOIN `ps16w_access` j ON j.id_authorization_role = a.id_authorization_role WHERE j.`id_profile` = 0') in Db.php line 596 at DbCore->executeS(' SELECT `slug`, `slug` LIKE "%CREATE" as "add", `slug` LIKE "%READ" as "view", `slug` LIKE "%UPDATE" as "edit", `slug` LIKE "%DELETE" as "delete" FROM `ps16w_authorization_role` a LEFT JOIN `ps16w_access` j ON j.id_authorization_role = a.id_authorization_role WHERE j.`id_profile` = 0') in Profile.php line 172 at ProfileCore::getProfileAccesses(null) in Profile.php line 114 at ProfileCore::getProfileAccess(null, '80') in AdminController.php line 549 at AdminControllerCore->__construct() in LegacyContext.php line 62 at LegacyContext->getContext() in EmployeeProvider.php line 50 at EmployeeProvider->__construct(object(LegacyContext)) in appDevDebugProjectContainer.php line 3650 at appDevDebugProjectContainer->getPrestashop_Security_Admin_ProviderService() in bootstrap.php.cache line 2248 at Container->get('prestashop.security.admin.provider') in appDevDebugProjectContainer.php line 2877 at appDevDebugProjectContainer->getPrestashop_Adapter_Security_AdminService() in bootstrap.php.cache line 2248 at Container->get('prestashop.adapter.security.admin') in classes.php line 1970 at ContainerAwareEventDispatcher->lazyLoad('kernel.request') in classes.php line 1938 at ContainerAwareEventDispatcher->getListeners('kernel.request') in TraceableEventDispatcher.php line 245 at TraceableEventDispatcher->preProcess('kernel.request') in TraceableEventDispatcher.php line 135 at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent)) in bootstrap.php.cache line 3236 at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3206 at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3360 at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2562 at Kernel->handle(object(Request), '1', false) in index.php line 86 Si me podeis ayudar lo agradezco mucho, es raro que despues de que haya ido todo bien en la actualizacion salte este error antes de entrar en el admin. Gracias de antemano Link to comment Share on other sites More sharing options...
Marcos Pastoriza Posted October 23, 2018 Share Posted October 23, 2018 Pues a ver si alguien da una solución a esto. Me está sucediendo lo mismo Link to comment Share on other sites More sharing options...
Rolige Posted October 23, 2018 Share Posted October 23, 2018 Hola: El error indica que falta una columna en tu tabla p16w_access. Esto pudiera estar causado a que no se ejecutaron exitosamente todas las consultas SQL de modificacion de la tablas cuando hiciste la actualizacion de tu PS. La estructura correcta de la tabla en PS 1.7 es: -- -- Estructura de tabla para la tabla `ps2_access` -- CREATE TABLE `ps2_access` ( `id_profile` int(10) UNSIGNED NOT NULL, `id_authorization_role` int(10) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `ps2_access` -- ALTER TABLE `ps2_access` ADD PRIMARY KEY (`id_profile`,`id_authorization_role`); Por favor, verifica que sea correcta y sino tendras que crear manualmente la columna que falta para que te funcione. Ojala ese sea el unico fallo en tu BD sino tendras que buscar en los script de actualizacion de la BD todas las consultas que no pudieron ejecutarse luego de fallara la ejecucion de la que modifica esa tabla especificamente. Saludos Link to comment Share on other sites More sharing options...
Marcos Pastoriza Posted October 23, 2018 Share Posted October 23, 2018 Gracias por la respuesta. Eso mismo hice; pero después de hacerlo me siguió dando error por otros motivos. Algo relacionado con los lenguajes; pero no he podido averiguar más. No he encontrado nada por ningún lado.... No sé como es pero después de intentarlo de todas las maneras posibles y varias veces no consigo hacer una actualización correcta y que no esté "dando por saco", con perdón de la expresión Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now