11-10-15
I have been working on making a custom theme just to be used for mobile and tablet.
I followed the steps here:
https://docs.moodle.org/dev/Themes_2.2_how_to_clone_a_Moodle_2.2_theme
All I have done so far, is make a copy of the "More" theme folder, and change all mentions of "more" to opextheme (the new theme name) in the files listed on that webpage that the changes have to be made to, as well as all changes to config.php, etc. - changes were done as directed.
The only file I couldn't change per those directions was "renderers.php" because it wasn't located where the webpage said it should be (I am keeping in mind that those directions are for M 2.2 though and I'm using version 2.9.2, so I figured that that file is no longer changed in the newer M version).
No other changes were made to opextheme aside from the directions on that webpage.
I have uploaded opextheme to my Dropbox and pasted the link at the end of this post. I couldn't upload the file here due to max file size restrictions.
When I tried to install it as a zip file (which has always worked before), on the initial check the Plugin Checker found a language file and said "debug" instead of OK. I had installed four language packs on the site recently, so I thought it might be referring to that, so with backups of everything I went ahead and "updated moodle db" to finish the theme install.
But then it brought up this error:
"Upgrading to new version
theme_opextheme
Fatal error: Call to undefined function xmldb_theme_opextheme_install() in /home/bmontgomery/public_html/lib/upgradelib.php on line 515"
But when looking at the installed plugins list, it does say that opextheme was installed.
I looked at my /public_html/lib/upgradelib.php - line 515, and this is the coding from that line, as well as the lines just before and after:
/// execute post install file
if (file_exists($fullplug.'/db/install.php')) { require_once($fullplug.'/db/install.php'); set_config('installrunning', 1, $plugin->fullname); $post_install_function = 'xmldb_'.$plugin->fullname.'_install'; $post_install_function(); unset_config('installrunning', $plugin->fullname); }
The $post_install_function(); is line 515.
I do have dev. mode turned on on the site.
I searched for this issue on Tracker but didn't find it and was told to post this here instead.
Here's the link to the opextheme - https://www.dropbox.com/s/2p24bt3qwbx5u04/opextheme.zip?dl=0
I'd really appreciate any help with this. Thanks for your time!