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

warnings and errors in user profiles

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.5.6, 2.6.3
    • 2.5.5, 2.6.2, 2.7
    • Other
    • None
    • MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_25_STABLE, MOODLE_26_STABLE
    • wip-MDL-45154-master
    • 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

    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

              marina Marina Glancy
              marina Marina Glancy
              Petr Skoda Petr Skoda
              Dan Poltawski Dan Poltawski
              Sam Hemelryk Sam Hemelryk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                12/May/14