mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #14320
[Bug 1240846] Re: Warning when requesting institution membership
Looks to be a similar problem to this -> https://reviews.mahara.org/#/c/2504/
mentioned here:
http://stackoverflow.com/questions/8900701/creating-default-object-from-empty-value-in-php
>From my initial look I think the line:
$this->strings->urltext = (object) $def
needs to check to see if $this->strings exists and make sure $this->strings is an object
eg
if(!is_object($this->strings)) { $this->strings = new stdClass(); }
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1240846
Title:
Warning when requesting institution membership
Status in Mahara ePortfolio:
New
Bug description:
1.8.0rc2
When I request membership in an institution, I see the following
warning right after having submitted my request as a regular user:
[WAR] bf (lib/activity.php:375) 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/mahara/htdocs/lib/activity.php", 375) at /home/kristina/code/mahara/htdocs/lib/errors.php:430
error(2, "Creating default object from empty value", "/home/kristina/code/mahara/htdocs/lib/activity.php", 375, array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:375
ActivityType->add_urltext(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:726
ActivityTypeInstitutionmessage->__construct(object(stdClass), false) at /home/kristina/code/mahara/htdocs/lib/activity.php:61
handle_activity(object(stdClass), object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/activity.php:34
activity_occurred("institutionmessage", object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/institution.php:301
Institution->addRequestFromUser(object(LiveUser), "") at /home/kristina/code/mahara/htdocs/auth/user.php:835
User->add_institution_request("institutionc", "") at /home/kristina/code/mahara/htdocs/account/institutions.php:219
requestmembership_submit(object(Pieform), array(size 4)) at Unknown:0
call_user_func_array("requestmembership_submit", array(size 2)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:528
Pieform->__construct(array(size 5)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:170
Pieform::process(array(size 5)) at /home/kristina/code/mahara/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 5)) at /home/kristina/code/mahara/htdocs/account/institutions.php:210
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1240846/+subscriptions
References