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

PHP Notice: Undefined property: stdClass::$format in moodle/blocks/html/block_html.php on line 61

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.4, 2.1.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Blocks
    • Labels:
      None
    • Testing Instructions:
      Hide
      1. Backup world of water from Tomaz's school demo site
      2. Restore it on your local site
      3. Make sure you don't get any notices about undefined $format when you view the restored course.

      ps: recommended to test 2.1.x and 2.0.x in addition to master

      Show
      Backup world of water from Tomaz's school demo site Restore it on your local site Make sure you don't get any notices about undefined $format when you view the restored course. ps: recommended to test 2.1.x and 2.0.x in addition to master
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE
    • Pull Master Branch:
      wip-MDL-25636-master

      Description

      Got the following error message while using a Moodle course from one of Tomaz's sites (I had restored a backup).

      PHP Notice: Undefined property: stdClass::$format in /var/git/moodle/blocks/html/block_html.php on line 61, referer: http://sam.moodle.local/git-moodle/backup/restore.php

      I've got to remember to check that the block settings were included in the backup and that it's not just a simple case of setting a default.

      Cheers
      Sam

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            samhemelryk Sam Hemelryk added a comment -

            Peer-reviewer if you are happy with this please put it up for integration.

            Integrator feel free to cherry-pick, squash, whatever you want.

            Cheers fella's

            Show
            samhemelryk Sam Hemelryk added a comment - Peer-reviewer if you are happy with this please put it up for integration. Integrator feel free to cherry-pick, squash, whatever you want. Cheers fella's
            Hide
            andyjdavis Andrew Davis added a comment -

            looks good to me.

            Show
            andyjdavis Andrew Davis added a comment - looks good to me.
            Hide
            nebgor Aparup Banerjee added a comment -

            Thanks Sam, this has been rather confidently integrated (and cherry-picked for 2.0.x and 2.1.x so testers please these branches too).

            Show
            nebgor Aparup Banerjee added a comment - Thanks Sam, this has been rather confidently integrated (and cherry-picked for 2.0.x and 2.1.x so testers please these branches too).
            Hide
            rajeshtaneja Rajesh Taneja added a comment -

            No notices with this patch.
            Thanks for fixing this Sam

            Show
            rajeshtaneja Rajesh Taneja added a comment - No notices with this patch. Thanks for fixing this Sam
            Hide
            stronk7 Eloy Lafuente (stronk7) added a comment -

            Many thanks for the hard work, this has been sent upstream and is available in all the git and cvs repositories.

            Show
            stronk7 Eloy Lafuente (stronk7) added a comment - Many thanks for the hard work, this has been sent upstream and is available in all the git and cvs repositories.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11