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

Error on falling back to standard normal layout on outputlib.php

XMLWordPrintable

    • MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-81948-403
    • MDL-81948-404
    • MDL-81948-main
    • Hide
      • modify the My Courses layout file in theme/boost/config.php file  as following:

       

          // My courses page.
          'mycourses' => array(
              'file' => 'nonexistinglayout.php',
              'regions' => ['side-pre'],
              'defaultregion' => 'side-pre',
              'options' => array('nonavbar' => true),
          ), 

       

      • purge caches
      • Login and open page My Courses
      • Check the error message is:

      Coding error detected, it must be fixed by a programmer: Can not find layout file for: mycourses (nonexistinglayout)

      Show
      modify the My Courses layout file in theme/boost/config.php file  as following:     // My courses page.     'mycourses' => array(         'file' => 'nonexistinglayout.php' ,         'regions' => [ 'side-pre' ],         'defaultregion' => 'side-pre' ,         'options' => array( 'nonavbar' => true ),     ),   purge caches Login and open page My Courses Check the error message is: Coding error detected, it must be fixed by a programmer: Can not find layout file for: mycourses (nonexistinglayout)
    • HQ 2024 Sprint I2.1 Moppies

      If theme doesn't provide a valid layout for page, outputlib.php fallback to /theme/base/layout/general.php that doesn't exists

      STEP TO REPRODUCE:

      • modify boost theme and remove layout 'mycourses' from config.php
      • open page My Courses

      Expected: Moodle fallback to normal layout

      Actual: Show following error

      Coding error detected, it must be fixed by a programmer: page layout file [dirroot]/theme/base/layout/general.php does not contain the main content placeholder, please include "<?php echo $OUTPUT->main_content() ?>" in theme layout file.

            tusefomal Ferran Recio
            bartolomeomazzucchelli Bartolomeo Mazzucchelli
            Carlos Escobedo Carlos Escobedo
            Amaia Anabitarte Amaia Anabitarte
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.