marxjohnson / moodle-block_messageteacher

Moodle block to display messaging links for teachers on a course
http://moodle.org/mod/data/view.php?d=13&rid=2053
9 stars 9 forks source link

Exception - Attempt to assign property "text" on string #34

Open WitsendSolutions opened 6 months ago

WitsendSolutions commented 6 months ago

Our Moodle site is 4.1

Our production site is running the teacher message block without issues, but we have needed to create a mirror copy to test / fix an error and now some of our courses can not be accessed due to a error being reported from the teacher message block

May I enquire if this block will be certified under the latest release or even for 4.1. My understanding is 3.9 is the highest.

Here is the complete error when turning on the debugging.

Error Exception - Attempt to assign property "text" on string Debug info: Error code: generalexceptionmessage Stack trace: line 96 of /blocks/teachermessage/block_teachermessage.php: Error thrown line 337 of /blocks/moodleblock.class.php: call to block_teachermessage->get_content() line 231 of /blocks/moodleblock.class.php: call to block_base->formatted_contents() line 1222 of /lib/blocklib.php: call to block_base->get_content_for_output() line 1280 of /lib/blocklib.php: call to block_manager->create_block_contents() line 377 of /lib/blocklib.php: call to block_manager->ensure_content_created() line 4101 of /lib/outputrenderers.php: call to block_manager->region_has_content() line 1477 of /lib/outputrenderers.php: call to include() line 1403 of /lib/outputrenderers.php: call to core_renderer->render_page_layout() line 248 of /course/view.php: call to core_renderer->header()