Moodle Plugins directory: Moodle flavours | Moodle.org
Moodle flavours
Please, use https://moodle.org/plugins/block_admin_presets instead of moodle flavour to import/export Moodle site settings. You can still use Moodle flavours to pack plugins, language packs and language strings customisations, but it is not recommended for settings.
With this plugin Moodle Administrators will be able to create a flavour from their installation, selecting which settings, plugins and language packs will be packaged into a compressed file. They can then, share the package with the Moodle community, store it as a backup or use it to replicate the flavour to other installations they manages. It could also be useful for administrators with little Moodle experienced, allowing them to explore the Moodle settings and setup recommended by others.
It has been developed as part of Google Summer of Code 2011 and mentored by Michael de Raadt.
Moodle 2.1 or higher required, to install, please, follow the README steps.
Many thanks for the report, hopefully during this weekend I'll find time to solve it.
Regards,
David
The commit you commented about was a work in progress for Moodle 2.4, I've updated the download page of the 2.3 version to point to the MOODLE_23_STABLE branch, so if you are using Moodle 2.3 checkout from the MOODLE_23_STABLE instead of master.
I've also released the new version for Moodle 2.4 which solves the flavours deployment problem with the tree which causes HTML warnings to be displayed like plain text.
Thanks for reporting the issue,
David
I've found a problem with the new version for Moodle 2.4 which prevents tree items to be selected, it's solved now, sorry for the inconvenience
it would be nice if there are any plans to update it to work with 2.9 or maybe 3.0,
current error is:
PHP Fatal error: require_once(): Failed opening required '/var/www/uc/lib/pluginlib.php' in /var/www/uc/local/flavours/ingredient/flavours_ingredient_plugin.class.php on line 26,
Thanks for reporting the issue Tong and Daniel, https://tracker.moodle.org/browse/MDL-46122 has been pluginlib.php final deprecation, it shouldn't be too hard to update the code to use core_component (lib/classes/component.php) instead. I will try to find time for it, but feel free to send a pull request as my daughter will be born one of these days and I doubt I will have time for it at short term.
Cheers,
David
I run Moodle 3.1 with Adaptable theme
I ask on the forum how to save all the settings from the Administration menu: fonts, colors, images, etc. to transfer them to the production site in a second time, and I was guided to your plugin. Do you know if it's works on Moodle 3.1 ? And is there any risk to test it ?
Although it should work I would always first try in a testing environment and compare mdl_config table differences. If you are only interested in exporting and importing setting, I would recommend you https://moodle.org/plugins/block_admin_presets, which also exports / imports settings but using Moodle's administrations settings API instead of raw database writes to config table. It is more reliable.
The Flavour was successfully created and downloaded.
But on target server -- with EXACTLY the same codebase -- I get:
1. Flavours Deployment - Ingredients previsualization
Step 2 - Ingredients previsualization
Warning : All Adaptable settings will be overwritten (which is what I want!)
2. Hit [Deploy]. Success
3. [Continue to Notifications]
4. Site Admin > Purge all caches
5. No changes saved!
There are no php errors thrown (I have error reporting switched on).
Admin_presets is not a solution -- it does not work with Moodle v3.x.
I'll file an Issue on the Tracker.
I've pushed some fixes (thanks to Marina Glancy) to make https://moodle.org/plugins/block_admin_presets compatible with Moodle 3.0, 3.1 & 3.2 (currently in development) moodle flavours may have some similar bugs as it is not using admin settings APIs.
A big "THANK YOU!" for this amazing plugin--makes it so much easier and saves admins hours and hours to deploy new Moodle instances including admin presets and plugins....(great for sandboxing and upgrading!)....any chance this plugin will be updated for version 3.1 soon?
Thanks again for all your hard work!
Regards,
--Joe
Thx for your help
Cheers,
Jesse