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

Call to a member function getName() on a non-object in lib/dmllib.php on line 1515

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.13, 1.9.9
    • Fix Version/s: 1.8.14, 1.9.10
    • Component/s: Database SQL/XMLDB
    • Labels:
      None
    • Environment:
      Win2003, IIS + FastCGI, PHP 5.3, Oracle XE 10
    • Database:
      Oracle
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      When trying a clean install of Moodle 1.9.9+ on Oracle XE 10 (Windows)

      PHP Fatal error:
      Call to a member function getName() on a non-object in lib/dmllib.php on line 1515

      Caused by a typo in dmllip.php on line 1515:

      • change this: $table->getName()
      • to this: $xmldb_table->getName()
      • or just: $table

      But this error occurs when the code is trying to report and recover from the following problem:

      • Sequence name for table config not found

      The last screen output before the fatal error was:

      • (oci8po): INSERT INTO m_log_display(module, action, mtable, field) VALUES ('tag', 'update', 'tag', 'name')
        Success
      • (oci8po): select * from (SELECT /+FIRST_ROWS/ name FROM M_config WHERE name = 'unicodedb') where rownum <= ? [ (adodb_offset=>'1') ]
      • (oci8po): SELECT * FROM M_config WHERE id = '-1'
      • (oci8po): select lower(cname),coltype,width, SCALE, PRECISION, NULLS, DEFAULTVAL from col where tname='M_CONFIG' order by colno

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

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