Tomid2 Posted March 11, 2015 Share Posted March 11, 2015 (edited) Bonjour, Je viens de passer à la V 6.0.14. Si je veux ajouter ou modifier un produit j'ai l'erreur suivante : Une erreur s'est produite pendant la création de l'objet. product Auriez vous une piste ? Edited March 11, 2015 by cleanfix (see edit history) Link to comment Share on other sites More sharing options...
Tomid2 Posted March 11, 2015 Author Share Posted March 11, 2015 Je ne c'est pas si il y à un rapport mais quand je passe en mode define('_PS_MODE_DEV_', true); j'ai : [PrestaShopDatabaseException]Unknown column 'last_connection_date' in 'where clause' UPDATE `ps_employee` SET `last_connection_date` = CURRENT_DATE() WHERE `id_employee` = 1 AND `last_connection_date`< CURRENT_DATE() at line 646 in file classes/db/Db.php 641. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);642. }643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))644. {645. if ($sql)646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');647. throw new PrestaShopDatabaseException($this->getMsgError());648. }649. }650. 651. /** Link to comment Share on other sites More sharing options...
Tomid2 Posted March 11, 2015 Author Share Posted March 11, 2015 Bon j'ai injecter dans ma base : ALTER TABLE `ps_employee` ADD COLUMN `last_connection_date` date DEFAULT '0000-00-00' Et je peu me reconnecter au back office. Mais si jeu veux ajouter un produit j'ai : [PrestaShopDatabaseException]Unknown column 'id_product_attribute_item' in 'field list' SELECT id_product_item, id_product_attribute_item, quantity FROM `ps_pack` where id_product_pack = 0 at line 646 in file classes/db/Db.php 641. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);642. }643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))644. {645. if ($sql)646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');647. throw new PrestaShopDatabaseException($this->getMsgError());648. }649. }650. 651. /** Link to comment Share on other sites More sharing options...
totorche Posted March 26, 2015 Share Posted March 26, 2015 As-tu trouvé une solution à ton 2ème problème ? J'ai exactement la même chose... Link to comment Share on other sites More sharing options...
Tomid2 Posted March 26, 2015 Author Share Posted March 26, 2015 Bonjour, En faite la sauvegarde de ma base de donnée n'étais pas bonne, il me manquait pleins de tables. (Pourquoi ? Je ne c pas...) Du coups j'ai été obligé de repartir sur une sauvegarde plus ancienne qui elle, était complète. Maintenant je sauvegarde via phpmyadmin directement sans passer par prestashop. 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