I need to be able to create and save a node (page) of a content type. I fill in the fields and click save and get this error on a white screen of death:
Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 19 NOT NULL constraint failed: node_field_data.title: INSERT INTO {node_field_data} (nid, vid, type, langcode, title, uid, status, created, changed, promote, sticky, revision_translation_affected, default_langcode, content_translation_source, content_translation_outdated) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?); Array ( [0] => 103 [1] => 103 [2] => practitioners [3] => en [4] => [5] => 1 [6] => 1 [7] => 1465214657 [8] => 1465215397 [9] => 0 [10] => 0 [11] => 1 [12] => 1 [13] => und [14] => 0 ) in Drupal\Core\Database\Connection->handleQueryException() (line 668 of /home/mywebsite/public_html/core/lib/Drupal/Core/Database/Connection.php).
I have already recreated the content type in case there were errors in the initial version but the same problem is occurring. This didn't happen on my local dev version, only on the server. My server provider just did a thorough test of the PHP and said it is an issue with Drupal core.
Can someone please help? Need to be able to create nodes of content types.
Thanks in advance.
M
Comments
Comment #2
cilefen commentedThe title is null. This could be a duplicate of #2358537: Remove 'not null' constraint from node title field/column.('Title' field present in node entity should not be mandatory.).
Comment #3
lilbebel commentedThank you cilefen. It does seem to be the same issue. Just to be clear, 'title' refers to the field label in "/admin/structure/types/manage/practitioners/form-display". Is that correct?
M
Comment #11
quietone commentedAfter reading the Issue Summary and comments. In #3 lilbebel agrees this is the same problem as #2358537: Remove 'not null' constraint from node title field/column.('Title' field present in node entity should not be mandatory.).
Therefore, closing as a duplicate.
Thanks!