iomad / iomad

Iomad
GNU General Public License v3.0
159 stars 225 forks source link

problem with approve access block on upgrade #43

Closed turf212 closed 10 years ago

turf212 commented 10 years ago

Get notice -

Error writing to database

More information about this error

Debug info: Field 'parentcontextid' doesn't have a default value INSERT INTO mdl_block_instances (blockname) VALUES(?) [array ( 0 => 'iomad_approve_access', )] Error code: dmlwriteexception Stack trace: line 444 of /lib/dml/moodle_database.php: dml_write_exception thrown line 1080 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end() line 1122 of /lib/dml/mysqli_native_moodle_database.php: call to mysqli_native_moodle_database->insert_record_raw() line 38 of /blocks/iomad_approve_access/db/install.php: call to mysqli_native_moodle_database->insert_record() line 839 of /lib/upgradelib.php: call to xmldb_block_iomad_approve_access_install() line 397 of /lib/upgradelib.php: call to upgrade_plugins_blocks() line 1580 of /lib/upgradelib.php: call to upgrade_plugins() line 431 of /admin/index.php: call to upgrade_noncore()

Block installs but is not put into dashboard.

turf212 commented 10 years ago

FIxed on both branches.