You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the Dereferencer detects a property node that was deleted while still being referenced, a WSOD is spit out with
Warning: Undefined array key "value_referencer" in Drupal\Core\Logger\LoggerChannel->log()
followed by Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'severity' cannot be null: INSERT INTO "watchdog"
This is because the deferencer is giving an illegal value for the log level in that case.
Is there an existing issue for this?
Current Behavior
If the Dereferencer detects a property node that was deleted while still being referenced, a WSOD is spit out with
Warning: Undefined array key "value_referencer" in Drupal\Core\Logger\LoggerChannel->log()
followed by
Drupal\Core\Database\IntegrityConstraintViolationException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'severity' cannot be null: INSERT INTO "watchdog"
This is because the deferencer is giving an illegal value for the log level in that case.
This line is causing problems: https://github.com/GetDKAN/dkan/blob/2.x/modules/metastore/src/Reference/Dereferencer.php#L171
Expected Behavior
A message like
Property publisher reference '0efd1a5c-ee7f-5b27-bdf6-f106e78865bb' not found
should be output in watchdog in this case and not WSOD.
Steps To Reproduce
Environment
Relevant log output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: