Moodle
  1. Moodle
  2. MDL-24792

Moving blocks causes all blocks to disappear when not in edit mode.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: Themes
    • Labels:
      None
    • Environment:
      LAMP: Ubuntu 10.10, Apache/2.2.16, MySQL Ver 14.14 Distrib 5.1.49, PHP 5.3.3-1ubuntu9 with Suhosin-Patch, running Firefox 3.6.11
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_20_STABLE
    • Rank:
      8164

      Description

      Problem:

      Moving blocks from two columns into one column causes ALL blocks to disappear when editing is turned off.

      Steps to reproduce:

      Installed Moodle 2 (2.0 RC1 (Build: 20101021)) from scratch, and created a very simple topics-based course with three topics, no content apart from the default forum.

      In Administration, went to the theme selector and chose the Nonzero theme for modern browsers.

      Went back to the course, turned editing on and moved the two blocks (navigation and settings) from the middle column into the right column, at the top.

      When I turn editing off, no blocks appear.

      If you go back to editing mode and move a block back into the middle column, everything works as expected.

      Please see attached images for how the screen looks when editing, and then when turning editing off.

        Activity

        Hide
        John Stabinger added a comment -

        Incorrect width set in side-post only pagelayout,css file.

        Show
        John Stabinger added a comment - Incorrect width set in side-post only pagelayout,css file.
        Hide
        Paul Vaughan added a comment -

        I have just started using this theme in Moodle 2 stable (Build: 20101214) and have found similar issues with the theme still.

        After docking the Settings and Navigation block, I moved the Main Menu block to the right-most column, and nonzero_docked_and_moved.png was the result.

        When I moved the main menu block back into it's own column, I received the following error:

        Notice: Undefined offset: -11 in /srv/commoodle/releases/20101214131748/lib/blocklib.php on line 1377 Warning: Invalid argument supplied for foreach() in /srv/commoodle/releases/20101214131748/lib/blocklib.php on line 1377

        Show
        Paul Vaughan added a comment - I have just started using this theme in Moodle 2 stable (Build: 20101214) and have found similar issues with the theme still. After docking the Settings and Navigation block, I moved the Main Menu block to the right-most column, and nonzero_docked_and_moved.png was the result. When I moved the main menu block back into it's own column, I received the following error: Notice: Undefined offset: -11 in /srv/commoodle/releases/20101214131748/lib/blocklib.php on line 1377 Warning: Invalid argument supplied for foreach() in /srv/commoodle/releases/20101214131748/lib/blocklib.php on line 1377
        Hide
        Paul Vaughan added a comment -

        The result of docking Settings and Navigation and moving Main Menu block to the other column.

        Show
        Paul Vaughan added a comment - The result of docking Settings and Navigation and moving Main Menu block to the other column.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: