jomartial Posted January 13, 2016 Share Posted January 13, 2016 Hi all, Please can you help me to solve this problem I develop a prestashop module for mobile payment. Erreurs PHP : [PrestaShopDatabaseException] Field 'template' doesn't have a default value INSERT INTO `ps424_order_state_lang` (`id_order_state`, `id_lang`, `name`) VALUES(25, 1, '[CinetPay] Paiement échoué, fonds insuffisants') at line 791 in file classes/db/Db.php 786. if ($webservice_call && $errno) { 787. $dbg = debug_backtrace(); 788. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97); 789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) { 790. if ($sql) { 791. throw new PrestaShopDatabaseException($this->getMsgError().' '.$sql.''); 792. } 793. 794. throw new PrestaShopDatabaseException($this->getMsgError()); 795. } 796. } DbCore->displayError - [line 425 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 601 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 71 - modules/cinetpay/sql/install.php] - [1 Arguments] include - [line 280 - modules/cinetpay/cinetpay.php] - [1 Arguments] Cinetpay->install - [line 867 - controllers/admin/AdminModulesController.php] Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted January 15, 2016 Share Posted January 15, 2016 The template field is missing INSERT INTO `ps424_order_state_lang` (`id_order_state`, `id_lang`, `name`, `template`)... 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