Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]:
  2.  
  3. SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null
  4.  
  5. 500 Internal Server Error - NotNullConstraintViolationException
  6. 2 linked Exceptions:
  7. PDOException ยป
  8. PDOException ยป
  9.  
  10. [3/3] NotNullConstraintViolationException: An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]:
  11.  
  12. SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null +
  13.  
  14. [2/3] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null -
  15.  
  16. in vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php at line 93 -
  17. try {
  18. return parent::execute($params);
  19. } catch (\PDOException $exception) {
  20. throw new PDOException($exception);
  21. }
  22. }
  23. at PDOStatement ->execute (null)
  24. in vendor\doctrine\dbal\lib\Doctrine\DBAL\Statement.php at line 168 +
  25. at Statement ->execute ()
  26. in vendor\doctrine\orm\lib\Doctrine\ORM\Persisters\Entity\BasicEntityPersister.php at line 281 +
  27. at BasicEntityPersister ->executeInserts ()
  28. in vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php at line 1018 +
  29. at UnitOfWork ->executeInserts (object(ClassMetadata))
  30. in vendor\doctrine\orm\lib\Doctrine\ORM\UnitOfWork.php at line 378 +
  31. at UnitOfWork ->commit (null)
  32. in vendor\doctrine\orm\lib\Doctrine\ORM\EntityManager.php at line 356 +
  33. at EntityManager ->flush ()
  34. in src\SoftUniBlogBundle\Controller\ArticleController.php at line 34 +
  35. at ArticleController ->createAction (object(Request))
  36. at call_user_func_array (array(object(ArticleController), 'createAction'), array(object(Request)))
  37. in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 153 +
  38. at HttpKernel ->handleRaw (object(Request), '1')
  39. in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpKernel.php at line 68 +
  40. at HttpKernel ->handle (object(Request), '1', true)
  41. in vendor\symfony\symfony\src\Symfony\Component\HttpKernel\Kernel.php at line 169 +
  42. at Kernel ->handle (object(Request))
  43. in web\app_dev.php at line 37 +
  44. at require ('D:\Projects\Software-Technologies\01.PHP\01.Homeworks\HW03\Blog\web\app_dev.php')
  45. in vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Resources\config\router_dev.php at line 40 +
  46. [1/3] PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null +
  47.  
  48. Logs -
  49.  
  50. 1 error
  51. INFO - Matched route "{route}".
  52. DEBUG - Read existing security token from the session.
  53. DEBUG - SELECT t0.id AS id_1, t0.email AS email_2, t0.fullName AS fullName_3, t0.password AS password_4 FROM users t0 WHERE t0.id = ?
  54. DEBUG - User was reloaded from a user provider.
  55. DEBUG - Notified event "{event}" to listener "{listener}".
  56. DEBUG - Notified event "{event}" to listener "{listener}".
  57. DEBUG - Notified event "{event}" to listener "{listener}".
  58. DEBUG - Notified event "{event}" to listener "{listener}".
  59. DEBUG - Notified event "{event}" to listener "{listener}".
  60. DEBUG - Notified event "{event}" to listener "{listener}".
  61. DEBUG - Notified event "{event}" to listener "{listener}".
  62. DEBUG - Notified event "{event}" to listener "{listener}".
  63. DEBUG - Notified event "{event}" to listener "{listener}".
  64. DEBUG - Notified event "{event}" to listener "{listener}".
  65. DEBUG - Notified event "{event}" to listener "{listener}".
  66. DEBUG - Notified event "{event}" to listener "{listener}".
  67. DEBUG - Notified event "{event}" to listener "{listener}".
  68. DEBUG - Notified event "{event}" to listener "{listener}".
  69. DEBUG - Notified event "{event}" to listener "{listener}".
  70. DEBUG - "START TRANSACTION"
  71. DEBUG - INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)
  72. DEBUG - "ROLLBACK"
  73. CRITICAL - Uncaught PHP Exception Doctrine\DBAL\Exception\NotNullConstraintViolationException: "An exception occurred while executing 'INSERT INTO articles (title, content, dateAdded, authorId) VALUES (?, ?, ?, ?)' with params [null, null, null, 1]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null" at D:\Projects\Software-Technologies\01.PHP\01.Homeworks\HW03\Blog\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\AbstractMySQLDriver.php line 112
  74. DEBUG - Notified event "{event}" to listener "{listener}".
  75. DEBUG - Notified event "{event}" to listener "{listener}".
  76. DEBUG - Notified event "{event}" to listener "{listener}".
  77. DEBUG - Notified event "{event}" to listener "{listener}".
  78. DEBUG - Notified event "{event}" to listener "{listener}".
  79. DEBUG - Notified event "{event}" to listener "{listener}".
  80. DEBUG - Notified event "{event}" to listener "{listener}".
  81. DEBUG - Notified event "{event}" to listener "{listener}".
  82. DEBUG - Notified event "{event}" to listener "{listener}".
  83. DEBUG - Notified event "{event}" to listener "{listener}".
  84. DEBUG - Notified event "{event}" to listener "{listener}".
  85. DEBUG - Notified event "{event}" to listener "{listener}".
  86. DEBUG - Notified event "{event}" to listener "{listener}".
  87. DEBUG - Notified event "{event}" to listener "{listener}".
  88. DEBUG - Notified event "{event}" to listener "{listener}".
  89. Stack Trace (Plain Text) +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement