I have a forum open to the public to view only. It worked fine for years until someone reported to me the followwing error.:
Coding error detected, it must be fixed by a programmer: User id is required when printing user avatar image.
( ! ) Notice: Undefined property: stdClass::$user in /var/www/moodle3/mod/hsuforum/view.php on line 79
Error code: codingerror
line 214 of /lib/outputcomponents.php: coding_exception thrown
line 2488 of /lib/outputrenderers.php: call to user_picture->__construct()
line 1622 of /mod/hsuforum/renderer.php: call to core_renderer->user_picture()
line 1590 of /mod/hsuforum/renderer.php: call to mod_hsuforum_renderer->simple_edit_template()
line 364 of /mod/hsuforum/renderer.php: call to mod_hsuforum_renderer->simple_edit_post()
line 256 of /mod/hsuforum/renderer.php: call to mod_hsuforum_renderer->discussion()
line 5695 of /mod/hsuforum/lib.php: call to mod_hsuforum_renderer->discussion_thread()
line 280 of /mod/hsuforum/discuss.php: call to hsuforum_print_discussion()
Does anyone know what the problem is? Thanks in advance.