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

xmldb should validate the xml syntax rather than die

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.8, 1.9
    • 1.7
    • Database SQL/XMLDB
    • None
    • MOODLE_17_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      Writing invalid xml causes xmldb to die with the following error:

      PHP Fatal error: Cannot use string offset as an array in /var/www/mahara/htdocs/lib/xmldb/classes/XMLDBTable.class.php on line 469

      This was caused by the following fragment:

      <TABLE NAME="foo" />
      <FIELDS>
      ....
      </FIELDS>
      </TABLE>

      (note closing slash on opening TABLE tag)

      can xmldb validate the xml first before continuing ?

            stronk7 Eloy Lafuente (stronk7)
            mjollnir Penny Leach (Inactive)
            Nobody Nobody (Inactive)
            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.