-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined array key "groupName"
(Elections broken on CiviCRM >=5.47)
#12
Comments
The error is caused because the Elections extension is not compatible with the latest CiviCRM code. https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterMailParams/#details
It's not immediately obvious to me how the code should be updated, but this will have to be addressed somehow. Edit: the parameter Elections is using was officially announced as removed in CiviCRM 5.43 (see here) after being marked as deprecated for over a year (I think the code was actually removed in 5.47). Here's where the code for the CDNTaxReceipts extension was updated to account for the new API. I'm not sure if this fix can be straightforwardly applied mutatis mutandis to Elections or not. Would be grateful for some input from @agileware-justin or someone else who has worked on this (CiviCRM newbie here, and it's been donkeys' years since I've done much php). |
Undefined array key "groupName"
Undefined array key "groupName"
(Elections broken on CiviCRM >=5.47)
What version of PHP is the CLI using? |
Hi! The CLI's using the same version of PHP as the site: |
@agileware-justin This is related to a change in the hook interface as @simonwiles mentions, not a php versioning issue. It looks like |
Should be fixed in the 1.2.5 release. Thanks for your patience. |
As of this morning my CiviCRM cron jobs are returning the following line:
Any ideas what might be going on here, and how I might debug it? Thanks!
PHP: 8.0.30
CiviCRM: 5.65.2
Elections: 1.2.3
The text was updated successfully, but these errors were encountered: