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

Import of question in lesson module produces PHP warnings

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.9
    • 1.9
    • Lesson
    • None
    • MOODLE_19_STABLE
    • 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

      Attachments

        Activity

          People

            xxxxxxx Gordon Bateson
            nicolasconnault Nicolas Connault
            Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08