** Changed in: mahara
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1959155

Title:
  Error thrown when accessing a group home page without logging in

Status in Mahara:
  Fix Released

Bug description:
  The homepage of publicly-accessible groups errors out when accessed
  without logging in.

  Steps to replicate issue:
  - Create a group with default settings and copy the URL of the homepage
  - In a private browser/ go to the homepage URL

  Expected: The homepage is shown
  Actual: The following error is thrown (go to any other page to see it)

  [WAR] 10 (lib/errors.php:530) [InvalidArgumentException]: group_user_access: 
user argument should be an integer at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/group.php:2245
  Call stack (most recent first):

      exception(object(InvalidArgumentException)) at Unknown:0

  [WAR] 10 (lib/pieforms/pieform.php:1689) Pieform element login_login_password 
wants to add headdata to the page, but it's too late. Build your form before 
generating the page.
  Call stack (most recent first):

      log_message("Pieform element login_login_password wants to add ...", 8, 
true, true) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:89
      log_warn("Pieform element login_login_password wants to add ...") at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:1689
      Pieform->build_element_html(array(size 10)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:760
      Pieform->build() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:173
      Pieform::process(array(size 8)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/mahara.php:5729
      pieform(array(size 8)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/auth/lib.php:2737
      auth_generate_login_form() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/web.php:175
      smarty(array(size 0), array(size 0), array(size 0), array(size 1)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:676
      MaharaException->handle_exception() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:541
      exception(object(SystemException)) at Unknown:0

  [DBG] 10 (lib/errors.php:686) Exception thrown by smarty call while handling 
exception:
  [InvalidArgumentException]: group_user_access: user argument should be an 
integer
  [WAR] 59 (lib/errors.php:530) [InvalidArgumentException]: group_user_access: 
user argument should be an integer at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/group.php:2245
  Call stack (most recent first):

      exception(object(InvalidArgumentException)) at Unknown:0

  [WAR] 59 (lib/pieforms/pieform.php:1689) Pieform element login_login_password 
wants to add headdata to the page, but it's too late. Build your form before 
generating the page.
  Call stack (most recent first):

      log_message("Pieform element login_login_password wants to add ...", 8, 
true, true) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:89
      log_warn("Pieform element login_login_password wants to add ...") at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:1689
      Pieform->build_element_html(array(size 10)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:760
      Pieform->build() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/pieforms/pieform.php:173
      Pieform::process(array(size 8)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/mahara.php:5729
      pieform(array(size 8)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/auth/lib.php:2737
      auth_generate_login_form() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/web.php:175
      smarty(array(size 0), array(size 0), array(size 0), array(size 1)) at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:676
      MaharaException->handle_exception() at 
/var/www/master-dev-prod-mahara/releases/20211126032100/lib/errors.php:541
      exception(object(SystemException)) at Unknown:0

  [DBG] 59 (lib/errors.php:686) Exception thrown by smarty call while handling 
exception:
  [InvalidArgumentException]: group_user_access: user argument should be an 
integer

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


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to