Plugin not visible when trying to backup

Plugin not visible when trying to backup

door Franz Weidmann -
Aantal antwoorden: 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.


Gemiddelde van de beoordelingen:  -
Als antwoord op Franz Weidmann

Re: Plugin not visible when trying to backup

door Davo Smith -
Foto van Core developers Foto van Particularly helpful Moodlers Foto van Peer reviewers Foto van 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. 

Gemiddelde van de beoordelingen: Useful (2)
Als antwoord op Davo Smith

Re: Plugin not visible when trying to backup

door 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
Gemiddelde van de beoordelingen:  -
Als antwoord op Franz Weidmann

Re: Plugin not visible when trying to backup

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

Gemiddelde van de beoordelingen:  -