CDbException

CDbCommand falló al ejecutar la sentencia SQL: SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect date value: '0000-00-00' for column 'fvalidacion' at row 1. The SQL statement executed was: UPDATE `tb_ofertaeducativa` SET `id`=:yp0, `falta`=:yp1, `fmodifica`=:yp2, `unidad`=:yp3, `responsable`=:yp4, `emailresp`=:yp5, `telresp`=:yp6, `area`=:yp7, `tipo`=:yp8, `modalidad`=:yp9, `grado`=:yp10, `titulo`=:yp11, `pingreso`=:yp12, `pegreso`=:yp13, `objetivo`=:yp14, `planestudios`=:yp15, `liga`=:yp16, `fvalidacion`=:yp17, `areasresp`=:yp18, `anio`=:yp19, `factualizacion`=:yp20, `notas`=:yp21, `idusuario`=:yp22, `visitas`=:yp23 WHERE `tb_ofertaeducativa`.`id`=1

/home/wwwenfermeriauaz/yii/framework/db/CDbCommand.php(358)

346         {
347             if($this->_connection->enableProfiling)
348                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
349 
350             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
351             $message=$e->getMessage();
352             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
353                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
354 
355             if(YII_DEBUG)
356                 $message.='. The SQL statement executed was: '.$this->getText().$par;
357 
358             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
359                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
360         }
361     }
362 
363     /**
364      * Executes the SQL statement and returns query result.
365      * This method is for executing an SQL query that returns result set.
366      * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative
367      * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing
368      * them in this way can improve the performance. Note that if you pass parameters in this way,
369      * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.
370      * Please also note that all values are treated as strings in this case, if you need them to be handled as

Stack Trace

#3
+
 /home/wwwenfermeriauaz/public_html/protected/controllers/OfertaEducativaController.php(55): CActiveRecord->save()
50 */
51 public function actionView($id)
52 {
53     $model = $this->loadModel($id);
54     $model->visitas = $model->visitas+1;
55     $model->save();
56 
57 $this->render('view',array(
58 'model'=>$model,
59 ));
60 }
#18
+
 /home/wwwenfermeriauaz/public_html/index.php(14): CApplication->run()
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 define('SIGLAS','UAE');
12 
13 require_once($yii);
14 Yii::createWebApplication($config)->run();
2024-03-28 19:39:11 Apache Yii Framework/1.1.16