Bonjour,

J'ai récupéré un site web développer en php et utilisant des bibliothèques ZEND.
Je ne me suis pas encore familiariser avec le framework Zend.
Cela dit à travers mon site web j'arrive a interroger ma base, nikel ça me remonte les résultats mais quand il s'agit d'écrire, d'insérer d'autre enregistrement ça se complique.
Voici l'erreur que j'obtiens quand j'essaie:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Exception information :
 
Message: SQLSTATE[HY000]: General error: 1364 Field 'statutpro_id' doesn't have a default value
Stack trace:
 
#0 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Zend-1.9.3\Zend\Db\Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#1 E:\Drive\App\xampp\htdocs\pagesinterim.com\trunk\library\Zend-1.9.3\Zend\Db\Adapter\Abstract.php(468): Zend_Db_Statement->execute(Array)
#2 E:\Drive\App\xampp\htdocs\pagesinterim.com\trunk\library\Zend-1.9.3\Zend\Db\Adapter\Pdo\Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#3 E:\Drive\App\xampp\htdocs\pagesinterim.com\trunk\library\Zend-1.9.3\Zend\Db\Adapter\Abstract.php(546): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#4 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Zend-1.9.3\Zend\Db\Table\Abstract.php(1056): Zend_Db_Adapter_Abstract->insert('candidat', Array)
#5 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Pi\Db\Model.php(4): Zend_Db_Table_Abstract->insert(Array)
#6 E:\Drive\App\xampp\htdocs\mapage.com\trunk\application\modules\candidats\controllers\RegisterController.php(103): Pi_Db_Model->insert(Array)
#7 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Zend-1.9.3\Zend\Controller\Action.php(513): Candidats_RegisterController->indexAction()
#8 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Zend-1.9.3\Zend\Controller\Dispatcher\Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#9 E:\Drive\App\xampp\htdocs\mapage.com\trunk\library\Zend-1.9.3\Zend\Controller\Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#10 E:\Drive\App\xampp\htdocs\mapage.com\trunk\index.php(63): Zend_Controller_Front->dispatch()
#11 {main}
 
Request Parameters:
 
array(10) {
  ["module"]=>
  string(9) "candidats"
  ["controller"]=>
  string(8) "register"
  ["action"]=>
  string(5) "index"
  ["redirectUrl"]=>
  string(20) "/candidats/register/"
  ["regstep"]=>
  string(1) "1"
  ["p_login"]=>
  string(8) "lila"
  ["p_email"]=>
  string(32) "lila@live.fr"
  ["p_newsletter"]=>
  string(1) "0"
  ["p_accept_cgu"]=>
  string(7) "checked"
  ["inscription"]=>
  string(7) "Valider"
}
Ma config:

XAMPP pour Windows Version 1.7.1
PHP Version 5.2.9
Apache:2.2.11 (Win32)
MySQL: 5.0.51a

Merci d'avance pour votre aide.