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

Notices generated before redirect while accessing moodle from not configured url

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.7, 2.4.3, 2.5, 2.6
    • Fix Version/s: 2.3.8, 2.4.5, 2.5.1
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      1/ I was unable to replicated it - see the description
      2/ make sure the log and footer displays the same info like before on normal pages when

      define('MDL_PERF', true);
      define('MDL_PERFDB', true);
      define('MDL_PERFTOLOG', true);
      define('MDL_PERFTOFOOT', true);
      

      Show
      1/ I was unable to replicated it - see the description 2/ make sure the log and footer displays the same info like before on normal pages when define('MDL_PERF', true); define('MDL_PERFDB', true); define('MDL_PERFTOLOG', true); define('MDL_PERFTOFOOT', true);
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w23_MDL-39416_m26_pagelog

      Description

      When trying to access moodle by a url which is not $CFG->wwwroot for example ip instead of domain name, following stack is generated before redirecting:-

      Notice: Trying to get property of non-object in /var/www/stable/master/moodle/lib/moodlelib.php on line 10626 
      Call Stack: 0.0005 816192 1. {main}() /var/www/stable/master/moodle/index.php:0 0.0006 838616 
      2. require_once('/var/www/stable/master/moodle/config.php') /var/www/stable/master/moodle/index.php:31 0.0014 1187528 
      3. require_once('/var/www/stable/master/moodle/lib/setup.php') /var/www/stable/master/moodle/config.php:50 0.0678 28486712 
      4. initialise_fullme() /var/www/stable/master/moodle/lib/setup.php:690 0.0685 28703000 
      5. redirect() /var/www/stable/master/moodle/lib/setuplib.php:803 0.0698 29241488 
      6. moodle_request_shutdown() /var/www/stable/master/moodle/lib/moodlelib.php:0 0.0698 29241568 
      7. get_performance_info() /var/www/stable/master/moodle/lib/moodlelib.php:10390 
      Fatal error: Call to a member function get_loaded_modules() on a non-object in /var/www/stable/master/moodle/lib/moodlelib.php on line 10626 Call Stack: 0.0005 816192 1. {main}() /var/www/stable/master/moodle/index.php:0 0.0006 838616 2. require_once('/var/www/stable/master/moodle/config.php') /var/www/stable/master/moodle/index.php:31 0.0014 1187528 3. require_once('/var/www/stable/master/moodle/lib/setup.php') /var/www/stable/master/moodle/config.php:50 0.0678 28486712 4. initialise_fullme() /var/www/stable/master/moodle/lib/setup.php:690 0.0685 28703000 5. redirect() /var/www/stable/master/moodle/lib/setuplib.php:803 0.0698 29241488 6. moodle_request_shutdown() /var/www/stable/master/moodle/lib/moodlelib.php:0 0.0698 29241568 7. get_performance_info() /var/www/stable/master/moodle/lib/moodlelib.php:10390 
      

      Seems to be a recently introudced issue.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                8/Jul/13