Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8
-
Component/s: Installation
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
-
Fixed Branches:MOODLE_18_STABLE, MOODLE_19_STABLE
Description
Install fails:
Upgrading Moodle database from version 1.6.4+ (2006050540) to 1.8 Beta + (2007021402)...
--------------------------------------------------------------------------------
(mysql): SELECT * FROM mdl_role_capabilities WHERE roleid = '1' AND capability = 'moodle/legacy:user' AND contextid = '1' LIMIT 1
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
(mysql): SELECT * FROM mdl_capabilities
--------------------------------------------------------------------------------
Error: no capabilitites defined!
then loops through the pages......
I'm tracing the code now - will post more details in the next hour or so.....
Issue Links
| This issue will help resolve: | ||||
| MDL-8873 | Upgrade from 1.6.3+ to 1.8 beta is confusing.. |
|
|
|
Thanks for looking into this,
I guess this problem is caused by the fact that roles are used in upgrade before they are initialized. Maybe some some upgrades should be made optional based on value of $CFG->rolesactive