I'm getting this error when browsing to admin/contents/scheduled:
Error: Call to a member function getTimestamp() on null in Drupal\moderation_scheduler\Plugin\views\query\ModerationSchedulerQuery->execute() (line 52 of modules/contrib/moderation_scheduler/src/Plugin/views/query/ModerationSchedulerQuery.php).
On inspecting line 51 of modules/contrib/moderation_scheduler/src/Plugin/views/query/ModerationSchedulerQuery.php I can see for some nodes the $scheduled_date value is null. Not sure if this is ever expected but we should probably skip adding nodes to the result array nodes when $scheduled_date is null. I'll create a MR for this change. Let me know if it's a suitable fix for the issue as I don't know this module very well.
Issue fork moderation_scheduler-3466913
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
welly commentedCreated new branch and committed a change here:
https://git.drupalcode.org/issue/moderation_scheduler-3466913/-/commit/1...
Comment #3
bigbabertComment #4
bigbabertComment #5
bigbabertComment #8
bigbabertComment #9
bigbabertI've tested the changes and it is ok, merged and added the fix to new release of the module, 9.1.6
Comment #10
bigbabertComment #11
bigbabertComment #12
welly commentedThank you!