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()…