Open zenourn opened 2 years ago
I got around to fixing this, was due to some changes in PHP8.
in configure.php I changed:
$indexSubSet = sizeof($config['email-dashboard-settings'][1]['value']);
to
$indexSubSet = 0;
$value = $config['email-dashboard-settings'][1]['value'];
if (is_countable($value) && count($value) > 0) {
$indexSubSet = sizeof($value);
}
in saveForm.php I changed:
$new_alert_id = max($alert_id) + 1;
to:
$max_alert_id = 1;
if (count($alert_id)>0) {
$max_alert_id = max($alert_id) + 1;
}
and everything seems to work. After further testing and also testing under previous versions of PHP will then submit a PR.
When using REDCap 12.2.1 and PHP 8.0.14 I get a fatal error when attempting to configure this within a project:
based upon a similar error in another external module:
https://community.projectredcap.org/questions/119956/cross-project-piping-php-8-error.html
It looks like this module is incompatible with PHP 8?