← Back to team overview

mahara-contributors team mailing list archive

[Bug 1188001] Re: Page view throws headdata warning, if group submissions enabled

 

** Changed in: mahara
    Milestone: 1.8rc1 => 1.8.0

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

Title:
  Page view throws headdata warning, if group submissions enabled

Status in Mahara ePortfolio:
  Fix Committed
Status in Mahara 1.7 series:
  Fix Committed

Bug description:
  1. Create a Page
  2. Create a Group and enable "Allow submissions" and join the group
  3. View the Page.

  You'll see a menu asking if you want to submit the page to the group.
  You'll also see this warning message:

  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1] [WAR] c3 (lib/pieforms/pieform.php:1408) Pieform element view_group_submission_form_8_options wants to add headdata to the page, but it's too late. Build your form before generating the page.
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1] Call stack (most recent first):
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * log_message("Pieform element view_group_submission_form_8_optio...", 8, true, true) at /home/aaronw/www/mahara/htdocs/lib/errors.php:109
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * log_warn("Pieform element view_group_submission_form_8_optio...") at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:1408
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * Pieform->build_element_html(array(size 10)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:659
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * Pieform->build() at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:162
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * Pieform::process(array(size 6)) at /home/aaronw/www/mahara/htdocs/lib/pieforms/pieform.php:71
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * pieform(array(size 6)) at /home/aaronw/www/mahara/htdocs/lib/view.php:4535
  [Thu Jun 06 17:23:15 2013] [error] [client 127.0.0.1]   * view_group_submission_form(object(View), array(size 1), "view") at /home/aaronw/www/mahara/htdocs/view/view.php:339

  It's the same old story, of instantiating a pieform() object after
  instantiating a smarty() object.

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


References