Thanks to all the support from various post, and trying once again we were able to update from 3.5.1 to 3.5.17, now we do the same to production. Then see what it takes to upgrade to 3.9
By enabling debug we were able to see two custom plugins causing the upgrade issues. Along with Custom Label and SAML2 not being able to update after the upgrade.
Thanks for everyone's support. I have learned so much about Moodle
Here is the details of what we did:
Linux
1. Updated config.php
$CFG->debugusers = '12345';
@error_reporting(E_ALL | E_STRICT); // NOT FOR PRODUCTION SERVERS!
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debugdisplay = 1; // NOT FOR PRODUCTION SERVERS!
$CFG->debug = (E_ALL | E_STRICT);
$CFG->noemailever = true; // NOT FOR PRODUCTION SERVERS!
Moodle
2. Enable Debug
a. Site Administration > Development > Debugging
i. Debug messages: Developer
ii. Display debug messages: Yes
iii. Performance info: Yes
iv. Show page information: Yes
3. Update Custom Label
a.
Download Course element: Version 3.5.0 (Build 2018120600)
b. Delete the folder /customlabel/js from the zip
c. Remove the /customlabel/type/keypoints folder from the zip
d. Add the keypoint folder to the zip file from /moodle/mod/customlabel/type/
e. Site Administration > Plugins > Install plugins
i.
Upload the zip
ii. Press “Install plugin from the ZIP file” button, then “Continue”
iii. Press “Upgrade Moodle
database now” button at the bottom of the page.
4. Remove SAML2
a. Re-assigned to SAML2 authentication
SELECT id, username, lastname, firstname, email
FROM `mdl_user`
WHERE `auth` = 'saml2'
i. Reassign to ‘auth’ to ‘manual’
b. Site Administration > Plugins > Authentication > Manage Authentication
i. Disable SAML2 by clicking on the eyeball
c. Site Administration > Plugins > Plugins Overview
i. Unstall SAML2, Continue, Continue
ii. Wait…
iii. Press “Upgrade Moodle database now” button at the bottom of the page.
iv. Uninstall the other SAML2, Continue, Continue
v. Press “Upgrade Moodle database now” button at the bottom of the page.
5. Remove CUSTOM Gmail
a. Site Administration > Plugins > Plugins Overview
i. Uninstall CUSTOM Gmail, Continue, Continue
ii. Wait…
iii. Press “Upgrade Moodle database now” button at the bottom of the page.
6. Remove CUSTOM Mail
a. Site Administration > Plugins > Plugins Overview
i. Uninstall CUSTOM Mail, Continue, Continue
ii. Wait…
iii. Press “Upgrade Moodle database now” button at the bottom of the page.
Hyper-V
7. Snapshot
Linux
8. Run Upgrade Script
wget
http://sourceforge.net/projects/moodle/files/Moodle/stable35/moodle-latest-35.tgz
#Backup
mv moodle moodle.backup
#Download
tar xzf moodle-latest-35.tgz
#Config
cp moodle.backup/config.php moodle
#Themes
cp -pr /moodle.back/theme/CUSTOM_adaptable /moodle/theme
#Plugins
cp -pr /moodle.back/mod/bootstrapelements /moodle/mod/botstrapelements
#... not listing them here but we had around 40 folders to copy
#Permissions
#Upgrade
#Permissions
Moodle
9. Install avalible updates.
10. Disable Maintenance mode