Project: moodle
Issue MDL-45562: Editing external blog throws exception
Register an external blog. Click on "edit cog", change something and try to save. Reproduced on 2.7, pretty sure the same will be in previous versions {code} Invalid user More information about this error Debug info: SELECT id FROM {user} WHERE id IS NULL AND deleted = ? [array ( 0 => 0, )] Error code: invaliduser Stack trace: line 1451 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown line 1427 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select() line 6404 of /lib/accesslib.php: call to moodle_database->get_record() line 107 of /blog/external_blog_edit.php: call to context_user::instance() Output buffer:
Notice: Undefined property: stdClass::$filtertags in /home/marina/repositories/int_master/moodle/blog/external_blog_edit.php on line 102

Notice: Undefined variable: newexternal in /home/marina/repositories/int_master/moodle/blog/external_blog_edit.php on line 107

Notice: Trying to get property of non-object in /home/marina/repositories/int_master/moodle/blog/external_blog_edit.php on line 107
{code}
Story points: 8