CDbException

CDbCommand konnte das SQL-Statement nicht ausführen: SQLSTATE[HY000]: General error: 1364 Field 'mdlCUEmail' doesn't have a default value. The SQL statement executed was: INSERT INTO `mod_download_log` (`mdlDate`, `mdlLeadGen`, `mdlCID`, `mdlCUID`, `mdlPID`, `mdlScenario`) VALUES (:yp0, :yp1, :yp2, :yp3, :yp4, :yp5)

/home/httpd/vhosts/marketing-boerse.de/20240318-153510/yii-1.1.29.f89b76/framework/yiilite.php(9676)

9664             return $n;
9665         }
9666         catch(Exception $e)
9667         {
9668             if($this->_connection->enableProfiling)
9669                 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute');
9670             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
9671             $message=$e->getMessage();
9672             Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.',
9673                 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
9674             if(YII_DEBUG)
9675                 $message.='. The SQL statement executed was: '.$this->getText().$par;
9676             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
9677                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
9678         }
9679     }
9680     public function query($params=array())
9681     {
9682         return $this->queryInternal('',0,$params);
9683     }
9684     public function queryAll($fetchAssociative=true,$params=array())
9685     {
9686         return $this->queryInternal('fetchAll',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params);
9687     }
9688     public function queryRow($fetchAssociative=true,$params=array())

Stack Trace

#2
+
 /home/httpd/vhosts/marketing-boerse.de/20240318-153510/protected/modules/download/controllers/DownloadContentController.php(596): CActiveRecord->save()
591             $downloadLog->mdlLeadGen = true;
592         } else {
593             $downloadLog->mdlLeadGen = false;
594         }
595         
596         $downloadLog->save(false);
597         
598         $loginModel=new LoginForm;
599 
600         $dUrl = ContentData::getData($model->cID, 'downloadUri');
601         if (empty($dUrl) && !Yii::app()->user->isGuest) {
#17
+
 /home/httpd/vhosts/marketing-boerse.de/20240318-153510/maboyii/index.php(96): CApplication->run()
091 defined('YII_DEBUG') or define('YII_DEBUG',true);
092 // specify how many levels of call stack should be shown in each log message
093 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
094 
095 require_once($yii);
096 Yii::createWebApplication($config)->run();
097 
098 //*
099   if ((!empty(Yii::app()->params['matomo']['id']))&&($_SERVER['REQUEST_URI'] != '/statistics/increment')) {
100     set_include_path(get_include_path() . PATH_SEPARATOR . '../protected/vendors/matomo-php-client/');
101     require_once('../protected/vendors/matomo-php-client/MatomoTracker.php');
2024-03-28 17:04:00 nginx/1.18.0 Yii Framework/1.1.29