Plugin not visible when trying to backup

Plugin not visible when trying to backup

Franz Weidmann
Vastuste arv 3

Hey guys,

i followed the tutorial for the backup code for moodle2 and now when im trying to make a backup, the plugin isnt visible, so there cant be made a backup. I see other plugins, so i assume there is something wrong with my plugin.

Now i wonder why.


Code:

https://github.com/Aequalitas/moodle-mod_courseboard


Besides that, would be nice when someone notices a mistake in the backup code.

Thanks for help.


Keskmine hinnang: -
Vastuses Franz Weidmann

Re: Plugin not visible when trying to backup

Davo Smith
Core developers pilt Particularly helpful Moodlers pilt Peer reviewers pilt Plugin developers pilt

You seem to be missing a coursework_supports function in your lib.php file.

This is needed to tell moodle what features your plugin supports, including the fact that it supports backup. Look at any of the core activities to see how this works. 

Vastuses Davo Smith

Re: Plugin not visible when trying to backup

Franz Weidmann
Ok thanks that seems to work,
but although i named everything right(?) this error occurs when i click on backup:

Fatal error: Class 'backup_courseboard_activity_task' not found in ....\moodle\backup\util\factories\backup_factory.class.php on line 107
Vastuses Franz Weidmann

Re: Plugin not visible when trying to backup

Franz Weidmann

Ok found the mistake,

i named everything correctly but that doesnt help when the moodle2 file doesnt exist : P

But again thanks for help!