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

warnings and errors in user profiles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5.5, 2.6.2, 2.7
    • Fix Version/s: 2.5.6, 2.6.3
    • Component/s: Other
    • Labels:
      None
    • Testing Instructions:
      Hide

      start testing If you never yet accessed user profiles (the table user_info_category is empty)

      1. Open user profiles page
      2. Make sure there are no debugging messages
      3. Click "edit" cog on the category
      4. edit it or cancel
      5. Create new field
      6. Edit new field
      Show
      start testing If you never yet accessed user profiles (the table user_info_category is empty) Open user profiles page Make sure there are no debugging messages Click "edit" cog on the category edit it or cancel Create new field Edit new field
    • Affected Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE, MOODLE_26_STABLE
    • Pull Master Branch:
      wip-MDL-45154-master

      Description

      Discovered while testing MDL-44658 :

      When entering user profiles page for the first time there is a warning:

      You should really redirect before you start page output
       
          line 758 of /lib/outputrenderers.php: call to debugging()
          line 2592 of /lib/weblib.php: call to core_renderer->redirect_message()
          line 121 of /user/profile/index.php: call to redirect()
      

      If I continue and click "Edit" cog near the category, I get a fatal error:

       
      Notice: Undefined variable: CFG in /home/marina/repositories/master/moodle/user/profile/index_category_form.php on line 29
       
      Notice: Trying to get property of non-object in /home/marina/repositories/master/moodle/user/profile/index_category_form.php on line 29
       
      Warning: require_once(/lib/formslib.php): failed to open stream: No such file or directory in /home/marina/repositories/master/moodle/user/profile/index_category_form.php on line 29
       
      Fatal error: require_once(): Failed opening required '/lib/formslib.php' (include_path='/home/marina/repositories/master/moodle/lib/zend:/home/marina/repositories/master/moodle/lib/pear:.:/usr/share/php:/usr/share/pear') in /home/marina/repositories/master/moodle/user/profile/index_category_form.php on line 29
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14