CDArreda Posted September 15, 2012 Share Posted September 15, 2012 Ciao, Sto facendo dei test in locale prima di aggiornare la mia versione di prestashop (da 1.4.8.2 a 1.5.0.17). Ho seguito la guida per l'installazione MANUALE a questo link: http://doc.prestasho...ickinstructions ma ogni volta che eseguo lo script ( Step 3 - Starting the Update), ottengo sempre questo errore: <action result="fail" error="34"> ..... <request result="ok" sqlfile="1.5.0.0"><sqlQuery>CREATE TABLE `group_group_shop` ( `id_group` INT( 11 ) UNSIGNED NOT NULL, `id_group_shop` INT( 11 ) UNSIGNED NOT NULL, PRIMARY KEY (`id_group`, `id_group_shop`), KEY `id_group_shop` (`id_group_shop`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8</sqlQuery></request><request result="fail" sqlfile="1.5.0.0"><sqlQuery>INSERT INTO `group_group_shop` (id_group_shop, id_group) (SELECT 1, id_group FROM group)</sqlQuery><sqlMsgError>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group)' at line 1</sqlMsgError><sqlNumberError>1064</sqlNumberError></request> .... La mia configurazione è MySQL 5.5.27 php-5.2.12 Apache2.2 Allego l'intero xml di risposta. chi mi sa aiutare? grazie. upgrade.php.xml Link to comment Share on other sites More sharing options...
lucamax Posted September 16, 2012 Share Posted September 16, 2012 Non sono esperto sull'argomento ma sembrerebbe che non riesca a creare la tabella group_group_shop , sei sicuro di avere i permessi giusti ? Link to comment Share on other sites More sharing options...
CDArreda Posted September 16, 2012 Author Share Posted September 16, 2012 la tabella la crea, il problema sta nell'insert. Ho testasto personalmente la query tramite phpMyAdmin INSERT INTO `group_group_shop` (id_group_shop, id_group) (SELECT 1, id_group FROM group e mi dà il medesimo errore. Link to comment Share on other sites More sharing options...
lucamax Posted September 16, 2012 Share Posted September 16, 2012 allora forse vuol dire che la tabella da cui cerca di attingere i dati è vuota oppure non esiste... Link to comment Share on other sites More sharing options...
CDArreda Posted September 16, 2012 Author Share Posted September 16, 2012 Non può essere così, viene prima eseguita la query di creazione e inserimento della tabella "group". Lo script è 1.5.0.0.sql che si trova nella cartella \install\upgrade\sql Link to comment Share on other sites More sharing options...
CDArreda Posted September 16, 2012 Author Share Posted September 16, 2012 Allora, il problema sembra dovuto alla mancanza degli apici. Infatti se lancio da phpMyAdmin questa semplice query: SELECT 1, id_group FROM group mi da il medesimo errore di sintassi, mentre se la lancio aggiungendo gli apici al nome della tabella SELECT 1, id_group FROM `group` non mi da nessun errore. Proverò a modificare lo script sql dell'upgrade e vi farò sapere.... Link to comment Share on other sites More sharing options...
CDArreda Posted September 16, 2012 Author Share Posted September 16, 2012 Confermato! L'errore sta nella mancanza degli apici. Ora l'installazione sembra andata a buon fine. Link to comment Share on other sites More sharing options...
lucamax Posted September 16, 2012 Share Posted September 16, 2012 Guarda che d'appertutto le apici non ci sono ad esempio : INSERT INTO `PREFIX_feature_group_shop` (id_group_shop, id_feature) (SELECT 1, id_feature FROM PREFIX_feature); Non metto in dubbio che la tua installazione sia avanzata ma la sintassi senza apici è corretta Link to comment Share on other sites More sharing options...
CDArreda Posted September 16, 2012 Author Share Posted September 16, 2012 Tutto dipende dal tipo di configurazione, e soprattutto dalla versione di MySql. In ogni caso vai a vedere lo script sql completo e noterai che i nomi di alcune table sono con apici e altri no! 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