Issue during admin/tool/phpunit/cli/init.php when using plugin which interacts with fs during install
danielannan opened this issue · 0 comments
danielannan commented
We're using format_tiles which tries to add a file to the file system during install, this seems to run before objectfs tables are added and results in an error thrown from moodle.
Default exception handler: Table "tool_objectfs_objects" does not exist Debug:
Error code: ddltablenotexist
* line 665 of /lib/dml/moodle_database.php: dml_exception thrown
* line 1574 of /lib/dml/moodle_database.php: call to moodle_database->where_clause()
* line 141 of /admin/tool/objectfs/classes/local/manager.php: call to moodle_database->get_record()
* line 868 of /admin/tool/objectfs/classes/local/store/object_file_system.php: call to tool_objectfs\local\manager::update_object_by_hash()
* line 1829 of /lib/filestorage/file_storage.php: call to tool_objectfs\local\store\object_file_system->add_file_from_path()
* line 1358 of /lib/filestorage/file_storage.php: call to file_storage->add_file_to_pool()
* line 48 of /course/format/tiles/db/install.php: call to file_storage->create_file_from_pathname()
* line 665 of /lib/upgradelib.php: call to xmldb_format_tiles_install()
* line 1917 of /lib/upgradelib.php: call to upgrade_plugins()
* line 489 of /lib/installlib.php: call to upgrade_noncore()
* line 466 of /lib/phpunit/classes/util.php: call to install_cli_database()
* line 150 of /admin/tool/phpunit/cli/util.php: call to phpunit_util::install_site()
We're not experienced enough with moodle to be sure who to blame for this, this plugin for the error occuring when interacting with it, the tiles plugin for trying to add a file during the install or the phpunit init script for somehow using plugins before they've been installed. So we're starting here hoping you'll be able to point us in the right direction if it's not an objectfs issue.