Created on 27 April 2021, over 3 years ago
Updated 30 April 2024, 7 months ago

Problem/Motivation

publish at is not filled after cron run with scheduler

Steps to reproduce

install scheduler
create node with scheduler publish on option
run cron after the selected date

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine trishen Kharkiv

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cedewey Denver, CO

    Steve, your patch worked great. Thanks so much!

  • πŸ‡«πŸ‡·France GuillaumePacilly

    Hey, thanks a lot for the patch.

    I have a similar issue when the user set a "publish on" date in the past from the node add form. In that case another scheduler event is triggered (Prepublish).

    I have updated the patch to handle this case as well.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update 11 months ago
    3 pass
  • πŸ‡«πŸ‡·France GuillaumePacilly

    Previous patch missed service argument for the PublicationDateSubscriber

  • Status changed to Needs work 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States integratrix

    I tested patch #10 with Publication Date 8.x-2.0-beta7, Scheduler 2.0.2 and Drupal 10.2.2 and it gave me an error.

    TypeError: Drupal\publication_date\EventSubscriber\PublicationDateSubscriber::onSchedulerPublish(): Argument #1 ($event) must be of type Drupal\scheduler\SchedulerEvent, Drupal\scheduler\Event\SchedulerEvent given in Drupal\publication_date\EventSubscriber\PublicationDateSubscriber->onSchedulerPublish() (line 50 of modules/contrib/publication_date/src/EventSubscriber/PublicationDateSubscriber.php).

    Replacing use Drupal\scheduler\SchedulerEvent with use Drupal\scheduler\event\SchedulerEvent resolved error for me.

Production build 0.71.5 2024