info@happyracerstore Posted July 31, 2015 Share Posted July 31, 2015 Salve a tutti Purtroppo non riesco piu a uscire da questo problema...da quando hanno migrato sulla nuova piattaforma mi esce questo errore. In realtà non so se avvenuto immediatamente dopo la migrazione o in seguito ad altro Fatto stà che nella pagine delle categorie esce questo errore: [PrestaShopDatabaseException]You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'INNER JOIN ps_manufacturer m ON (m.id_manufacturer = p.id_manufacturer) W' at line 4 SELECT m.name, 0 nbr, m.id_manufacturer FROM ps_cat_restriction p JOIN INNER JOIN ps_manufacturer m ON (m.id_manufacturer = p.id_manufacturer) WHERE 1 GROUP BY p.id_manufacturer ORDER BY m.name at line 635 in file classes/db/Db.php 629. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);630. }631. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))632. {633. if ($sql)634. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');635. throw new PrestaShopDatabaseException($this->getMsgError());636. }637. }638. 639. /** DbCore->displayError - [line 325 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 501 - classes/db/Db.php] - [1 Arguments] DbCore->executeS - [line 2377 - modules/blocklayered/blocklayered.php] - [1 Arguments] BlockLayered->getFilterBlock - [line 687 - modules/blocklayered/blocklayered.php] - [1 Arguments] BlockLayered->hookHeader - [line 509 - classes/Hook.php] - [1 Arguments] HookCore::exec - [line 447 - classes/controller/FrontController.php] - [1 Arguments] FrontControllerCore->initContent - [line 104 - controllers/front/CategoryController.php] CategoryControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 28 - index.php] e francamente non riesco a determinare dove sia quella query visto che alla riga 635 non compare Ringrazio anticipatamente per l'aiuto. Link to comment Share on other sites More sharing options...
giuliopowa Posted July 31, 2015 Share Posted July 31, 2015 (edited) ciao,prova a disattivare il modulo blocklayeredo prova a disinstallarlo e reinstallarlo Edited July 31, 2015 by giuliopowa (see edit history) Link to comment Share on other sites More sharing options...
info@happyracerstore Posted July 31, 2015 Author Share Posted July 31, 2015 Sono riuscito a risolvere cercando in tutto il sito la stringa " FROM ps_cat_restriction p JOIN " che ovviamente andava in conflitto con la seconda "INNER JOIN" e tale stringa si trova nel file blocklayered.php nella omonima cartella dentro la cartella moduli togliendo la stringa JOIN tutto è tornato normale...spero che una prossima revisione sistemino il modulo. 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