Moodle

Role for "Default role for all users" set to guest not authenticated user after upgrade.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8, 1.9
  • Fix Version/s: 1.8.6, 1.9.2
  • Labels:
    None
  • Environment:
    Linux server running MySQL
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_18_STABLE, MOODLE_19_STABLE

Description

Initially we took an upgrade path of 1.6.2 -> 1.9 path. However, many aspects of our site appeared scrambled/broken. We therefore opted for an upgrade of 1.6.2 -> 1.8.2 -> 1.9, since another of our moodle installs had successfully been upgraded from 1.6 -> 1.8 last year. This upgrade was all done in a single hour. Once we upgraded, non-admin users found they couldn't edit their profiles. We eventually established that users were being treated as "Guests" when viewing their profiles. This was because in Site administration -> Users -> Permissions -> User policies, the "Default role for all users" was set to "Guest" rather than "Authenticated User". No changes had been make to this part of the site set up so I can only conclude that it defaulted to "Guest" after upgrade rather than "Authenticated User", which led to some very confusing behaviour.

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Perhaps it would be great to make the complete process:

1) Installl 1.6
2) Upgrade to 1.8.2
3) Upgrade to 1.9 +

and check what happens with admin?

If reproducible, I think we could review defaults for that setting in upgrade, perhaps something is wrong there.

Show
Eloy Lafuente (stronk7) added a comment - Perhaps it would be great to make the complete process: 1) Installl 1.6 2) Upgrade to 1.8.2 3) Upgrade to 1.9 + and check what happens with admin? If reproducible, I think we could review defaults for that setting in upgrade, perhaps something is wrong there.
Hide
Petr Škoda (skodak) added a comment -

I believe this was fixed in 1.9, not sure about 1.8.x though.

The recommended upgrade path is 1.6 -> 1.9.

Show
Petr Škoda (skodak) added a comment - I believe this was fixed in 1.9, not sure about 1.8.x though. The recommended upgrade path is 1.6 -> 1.9.
Hide
Stuart Anderson added a comment -

We did initially do exactly this, i.e. upgrade via a 1.6 -> 1.9 path. However, many aspects of our site appeared scrambled/broken. We therefore opted for an initial upgrade to 1.8, since another of our moodle installs had successfully been upgraded from 1.6 -> 1.8 last year.

Show
Stuart Anderson added a comment - We did initially do exactly this, i.e. upgrade via a 1.6 -> 1.9 path. However, many aspects of our site appeared scrambled/broken. We therefore opted for an initial upgrade to 1.8, since another of our moodle installs had successfully been upgraded from 1.6 -> 1.8 last year.
Hide
Petr Škoda (skodak) added a comment - - edited

Oh, did you report those problems during 1.6->1.9 upgrade? If not, please do so.

Show
Petr Škoda (skodak) added a comment - - edited Oh, did you report those problems during 1.6->1.9 upgrade? If not, please do so.
Hide
Stuart Anderson added a comment -

Petr, did you mean report the 1.6 -> 1.9 problems as a 'new' issue, or by adding info to the the original issue here? I've edited my issue here, but will happily submit a new bug if that is appropriate. Unfortunately I can't remember too many details about what was breaking and being scrambled.

Show
Stuart Anderson added a comment - Petr, did you mean report the 1.6 -> 1.9 problems as a 'new' issue, or by adding info to the the original issue here? I've edited my issue here, but will happily submit a new bug if that is appropriate. Unfortunately I can't remember too many details about what was breaking and being scrambled.
Hide
Helen Foster added a comment -

More reports of role for "Default role for all users" set to guest not authenticated user after upgrade causing problems: http://moodle.org/mod/forum/discuss.php?d=93977

See also MDL-14159

Show
Helen Foster added a comment - More reports of role for "Default role for all users" set to guest not authenticated user after upgrade causing problems: http://moodle.org/mod/forum/discuss.php?d=93977 See also MDL-14159
Hide
Petr Škoda (skodak) added a comment -

Should be fixed now :-D

  • upgrade 1.6.x -> 1.8.6 does not set guest account anymore there
  • upgrade anything ->1.9.2 removes the guest account if found there
Show
Petr Škoda (skodak) added a comment - Should be fixed now :-D
  • upgrade 1.6.x -> 1.8.6 does not set guest account anymore there
  • upgrade anything ->1.9.2 removes the guest account if found there
Hide
Nicolas Connault added a comment -

Tested and verified.

Show
Nicolas Connault added a comment - Tested and verified.

Dates

  • Created:
    Updated:
    Resolved: