open-lms-open-source / moodle-mod_lightboxgallery

Lightbox Gallery resource module for Moodle 2.0
GNU General Public License v3.0
30 stars 37 forks source link

Unable to add mod instance on Totara 12 #87

Closed logan-reynolds closed 5 years ago

logan-reynolds commented 5 years ago

Got the following error which prevents me from adding an instance on Totara 12 using the latest M33 version of mod_lightboxgallery version 2018062700:

Exception - Class 'core_completion\api' not found
Debug info:
Error code: generalexceptionmessage
Stack trace:

    line 84 of /mod/lightboxgallery/lib.php: Error thrown
    line 121 of /course/modlib.php: call to lightboxgallery_add_instance()
    line 176 of /course/modedit.php: call to add_moduleinfo()
aolley commented 5 years ago

Hi - I've just tested this on the latest version of Moodle and dev versions (3.6 and 3.7+) where this continues to work as expected.

I'm not sure what version of Moodle T12 is based on - but either way I think you'll be better served with filing a support request with Totara.

That class should be autoloaded automatically, and has been available in Moodle since version 3.3.

logan-reynolds commented 5 years ago

Found this is caused by Totara 12 omitting the Activity Completion API ( /completion/classes/api.php file ) - closing