← Back to team overview

mahara-contributors team mailing list archive

[Bug 1224427] [NEW] Institution membership request throws errors

 

Public bug reported:

Mahara 1.8.0dev latest master

To reproduce:

1. Set up an institution that allows registration (I have rego allowed and confirm rego ticked).
2. Add users to your Mahara instance, but not to the institution.
3. Log in as one of the new users and request institution membership.
4. When you click the  submit button, you get the following warning. The request goes through, but the warning is irritating.

[WAR] ca (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/mahara/htdocs/lib/activity.php", 391) at /home/kristina/code/mahara/htdocs/lib/errors.php:446
    error(2, "Creating default object from empty value", "/home/kristina/code/mahara/htdocs/lib/activity.php", 391, array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:391
    ActivityType->add_urltext(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:742
    ActivityTypeInstitutionmessage->__construct(object(stdClass), false) at /home/kristina/code/mahara/htdocs/lib/activity.php:77
    handle_activity(object(stdClass), object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/activity.php:50
    activity_occurred("institutionmessage", object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/institution.php:306
    Institution->addRequestFromUser(object(LiveUser), "") at /home/kristina/code/mahara/htdocs/auth/user.php:851
    User->add_institution_request("institutionc", "") at /home/kristina/code/mahara/htdocs/account/institutions.php:235
    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:226

** Affects: mahara
     Importance: Medium
         Status: Triaged


** Tags: regression

-- 
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/1224427

Title:
  Institution membership request throws errors

Status in Mahara ePortfolio:
  Triaged

Bug description:
  Mahara 1.8.0dev latest master

  To reproduce:

  1. Set up an institution that allows registration (I have rego allowed and confirm rego ticked).
  2. Add users to your Mahara instance, but not to the institution.
  3. Log in as one of the new users and request institution membership.
  4. When you click the  submit button, you get the following warning. The request goes through, but the warning is irritating.

  [WAR] ca (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/mahara/htdocs/lib/activity.php", 391) at /home/kristina/code/mahara/htdocs/lib/errors.php:446
      error(2, "Creating default object from empty value", "/home/kristina/code/mahara/htdocs/lib/activity.php", 391, array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:391
      ActivityType->add_urltext(array(size 2)) at /home/kristina/code/mahara/htdocs/lib/activity.php:742
      ActivityTypeInstitutionmessage->__construct(object(stdClass), false) at /home/kristina/code/mahara/htdocs/lib/activity.php:77
      handle_activity(object(stdClass), object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/activity.php:50
      activity_occurred("institutionmessage", object(stdClass)) at /home/kristina/code/mahara/htdocs/lib/institution.php:306
      Institution->addRequestFromUser(object(LiveUser), "") at /home/kristina/code/mahara/htdocs/auth/user.php:851
      User->add_institution_request("institutionc", "") at /home/kristina/code/mahara/htdocs/account/institutions.php:235
      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:226

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1224427/+subscriptions


Follow ups

References