I've been trying to create a new moodle theme, so I followed http://docs.moodle.org/dev/Themes_2.2_how_to_clone_a_Moodle_2.2_theme
I cloned the binarius theme from our moodle (V2.3.2+) into the rwptheme folder because it seemed like the one that was closest to the look I was after, edited the version.php file in the new rwptheme folder so the component name was theme_rwp instead of theme_binarius, edited the config.php file to set the theme name to 'rwptheme', renamed theme_binarius.php to theme_rwptheme.php in the lang/en folder, then edited it to change the pluginname to rwptheme, and updated the description to reflect my new theme.
When I log in, I get plugin install screen which shows the Plugin Name as rwptheme, and the directory as /theme/rwptheme, but when I click on the upgrade database button, I get the error in the attached screenshot which says:
plugin theme_rwptheme is defective or outdated, can not continue, sorry.
Under debug info, I get:
plugin installed in wrong folder.
Error code detectedbrokenplugin
Stack Trace: line 385 of /lib/upgradelib.php: plugin_defective_exception thrown
line 1524 of /lib/upgradelib.php: call to upgrade_plugins()
line 329 of /admin/index.php: call to upgrade_noncore()
I'm a little confused as to why it works OK on 2.3.4 and 2.4+, but doesn't on 2.3.2+ when that's where it came from originally?
I'd upgrade moodle to the 2.4+ version if I could, but our webserver only has PHP v5.3.17 and I can't upgrade that at the moment.
Any help would be very gratefully received!