- First commit to issue fork.
- Merge request !11546Issue #2821507: Handle exceptions gracefully when saving node forms → (Open) created by acbramley
Node forms do not properly handle errors that occur while saving nodes.
It is possible to hide the node title or other required fields from the form display, but this causes an uncaught exception when saving the node/entity because a title/field actually is required:
Uncaught PHP Exception Drupal\\Core\\Entity\\EntityStorageException: "SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null
Catch and log errors.
Doing this generically for other entities is handled by #3160721: Handle exceptions gracefully when saving entity forms → . This fixes the most common use case, now, before attempting to fix everywhere in a more standard way ( See #63 🐛 Handle exceptions gracefully when saving node forms Needs work ).
None.
A message is shown to the user if the node save fails.
None.
None.
Needs work
11.0 🔥
node system
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.