latest Mahara 1.8.0dev
This is a regression.
When I send a message to a user, I get the following warning after sending the message:
[WAR] 11 (lib/activity.php:391) Creating default object from empty value
Call stack (most recent first):
log_message("Creating default object from empty value", 8, true, true, "/home/kristina/code/18stable/htdocs/lib/activity.p...", 391) at /home/kristina/code/18stable/htdocs/lib/errors.php:446
error(2, "Creating default object from empty value", "/home/kristina/code/18stable/htdocs/lib/activity.p...", 391, array(size 2)) at /home/kristina/code/18stable/htdocs/lib/activity.php:391
ActivityType->add_urltext(array(size 2)) at /home/kristina/code/18stable/htdocs/lib/activity.php:796
ActivityTypeUsermessage->__construct(object(stdClass), false) at /home/kristina/code/18stable/htdocs/lib/activity.php:77
handle_activity(object(stdClass), array(size 4)) at /home/kristina/code/18stable/htdocs/lib/activity.php:50
activity_occurred("usermessage", array(size 4)) at /home/kristina/code/18stable/htdocs/lib/user.php:1512
send_user_message(object(stdClass), "Hello Paula, Do you want to meet for lunch next w...", null) at /home/kristina/code/18stable/htdocs/user/sendmessage.php:117
sendmessage_submit(object(Pieform), array(size 4)) at Unknown:0
call_user_func_array("sendmessage_submit", array(size 2)) at /home/kristina/code/18stable/htdocs/lib/pieforms/pieform.php:528
Pieform->__construct(array(size 3)) at /home/kristina/code/18stable/htdocs/lib/pieforms/pieform.php:170
Pieform::process(array(size 3)) at /home/kristina/code/18stable/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 3)) at /home/kristina/code/18stable/htdocs/user/sendmessage.php:105
Hi Kristina,
I was unable to replicate the error. Can you provide some more details?
- Are you still able to replicate the error?
- Does it matter what text the message contains?
- Does it matter whether the recipient has user messages set to go to their Inbox, email, or email digest?
Cheers,
Aaron