Fatal error when trying to send email
Installed the extension in a WP/Civi site running CiviCRM 5.57. Tried to email and invoice, and got a fatal error. This is the apache error log:
PHP message: PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function CRM_Contribute_Form_Task_PDF::getElements(),
3 passed in /home/wp/sites/wp/wp-content/uploads/civicrm/ext/invoicehelper-1.1/CRM/Invoicehelper/Contribute/Form/Task/Invoice.php on line 73
and exactly 4 expected in /home/wp/sites/wp/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Task/PDF.php:243
Edited by bgm