-

Note: You are currently viewing documentation for Moodle 3.10. Up-to-date documentation for the latest stable version of Moodle may be available here: error/moodle/detectedbrokenplugin.

error/moodle/detectedbrokenplugin: Difference between revisions

From MoodleDocs
m (Added link to spanish translation page)
No edit summary
 
Line 2: Line 2:


In the case of a Theme, then it is more than likely there is a file that has not been renamed correctly, or the theme is missing a vital component like a version.php, or that the version.php is not correct in some small detail, usually the plugin version.
In the case of a Theme, then it is more than likely there is a file that has not been renamed correctly, or the theme is missing a vital component like a version.php, or that the version.php is not correct in some small detail, usually the plugin version.
To correct this, you must add the theme/THEMENAME/lang/en/theme_THEMENAME.php file, where THEMENAME is the name of the theme folder. Inside that file, add the string "$string['pluginname'] = 'THEMENAME'; ". Make THEMENAME the name of your theme, however you want it displayed in the Theme selector.
Also, make sure to change your config.php file and version.php file to reflect the correct name:
In config.php: $THEME->name = 'NAME';
In version.php: $plugin->component = 'theme_NAME'; // Full name of the plugin (used for diagnostics)


For more information read [[Development: Themes 2.0|Themes 2.0]]
For more information read [[Development: Themes 2.0|Themes 2.0]]

Latest revision as of 21:10, 15 February 2013

A broken plugin, such as a module, has been detected. In order for the upgrade to proceed, the broken plugin should be deleted.

In the case of a Theme, then it is more than likely there is a file that has not been renamed correctly, or the theme is missing a vital component like a version.php, or that the version.php is not correct in some small detail, usually the plugin version. To correct this, you must add the theme/THEMENAME/lang/en/theme_THEMENAME.php file, where THEMENAME is the name of the theme folder. Inside that file, add the string "$string['pluginname'] = 'THEMENAME'; ". Make THEMENAME the name of your theme, however you want it displayed in the Theme selector.

Also, make sure to change your config.php file and version.php file to reflect the correct name:

In config.php: $THEME->name = 'NAME';

In version.php: $plugin->component = 'theme_NAME'; // Full name of the plugin (used for diagnostics)

For more information read Themes 2.0