Backported to 1.7.

Verified that the warning message is not generated in 1.6 and earlier.

** Also affects: mahara/1.7
   Importance: Undecided
       Status: New

** Changed in: mahara
       Status: In Progress => Fix Committed

** Changed in: mahara/1.7
       Status: New => Fix Committed

** Changed in: mahara/1.7
   Importance: Undecided => Low

** Changed in: mahara/1.7
    Milestone: None => 1.7.3

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to