I want to upgrade Moodle 4.0.5 to 4.0.8, but after reading the official Upgrade documentation, there is no explanation if we use third-party plugins and themes.
I have installed Lambda Theme (purchased from third-party) and some plugins downloaded from Moodle plugin directory. How can I upgrade Moodle to 4.0.8 without loosing all data, plugins and the theme I've installed?
Thanks in advance.
Best regards,
Steve
Broadly the steps are:
- Move all files and folders from the Moodle source code folder (the site's home directory) into a backup folder.
- Download and extract the newer Moodle version's files into the source code folder.
- Copy
config.php
from the backup folder into the source code folder along with any additional plugins and themes. - Log into your site as an admin to start the upgrade.
Performing a database backup first is a sensible precaution as Ken suggests.
After performing the Moodle upgrade it would be good to check if any third party plugins or themes need updating too.
Thank you for your reply.
I decide to upgrade to Moodle 4.1.3. All plugins and the theme are compatible with Moodle 4.1.3.
Before proceeding with the upgrade, first I will do a backup of the database and all old Moodle files (expect config.php) will move to new backup folder.
By default, in the Moodle file directory, there is a "themes" folder where I will paste the third-party theme files. However, what about the custom installed plugins? Do I need to download all the files and put them in the default folder (if yes then which folder), or will I need to do that during the upgrade process?
See the screenshot of all custom installed plugins right now: https://ibb.co/bgSJn4v
Best regards,
Steve
https://moodle.org/plugins/
to see if there is a version for your destination version (4.1).
One of those, Custom Certificate, has dependencies - other plugins related.
So it appears you only have 4 + the commercial Lambda theme which you have
to check with maker of.
This is the full list of plugin types and their corresponding folders. As you'll see this lists themes as going in the /themes
folder, and the other folders Ken listed.
Some plugins can also have sub-plugins, such as Custom Certificate's customcertelement_??? items. These normally come with the plugin. Unless you know that you also have additional sub-plugins then you don't have to worry about these, just get the main plugin and they should all be present.
Now, I successfully upgraded to 4.0.8 without any issue... So, next I will proceed with upgrading to 4.1.3 and I hope that everything will go smoothly without any issue.
I don't have luck this time, at all.
There is an issue with tiny_autosave
Here is screenshot: https://ibb.co/Rc95tHy
I have no idea whether to continue with upgrading or....
That error suggests there has been a previous attempt to upgrade to Moodle 4.1 that did not complete successfully. The error is reporting that a database table that is to be added as part of the upgrade to Moodle 4.1 is already present.
You could try deleting that table – mdlnk_tiny_autosave
– and see if the upgrade completes successfully. Make sure you have taken a backup of the database before making changes such as this.
If that doesn't work you may need to delete then recreate then restore your Moodle database.
Now everything works fine, without any issues.
Thank you so much to all of you for the support.
Best regards,
Steve