Steps to reproduce:
Create a rule that reacts on content being viewed. Create an action that sends a mail.
When hitting the "Save" button, I get "The website encountered an unexpected error. Please try again later.".
In the error.log, I can find:
[Sun Apr 17 21:18:45 2016] [error] [client 188.193.196.26] Uncaught PHP Exception InvalidArgumentException: "The configuration property expression.actions.actions.0.context_values.to.0 doesn't exist." at /home/turion/manuel/core/lib/Drupal/Core/Config/Schema/ArrayElement.php line 79, referer: https://www.manuelbaerenz.de/admin/config/workflow/rules/reactions/edit/...
Comment | File | Size | Author |
---|---|---|---|
#4 | rules-InvalidArgumentExceptionOnSendMailActionSave-2708021-4-d8.patch | 371 bytes | oushen |
|
Comments
Comment #2
ToxaViking CreditAttribution: ToxaViking commentedHave the same issue during save rule with Send email Action
Comment #3
giuliovale CreditAttribution: giuliovale commented@ToxaViking same error in my case with Send email Action
Comment #4
oushen CreditAttribution: oushen as a volunteer commentedComment #5
giuliovale CreditAttribution: giuliovale commented#4 fix this error
Comment #6
hauruck CreditAttribution: hauruck at UEBERBIT GmbH commentedYes, #4 solves the problem here too, thank you!
Comment #7
ToxaViking CreditAttribution: ToxaViking commented#4 works for me
Comment #8
FiNeX CreditAttribution: FiNeX as a volunteer commentedThanks for the patch, it works as expected.
Comment #9
rick_p CreditAttribution: rick_p as a volunteer commentedThank you Oushen!! It fixed my Exception error as well. For those new to patching, this will help...
Place the patch in the Rules module schema folder (/modules/rules/config/schema)
Then run this command from the command line, be sure to navigate into the schema folder first or adjust the command to include the full path: patch < rules-InvalidArgumentExceptionOnSendMailActionSave-2708021-4-d8.patch
Comment #10
btafoya CreditAttribution: btafoya commentedN/A, no longer an issue.
Comment #11
klausiLooks like this is missing tests? Can you also file a pull request at https://github.com/fago/rules/pulls
Comment #12
alessio_buscemi CreditAttribution: alessio_buscemi at Ibuildings commentedComment #13
alessio_buscemi CreditAttribution: alessio_buscemi at Ibuildings commentedIn the branch 8.x-3.x the issue is already resolved and the tests (testSendMailToTwoRecipients and testSendMailToOneRecipientcorrectly) work correctly.
the patch is no longer required.
Comment #14
acrollet CreditAttribution: acrollet commentedMarking as fixed based on #13