Hi,
I try to send email message via moodle api, and I get this strange error:
other event data must be compatible with json encoding
line 770 of /lib/classes/event/base.php: call to debugging()
line 808 of /lib/classes/event/base.php: call to core\event\base->validate_before_trigger()
line 156 of /lib/classes/message/manager.php: call to core\event\base->trigger()
line 104 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
line 251 of /lib/messagelib.php: call to core\message\manager::send_message()
I try to invoke the function with:
message_send(($message));message is an object, containing all the relevant details.
the message is sent, but the error is printed.
anyone knows why?