Plugin is defective or outdated, Self test failed

You may see an error like this when upgrading a block: Default exception handler: Plugin “{block name}” is defective or outdated, can not continue, sorry. Debug: Self test failed. Error code: detectedbrokenplugin * line 833 of /lib/upgradelib.php: plugin_defective_exception thrown * line 425 of /lib/upgradelib.php: call to upgrade_plugins_blocks() * line 1639 of /lib/upgradelib.php: call to upgrade_plugins()…

Finding specific Moodle versions in the Moodle Git Repository

The key to working with the Moodle git repository (https://docs.moodle.org/31/en/Git_for_Administrators) is to look at changes to the version.php file in the main moodle directory which tells you the moodle version. You can use the whatchanged git command to get a summary of all changes and tags. git whatchanged -p version.php But more than likely if…