mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #12402
[Bug 1132660] Re: "invite user to group" form on user profile page throws headdata error
Looks like the problem here is probably this:
1) The invite_group and addmember_group contain select html tags that want to add some javascript to the page.
2) The $smarty-assign lines are mixed in with building parts of the page rather than being called at the end.
Possible fix:
Generate the forms first then call the $smarty instance and assign the
form to $smarty
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contrib members
https://bugs.launchpad.net/bugs/1132660
Title:
"invite user to group" form on user profile page throws headdata error
Status in Mahara ePortfolio:
Confirmed
Bug description:
[WAR] 1d (lib/pieforms/pieform.php:1408) Pieform element invite_group 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 invite_group wants to add headdata...", 8, true, true) at /var/www/mahara-dev/code/htdocs/lib/errors.php:109
log_warn("Pieform element invite_group wants to add headdata...") at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:1408
Pieform->build_element_html(array(size 13)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:659
Pieform->build() at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 4)) at /var/www/mahara-dev/code/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 4)) at /var/www/mahara-dev/code/htdocs/user/view.php:201
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1132660/+subscriptions
References