Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1.5, 3.2.2, 3.3
-
Component/s: Database SQL/XMLDB
-
Labels:
-
Testing Instructions:
- Use MySQL
- add 'logall'=>true to $CFG->dboptions in config.php
- view any page, there should be no errors
-
Affected Branches:MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE
-
Fixed Branches:MOODLE_31_STABLE, MOODLE_32_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-58689-master -
Pull Master Diff URL:
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]
|