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
Looking at either the revisions list page or comparing two revisions, there are multiple warnings and deprecation notices.
Expected Behavior
Ought to not see scary bits on the screen.
Steps To Reproduce
Navigate to a dataset
Click on the 'Revisions' tab
See the page fill with multiple (~30) warnings like this.
Warning: Undefined array key "value_referencer" in Drupal\Core\Logger\LoggerChannel->log() (line 123 of core/lib/Drupal/Core/Logger/LoggerChannel.php).
Deprecated function: syslog(): Passing null to parameter #1 ($priority) of type int is deprecated in Drupal\syslog\Logger\SysLog->syslogWrapper() (line 114 of core/modules/syslog/src/Logger/SysLog.php).
Using the "Compare selected revisions" button results in a similar cascade of Warnings.
Environment
- OS: Mac in DDEV, also on dev instance
- Node: -
- npm: -
I'm unable to reproduce this. I create a new DKAN site and use the sample_content module to create datasets. I visit the revision tab for a dataset and it displays fine, without any errors.
It's entirely possible that there's an edge case we're not testing for here because the coverage report says the code in the Dereferencer class is not covered. In fact there are two places where we call log(), and only one has coverage. The Referencer class has two log() calls as well, and neither has coverage.
Recommendation:
Figure out the specifics for how to repro.
Add a kernel test that hits the calls to log() in the Referencer and Dereferencer classes.
Examine other changes from the LoggerTrait deprecation and see if we need coverage/fixes for those, too. Deprecate LoggerTrait #4140
Is there an existing issue for this?
Current Behavior
Looking at either the revisions list page or comparing two revisions, there are multiple warnings and deprecation notices.
Expected Behavior
Ought to not see scary bits on the screen.
Steps To Reproduce
Environment
Relevant log output
Anything else?
The relevant bit of code in Drupal 10.3 has not changed in 10 yrs
https://git.drupalcode.org/project/drupal/-/blob/10.3.x/core/lib/Drupal/Core/Logger/LoggerChannel.php?ref_type=heads&blame=1#L49
The relative bit of code in DKAN changed 3 months ago.
https://github.com/GetDKAN/dkan/blame/db9ceb6fa5a5f752b9be0d05ff21b64c2b579ce6/modules/metastore/src/Reference/Referencer.php#L191C7-L191C7
The text was updated successfully, but these errors were encountered: