Scheduling fails for node without content moderation enabled

Created on 5 September 2024, 7 months ago

Problem/Motivation

On a site with Scheduler and Scheduler Content Moderation enabled on only certain node types, scheduling works for those node types, but not for node types still using normal publishing. When the scheduling cron runs, the logs indicate that publishing succeeded, but when visiting the node form I see the node is still unpublished. When checking the database I see publish_on is set, but publish_state isn't, which kinda makes sense, but it seems like this module can't deal with that situation.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dieterholvoet
  • 🇬🇧United Kingdom jonathan1055

    Hi dieterholvoet,
    Sorry for the last response. This slipped though the net.

    If what you describe really does happen then it's a bug we need to fix. I will try to replicate it, but I thought we would have already tested this scenario.

  • 🇬🇧United Kingdom jonathan1055

    I have checked the scenario you describe but cannot replicate the error. I used -

    • SCMI 3.0.3 which was the latest release at the time you raised the issue (4 Sep)
    • Scheduler 2.1.0 which was the latest release as at (4 Sep)
    • Core 10.4
    • Article node type enabled for scheduling and moderation, using default Editorial workflow
    • Page node type, enabled for scheduling but not for moderation
    • Created a page, set scheduled publish date for the future. When cron ran it was published as expected
    • Re-scheduled the page, also scheduled an article to be published in the same cron run. Both got published correctly

    I also repeated the above with the latest versions (Scheduler 2.2.1, SCMI 3.0.4) and got the same results.

    Maybe you have another module which is interfering with the process? If you can reproduce the problem with a clean Drupal instalation please give the steps, and we can take it from there.

Production build 0.71.5 2024