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

Fatal error on mysql when enabling 'logall'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.5, 3.2.2, 3.3
    • 3.1.6, 3.2.3
    • Database SQL/XMLDB

    Description

      Not sure why it broke again, we fixed it in MDL-57192

      On master if I set 'logall' I see the blank page and record in error.log :

      [Wed Apr 26 15:23:07.765800 2017] [:error] [pid 22378] [client 127.0.0.1:60291] PHP Fatal error: Call to a member function is_temptable() on null in /...../lib/dml/mysqli_native_moodle_database.php on line 664, referer: ....

      Also reproduced on 3.2 and 3.1

      I added printing backtrace in code:

      #0  mysqli_native_moodle_database->get_columns() called at [/home/marina/repositories/mdk_master/moodle/lib/dml/mysqli_native_moodle_database.php:1293]
      #1  mysqli_native_moodle_database->insert_record() called at [/home/marina/repositories/mdk_master/moodle/lib/dml/moodle_database.php:538]
      #2  moodle_database->query_log() called at [/home/marina/repositories/mdk_master/moodle/lib/dml/moodle_database.php:467]
      #3  moodle_database->query_end() called at [/home/marina/repositories/mdk_master/moodle/lib/dml/mysqli_native_moodle_database.php:249]
      #4  mysqli_native_moodle_database->get_dbcollation() called at [/home/marina/repositories/mdk_master/moodle/lib/dml/mysqli_native_moodle_database.php:526]
      #5  mysqli_native_moodle_database->connect() called at [/home/marina/repositories/mdk_master/moodle/lib/dmllib.php:344]
      #6  setup_DB() called at [/home/marina/repositories/mdk_master/moodle/lib/setup.php:615]
      #7  require_once(/home/marina/repositories/mdk_master/moodle/lib/setup.php) called at [/home/marina/repositories/mdk_master/moodle/config.php:44]
      #8  require_once(/home/marina/repositories/mdk_master/moodle/config.php) called at [/home/marina/repositories/mdk_master/moodle/my/index.php:37]
      

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              marina Marina Glancy
              Ankit Agarwal Ankit Agarwal
              Dan Poltawski Dan Poltawski
              cameron1729 cameron1729
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8/May/17