Notice (8): Undefined index:  Noticia [APP/Controller/NoticiasController.php, line 149]
Notice (8): Undefined index:  acessos [APP/Controller/NoticiasController.php, line 149]
Folha São Carlos e Região - O Jornal que você lê

Database Error

Error: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`site1392936015`.`noticias`, CONSTRAINT `fk_noticias_users1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE)

SQL Query: INSERT INTO `site1392936015`.`noticias` (`acessos`) 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 460PDOStatement->execute(array)
  • CORE/Cake/Model/Datasource/DboSource.php line 426DboSource->_execute(string, array)
  • CORE/Cake/Model/Datasource/DboSource.php line 1007DboSource->execute(string)
  • CORE/Cake/Model/Model.php line 1744DboSource->create(Noticia, array, array)
  • APP/Controller/NoticiasController.php line 151Model->save(array)
  • [internal function]NoticiasController->ver_noticia(string)
  • CORE/Cake/Controller/Controller.php line 486ReflectionMethod->invokeArgs(NoticiasController, array)
  • CORE/Cake/Routing/Dispatcher.php line 187Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 162Dispatcher->_invoke(NoticiasController, CakeRequest, CakeResponse)
  • APP/webroot/index.php line 110Dispatcher->dispatch(CakeRequest, CakeResponse)