Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstall does not happen without also throwing errors #161

Open
keevan opened this issue Nov 23, 2021 · 0 comments
Open

Uninstall does not happen without also throwing errors #161

keevan opened this issue Nov 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@keevan
Copy link
Contributor

keevan commented Nov 23, 2021

Tested on Moodle 3.9 with latest version of tool_trigger (151ea4d)

root@50f2c74f5c17:/var/www/html# php admin/cli/uninstall_plugins.php --plugins=tool_trigger --run
Uninstalling: tool_trigger	Event Trigger
-->tool_trigger
++ Exception encountered in event observer '\tool_trigger\event_processor::process_event': Error reading from database (ERROR:  relation "mdl_tool_trigger_workflows" does not exist
LINE 2:                   FROM mdl_tool_trigger_workflows
                               ^
SELECT DISTINCT(event)
                  FROM mdl_tool_trigger_workflows
[array (
)]) ++
* line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
* line 951 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
* line 144 of /admin/tool/trigger/classes/event_processor.php: call to pgsql_native_moodle_database->get_records_sql()
* line 109 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->is_event_ignored()
* line 72 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->write()
* line ? of unknownfile: call to tool_trigger\event_processor::process_event()
* line 155 of /lib/classes/event/manager.php: call to call_user_func()
* line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
* line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
* line 1474 of /lib/accesslib.php: call to core\event\base->trigger()
* line 2387 of /lib/accesslib.php: call to unassign_capability()
* line 245 of /lib/adminlib.php: call to capabilities_cleanup()
* line 1521 of /lib/classes/plugin_manager.php: call to uninstall_plugin()
* line 155 of /admin/cli/uninstall_plugins.php: call to core_plugin_manager->uninstall_plugin()
++ Exception encountered in event observer '\tool_trigger\event_processor::process_event': Error reading from database (ERROR:  relation "mdl_tool_trigger_workflows" does not exist
LINE 2:                   FROM mdl_tool_trigger_workflows
                               ^
SELECT DISTINCT(event)
                  FROM mdl_tool_trigger_workflows
[array (
)]) ++
* line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
* line 951 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
* line 144 of /admin/tool/trigger/classes/event_processor.php: call to pgsql_native_moodle_database->get_records_sql()
* line 109 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->is_event_ignored()
* line 72 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->write()
* line ? of unknownfile: call to tool_trigger\event_processor::process_event()
* line 155 of /lib/classes/event/manager.php: call to call_user_func()
* line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
* line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
* line 1474 of /lib/accesslib.php: call to core\event\base->trigger()
* line 2387 of /lib/accesslib.php: call to unassign_capability()
* line 245 of /lib/adminlib.php: call to capabilities_cleanup()
* line 1521 of /lib/classes/plugin_manager.php: call to uninstall_plugin()
* line 155 of /admin/cli/uninstall_plugins.php: call to core_plugin_manager->uninstall_plugin()
++ Exception encountered in event observer '\tool_trigger\event_processor::process_event': Error reading from database (ERROR:  relation "mdl_tool_trigger_workflows" does not exist
LINE 2:                   FROM mdl_tool_trigger_workflows
                               ^
SELECT DISTINCT(event)
                  FROM mdl_tool_trigger_workflows
[array (
)]) ++
* line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
* line 951 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
* line 144 of /admin/tool/trigger/classes/event_processor.php: call to pgsql_native_moodle_database->get_records_sql()
* line 109 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->is_event_ignored()
* line 72 of /admin/tool/trigger/classes/event_processor.php: call to tool_trigger\event_processor->write()
* line ? of unknownfile: call to tool_trigger\event_processor::process_event()
* line 155 of /lib/classes/event/manager.php: call to call_user_func()
* line 75 of /lib/classes/event/manager.php: call to core\event\manager::process_buffers()
* line 834 of /lib/classes/event/base.php: call to core\event\manager::dispatch()
* line 1474 of /lib/accesslib.php: call to core\event\base->trigger()
* line 2387 of /lib/accesslib.php: call to unassign_capability()
* line 245 of /lib/adminlib.php: call to capabilities_cleanup()
* line 1521 of /lib/classes/plugin_manager.php: call to uninstall_plugin()
* line 155 of /admin/cli/uninstall_plugins.php: call to core_plugin_manager->uninstall_plugin()
++ Success ++
@dmitriim dmitriim added the bug Something isn't working label Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants