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

Possible notice when moving blocks.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.7.8, 2.8.6
    • 2.7.5, 2.8.3, 2.9
    • Blocks
    • MOODLE_27_STABLE, MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_27_STABLE, MOODLE_28_STABLE
    • Hide

      You need your site set to DEVELOPER debug, and you need to be able to access the PHP error logs, since the error is reported duing an ajax request, so won't appear on-screen.

      1. Go to any course page with more than one block in a column. Turn editing on.
      2. Edit the bottom block. Set the 'Weight on this page' option to 10.
      3. Move any other block by by dragging it below the block you just edited.

      Verify that the block moves with no PHP notices being logged.

      (We were seeing

      [04-Mar-2015 10:57:51 Europe/London] PHP Notice: Undefined offset: 34 in /vle/www_root/lib/blocklib.php on line 1624
      [04-Mar-2015 10:57:51 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /vle/www_root/lib/blocklib.php on line 1624
      )

      Show
      You need your site set to DEVELOPER debug, and you need to be able to access the PHP error logs, since the error is reported duing an ajax request, so won't appear on-screen. Go to any course page with more than one block in a column. Turn editing on. Edit the bottom block. Set the 'Weight on this page' option to 10. Move any other block by by dragging it below the block you just edited. Verify that the block moves with no PHP notices being logged. (We were seeing [04-Mar-2015 10:57:51 Europe/London] PHP Notice: Undefined offset: 34 in /vle/www_root/lib/blocklib.php on line 1624 [04-Mar-2015 10:57:51 Europe/London] PHP Warning: Invalid argument supplied for foreach() in /vle/www_root/lib/blocklib.php on line 1624 )

      This is just like MDL-30655, but for bottom, not top, and now we have Ajax, it is harder to test.

            timhunt Tim Hunt
            timhunt Tim Hunt
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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