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

Standard Old theme broken if no left blocks configured

    XMLWordPrintable

Details

    • MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • Hide

      Change theme to Standard

      Show
      Change theme to Standard
    • Easy
    • Hide
      1. Login as Admin and select Standardold theme via Theme selector or by URL
      2. In site Home (Frontpage) turn editing ON.
      3. Move all blocks from Left (side-pre) to Right (side-post).
      4. TEST that the page resizes to a side-post-only layout and no-longer triggers the ERROR message as reported.
      Show
      Login as Admin and select Standardold theme via Theme selector or by URL In site Home (Frontpage) turn editing ON. Move all blocks from Left (side-pre) to Right (side-post). TEST that the page resizes to a side-post-only layout and no-longer triggers the ERROR message as reported.

    Description

      We have a client that has moved all the standard blocks from the left to right side which meant no blocks on the left side. Testing the upgrade to Moodle 2.3.2 you get this error on logon.

      Replication steps:

      1. Log in as admin
      2. Switch theme to Standard (Legacy)
      3. Navigate to the Front page
      4. Turn editing on
      5. Move all blocks to the right side
      6. Turn editing off

      The following error is displayed.

      Coding error detected, it must be fixed by a programmer: page layout file D:\xampp\htdocs\master_integration/theme/standardold/layout/frontpage.php does not contain the main content placeholder, please include "<?php echo $OUTPUT->main_content() ?>" in theme layout file.
       
      Debug info:
      Error code: codingerror
      Stack trace:
       
          line 746 of \lib\outputrenderers.php: coding_exception thrown
          line ? of unknownfile: call to core_renderer->header()
          line 1416 of \lib\setuplib.php: call to call_user_func_array()
          line 98 of \index.php: call to bootstrap_renderer->__call()
          line 98 of \index.php: call to bootstrap_renderer->header()

      Attachments

        Issue Links

          Activity

            People

              lazydaisy Mary Evans
              tlock Tim Lock
              Sam Hemelryk Sam Hemelryk
              Sam Hemelryk Sam Hemelryk
              Ankit Agarwal Ankit Agarwal
              Huong Nguyen, Bas Brands, Mathew May
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/Jan/13