Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-15607

Edit profile page breaks if countriles.php is empty



    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.3
    • 1.9.4
    • Administration, General, Other
    • None
    • LAMP


      I just added a custom profile field called "active," with two possibilities: 0 (default) and 1.

      Required = yes
      Locked = no
      Visible to = not visible
      Menu options = 0,1 (on separate lines)
      Default = 0

      Immediately after saving this new field, I tried to edit a user profile. Instead of the normal editing screen, I got a completely blank page (logged in as admin). If I log in as a regular user and try to edit my profile, I get the same result.

      Profiles are still viewable, and the field does show up there (to me as an admin; didn't check for others).

      I deleted the custom field, but I am still experiencing this problem.

      Some users can edit their profiles, some can't. There is no correlation between system-level or course-level roles and ability to edit profiles. (I.e. some admin accounts can, some can't, etc)

      It does not seem to be correlated to version of Firefox or OS (Win vs Mac). Using IE turns up strange behavior: three users (one admin, two non-admin) could edit their profiles until testing it in IE on Windows. Now neither can edit their profile in any browser on any OS.

      Here are the error messages that appear when I turn debugging on:

      Notice: Undefined variable: string in /var/www/html/lib/moodlelib.php on line 4847

      Fatal error: Unsupported operand types in /var/www/html/user/editlib.php on line 164

      Restoring the user-related database tables from backup did not resolve the problem. I have not yet been able to recreate the problem by restoring the backup to a test server and following the above steps.

      See forum thread here: http://moodle.org/mod/forum/discuss.php?d=100922




            timhunt Tim Hunt
            carolinemoore Caroline Moore
            Petr Skoda Petr Skoda
            Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            0 Vote for this issue
            2 Start watching this issue