Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello.. after upgrading to 6.x-1.10 from 6.x-1.9 on a user-based view I can't use "send email" or "send tokenised email". On the drupal log I have an error "Cannot use %author token in this context."
I cleared the cache and the view cache, tryed it on a newly created view and tried both direct call/batch api but nothing. Only way to work was to go back to 1.9.
Am I the only one with this problem?
Comments
Comment #1
infojunkieI'll take a look. But I recommend using Views Send which is a more robust email sending action.
Comment #2
sylvaticus CreditAttribution: sylvaticus commentedok, thanks..
Comment #3
restyler CreditAttribution: restyler commentedgot the same issue
Comment #4
scjv CreditAttribution: scjv commentedI have the exact same problem.
Only tokens of the group "Global" works well.
Comment #5
WoozyDuck CreditAttribution: WoozyDuck commentedSame issue here, any solutions for this?
Comment #6
WoozyDuck CreditAttribution: WoozyDuck commentedComment #7
jelle-e CreditAttribution: jelle-e commentedYes, same problem here. I get the following in my syslog:
Jan 19 00:50:19 server drupal: http://website|1295394619|error|10.0.0.1|http://website/usersort|http://website/usersort|4||Cannot use %author token in this context.
Indeed reverting back to 1.9 works! Thanks for that.
Hope it will be solved in a future release.
Comment #8
restyler CreditAttribution: restyler commentedComment #9
WoozyDuck CreditAttribution: WoozyDuck commentedNo one to help?
Comment #10
infojunkieAs I suggested previously, Views Send is a module that aims at providing a better replacement to the broken core email action.
Comment #11
_toch CreditAttribution: _toch commentedIn revision 1.29.2.9.2.146, there was the following function views_bulk_operations_form_alter
It disappeared at the next revision 1.29.2.9.2.147
Including it in 6.x-1.10 doesn't work if you don't use a node view because the recipient is set to %author and the function system_send_email_action want a node in order to replace the token %author.
Comment #12
bojanz CreditAttribution: bojanz commentedThe issue is already fixed in 6.x-1.x-dev (the offending code was removed).