Database Error
Error: SQLSTATE[HY000]: General error: 1364 Field 'feed_url' doesn't have a default value
SQL Query: INSERT INTO `esadmin_esdbv3`.`feeds` (`times_played`) VALUES (1)
Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp
Stack Trace
- CORE/Cake/Model/Datasource/DboSource.php line 460 → PDOStatement->execute(array)
try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
array()
- CORE/Cake/Model/Datasource/DboSource.php line 426 → DboSource->_execute(string, array)
$options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'INSERT INTO `esadmin_esdbv3`.`feeds` (`times_played`) VALUES (1)' array()
- CORE/Cake/Model/Datasource/DboSource.php line 1007 → DboSource->execute(string)
'values' => implode(', ', $valueInsert)
);
if ($this->execute($this->renderStatement('create', $query))) {
if (empty($id)) {
'INSERT INTO `esadmin_esdbv3`.`feeds` (`times_played`) VALUES (1)'
- CORE/Cake/Model/Model.php line 1744 → DboSource->create(Feed, array, array)
}
}
if (!$db->create($this, $fields, $values)) {
$success = false;
object(Feed) { belongsTo => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'feeds' id => false data => array( [maximum depth reached] ) schemaName => 'esadmin_esdbv3' table => 'feeds' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'Feed' alias => 'Feed' tableToModel => array( [maximum depth reached] ) cacheQueries => false hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array( [maximum depth reached] ) cacheSources => true findQueryType => null recursive => (int) 2 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) Feedtype => object(FeedType) {} Radiostation => object(Radiostation) {} [protected] _schema => array( [maximum depth reached] ) [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } array( (int) 0 => 'times_played' ) array( (int) 0 => (int) 1 )
- APP/Model/AppModel.php line 44 → Model->save(array, array, array)
}
// set updated_at field value before each save
$data[$this->name]['updated_at'] = $now;
return parent::save($data, $validate, $fieldList);
}
array( 'Feed' => array( 'id' => '2524', 'times_played' => (int) 1, 'created_at' => '2024-03-28 07:34:27', 'updated_at' => '2024-03-28 07:34:27' ) ) array( 'validate' => false, 'fieldList' => array( (int) 0 => 'times_played' ) ) array()
- CORE/Cake/Model/Model.php line 1592 → AppModel->save(array, array)
if (is_array($validate)) {
$options = array_merge(array('validate' => false, 'fieldList' => array($name)), $validate);
}
return $this->save(array($this->alias => array($this->primaryKey => $id, $name => $value)), $options);
}
array( 'Feed' => array( 'id' => '2524', 'times_played' => (int) 1 ) ) array( 'validate' => false, 'fieldList' => array( (int) 0 => 'times_played' ) )
- APP/Controller/RadioController.php line 107 → Model->saveField(string, integer)
$this->set('id', $id);
$selectedFeed = $this->Feed->findById($id);
$this->Feed->id = $id;
$this->Feed->saveField('times_played', $selectedFeed['Feed']['times_played'] + 1);
'times_played' (int) 1
- [internal function] → RadioController->listen(string, string)
'2524' 'La FM.html'
- CORE/Cake/Controller/Controller.php line 486 → ReflectionMethod->invokeArgs(RadioController, array)
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(RadioController) { uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Radio' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Radio' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'listen' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Country' modelKey => 'radio' validationErrors => null Cookie => object(CookieComponent) {} Session => object(SessionComponent) {} Auth => object(AuthComponent) {} Paginator => object(PaginatorComponent) {} Feed => object(Feed) {} Country => object(Country) {} Language => object(Language) {} State => object(State) {} Tag => object(Tag) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => '2524', (int) 1 => 'La FM.html' )
- CORE/Cake/Routing/Dispatcher.php line 187 → Controller->invokeAction(CakeRequest)
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'eng/radio/2524-La+FM.html' base => '' webroot => '/' here => '/eng/radio/2524-La+FM.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
- CORE/Cake/Routing/Dispatcher.php line 162 → Dispatcher->_invoke(RadioController, CakeRequest, CakeResponse)
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(RadioController) { uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) components => array( [maximum depth reached] ) name => 'Radio' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Radio' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'listen' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Country' modelKey => 'radio' validationErrors => null Cookie => object(CookieComponent) {} Session => object(SessionComponent) {} Auth => object(AuthComponent) {} Paginator => object(PaginatorComponent) {} Feed => object(Feed) {} Country => object(Country) {} Language => object(Language) {} State => object(State) {} Tag => object(Tag) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'eng/radio/2524-La+FM.html' base => '' webroot => '/' here => '/eng/radio/2524-La+FM.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array( [maximum depth reached] ) }
- APP/webroot/index.php line 126 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'eng/radio/2524-La+FM.html' base => '' webroot => '/' here => '/eng/radio/2524-La+FM.html' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array( [maximum depth reached] ) }