Rule to send email don't work (with Scheduler rules trigger)

Created on 31 December 2021, about 3 years ago
Updated 23 April 2024, 9 months ago

I can't send an email with Scheduler rules

Steps to reproduce

1- Define a publication date on a node.
1- Create a new reaction rule with the 'After a node has been published by Scheduler' trigger.
2- Add a condition : Node type is article...
3- Add an action : Send email
3- Start cron

After the cron is launched, the node keep the unpublished status and the email is not sent. I also get this error:
"Symfony\Component\Routing\Exception\InvalidParameterException : Parameter "node" for route "entity.node.canonical" must match "\d+"..."

I can use a default rule trigger for this task (with a check on the status value changed/unchanged). But, in my opinion, it's easier to use the scheduler rules.

Can you give me a simple example to send email after that a node is published?

Thanks for your help.

💬 Support request
Status

Active

Version

2.0

Component

Scheduler Rules Integration

Created by

🇫🇷France kumkum29

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.

  • 🇯🇵Japan ilfelice

    Howdy,

    Just wondering: has this issue been addressed?

  • 🇬🇧United Kingdom danharper

    I'm getting the same issue, on d 10.3

    For me the scheduler_has_published_this_node_event doesn't seem to fire not matter what action I add to it.

  • 🇬🇧United Kingdom danharper

    I've changed this to bug as the symptoms are the same.

    I've tried debugging with xdebug and I can see that the events are being dispatched but nothing happens.

Production build 0.71.5 2024