Jump to content

(RESOLU) creation et modif d'un produit impossible


Recommended Posts

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

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

  • 2 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...