Hi,

related to this issue (https://www.drupal.org/node/2360199) firstly I had some problems getting a fresh Drupal 8 installation to run. After changing to English as default language the update.php script was running successfully.

Now I tried to save a new node which lead to a WSOD. Having a look on the PHP error logs I found the following:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[HY000]: General error: 1364 Field 'nid' doesn't have a default value: INSERT INTO {node} (vid, type, uuid) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => seite [:db_insert_placeholder_2] => 1188f811-68da-434b-8884-49346f74ed08 ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->doSave() (line 959 of \core\lib\Drupal\Core\Entity\Sql\SqlContentEntityStorage.php).

I tested Drupal 8 on my local WAMP installation with minimal installation profile.

Best,
Tobias

Comments

tobiberlin’s picture

Title: SQL Error when savin new content: Field 'nid' doesn't have a default value » SQL Error when saving new content: Field 'nid' doesn't have a default value
lissy’s picture

I get the same error with my fresh and minimal WAMP Installation.
The screen shows "Allowed memory size"-Error but memory_limit is 500 MB.
What could be the reason?

Version: 8.0.0-beta3 » 8.0.x-dev

Core issues are now filed against the dev versions where changes will be made. Document the specific release you are using in your issue comment. More information about choosing a version.

Version: 8.0.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Branches prior to 8.8.x are not supported, and Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pameeela’s picture

Status: Active » Closed (duplicate)
Issue tags: +Bug Smash Initiative

Thanks for reporting this issue. We rely on issue reports like this one to resolve bugs and improve Drupal core.

This issue is quite old and it looks like this issue might have been resolved as part of #2363099: Using translated field definition descriptions in entity schema results in different schema definitions, resulting in update.php changes so I'm going to mark it closed as a duplicate.

If anyone can provide complete steps to reproduce the issue (starting from "Install Drupal core") in the issue summary and set the issue status back to "Active".

Thanks!