I see some problems raising about the changes of php5 to 7, in my tests i can't reproduce this errors, and everything goes right.
as you can see at https://travis-ci.org/bozoh/moodle/builds/412427835
But this errors , after looking for it in source code, seems yo be related to those lines:
https://github.com/bozoh/moodle-mod_simplecertificate/blob/MOODLE_35/locallib.php#L730-L744
And this error s because it's trying to call a method of a object which don't exist ( $courseitem, in this case), but i check this if it's exists before i call the method in:
https://github.com/bozoh/moodle-mod_simplecertificate/blob/MOODLE_35/locallib.php#L731
And it's not the first time i get this kind of error for a this type of of check
if ( $someobj = somefunction)
which works great in php5, but seems not work very well in php7, so i create a patch to fix those lines, and you could TEST it
to apply a patch:
- download and install v2.2.8
- go to pluging folder, and copy the patch file get_decimal.patch into it
- run the command patch < get_decimal.patch
patch its a linux command, common in many distros.
If this patch works i will change all the pluging code with this kind of check. (OMG!!!!!!!!!!)