learnweb / moodle-mod_moodleoverflow

:speech_balloon: Non-linear discussion module for Q&A forums
GNU General Public License v3.0
15 stars 22 forks source link

Upgrade from prior version failing on Moodle 3.7 #76

Closed logan-reynolds closed 1 year ago

logan-reynolds commented 3 years ago

When trying to upgrade to the latest version 2020111300 release v3.10-r1 from the prior version 2018021300 release v3.4-r2 on Moodle 3.7, I'm getting the following error when trying to upgrade on the command line:

-->mod_moodleoverflow
Default exception handler: Exception - Call to undefined function moodleoverflow_update_all_grades() Debug: 
Error code: generalexceptionmessage
* line 135 of /mod/moodleoverflow/db/upgrade.php: Error thrown
* line 818 of /lib/upgradelib.php: call to xmldb_moodleoverflow_upgrade()
* line 524 of /lib/upgradelib.php: call to upgrade_plugins_modules()
* line 1869 of /lib/upgradelib.php: call to upgrade_plugins()
* line 186 of /admin/cli/upgrade.php: call to upgrade_noncore()

!!! Exception - Call to undefined function moodleoverflow_update_all_grades() !!!
!! 
Error code: generalexceptionmessage !!
!! Stack trace: * line 135 of /mod/moodleoverflow/db/upgrade.php: Error thrown
* line 818 of /lib/upgradelib.php: call to xmldb_moodleoverflow_upgrade()
* line 524 of /lib/upgradelib.php: call to upgrade_plugins_modules()
* line 1869 of /lib/upgradelib.php: call to upgrade_plugins()
* line 186 of /admin/cli/upgrade.php: call to upgrade_noncore()
 !!

Noting that this seems specific to only upgrade on the CLI via the Moodle admin/cli/upgrade.php script, as a fresh install (non-upgrade) via CLI works, and upgrade in the browser from the prior version appears to also work

NinaHerrmann commented 1 year ago

Sorry for not being able to look into the issue. I assume now it is too late.