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.

Command icon 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

welly created an issue. See original summary.

welly’s picture

Status: Active » Needs review
bigbabert’s picture

Component: Documentation » Code
Assigned: Unassigned » bigbabert
bigbabert’s picture

bigbabert’s picture

  • ameliaethan committed 63841eb0 on 9.0.0
    Issue #3466913 by welly, bigbabert: Error: Call to a member function...

bigbabert’s picture

bigbabert’s picture

Status: Needs review » Reviewed & tested by the community

I've tested the changes and it is ok, merged and added the fix to new release of the module, 9.1.6

bigbabert’s picture

Version: 9.1.5 » 9.1.6
Status: Reviewed & tested by the community » Fixed
bigbabert’s picture

Status: Fixed » Closed (fixed)
welly’s picture

Thank you!