mlutfy / reporterror

Sends you a detailed email when a CiviCRM fatal error occurs.
https://lab.civicrm.org/extensions/reporterror
10 stars 7 forks source link

Reporterror extension reports its own error :-) #31

Closed magnolia61 closed 6 years ago

magnolia61 commented 6 years ago

Hi there, Just ran into a message at the end of making a contribution process. When I disable the extension the proper error is shown. With reporterror enabled the screen in the screenshot is displayed.

ArgumentCountError: Too few arguments to function reporterror_setting_get(), 1 passed in /var/www/vhosts/xyz/webroot/sites/all/modules/civicrm_extensions/ca.bidon.reporterror/CRM/ReportError/Utils.php on line 49 and at least 2 expected in reporterror_setting_get() (line 392 of /var/www/vhosts/xyz/webroot/sites/all/modules/civicrm_extensions/ca.bidon.reporterror/reporterror.php).

screenshot from 2018-10-19 12-17-51

Just wondering: is my reporterror-extension install flawed or would this point to a real problem?

mlutfy commented 6 years ago

Hi @magnolia61

Sorry for the inconvenience this must have caused. The error was already fixed in git, but I had not released a new version. I had also encountered this on PHP 7.2, but it did not seem to affect my other sites on 7.0, so I had not prioritized it.

I published a new version: https://civicrm.org/extensions/civicrm-error-report-handler/version-32

Can you confirm if it fixes the issue for you?

mlutfy commented 6 years ago

Seems OK for me, so I'll go ahead and close this issue.