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

Import of question in lesson module produces PHP warnings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Lesson
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      When trying to import a hot potato question file, I get the following PHP warnings:

      ( ! ) Notice: Undefined property: qformat_hotpot::$course in D:\VertrigoServ\www\moodle_19\question\format\hotpot\format.php on line 30
      Call Stack

      1. Time Memory Function Location
        1 0.0348 110464 {main}( ) ..(null):0
        2 1.4263 18412608 qformat_default->importprocess( ) ..(null):68
        3 1.4292 18587648 qformat_hotpot->readquestions( ) ..(null):42

        ( ! ) Notice: Trying to get property of non-object in D:\VertrigoServ\www\moodle_19\question\format\hotpot\format.php on line 30
        Call Stack
        # Time Memory Function Location
        1 0.0348 110464 {main}

        ( ) ..(null):0
        2 1.4263 18412608 qformat_default->importprocess( ) ..(null):68
        3 1.4292 18587648 qformat_hotpot->readquestions( ) ..(null):42

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            xxxxxxx Gordon Bateson added a comment -

            I have submitted a fix to "question/format/hotpot/format.php" for Moodle 1.6 - 2.0 and confirmed I could import Hot Potatoes into a Lesson activity.

            Please let me know if this fixes things on your site.
            Thanks.

            Show
            xxxxxxx Gordon Bateson added a comment - I have submitted a fix to "question/format/hotpot/format.php" for Moodle 1.6 - 2.0 and confirmed I could import Hot Potatoes into a Lesson activity. Please let me know if this fixes things on your site. Thanks.
            Hide
            dougiamas Martin Dougiamas added a comment -

            I didn't even know we could import Hot Pot files into Lesson!! Thanks, Gordon.

            Show
            dougiamas Martin Dougiamas added a comment - I didn't even know we could import Hot Pot files into Lesson!! Thanks, Gordon.

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Mar/08