Plugin not visible when trying to backup

Plugin not visible when trying to backup

by Franz Weidmann -
Number of replies: 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.


Average of ratings: -
In reply to Franz Weidmann

Re: Plugin not visible when trying to backup

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

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. 

Average of ratings: Useful (2)
In reply to Davo Smith

Re: Plugin not visible when trying to backup

by 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
In reply to Franz Weidmann

Re: Plugin not visible when trying to backup

by 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!