← Back to team overview

mahara-contributors team mailing list archive

[Bug 784405] [NEW] When editing view access for collections and there are no views then an error is thrown

 

Public bug reported:

On /view/access.php

When there are collections, but no views, then the following error is
thrown


[Wed May 18 17:42:43 2011] [error] [client ::1] [WAR] 6e (view/access.php:497) Undefined index: views, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * log_message("Undefined index: views", 8, true, true, "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:446, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * error(8, "Undefined index: views", "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497, array(size 12)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:497, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * editaccess_submit(object(Pieform), array(size 11)) at Unknown:0, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * call_user_func_array("editaccess_submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform->__construct(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform::process(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * pieform(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:515, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1] , referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1] [WAR] 6e (view/access.php:497) Invalid argument supplied for foreach(), referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:446, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * error(2, "Invalid argument supplied for foreach()", "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497, array(size 12)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:497, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * editaccess_submit(object(Pieform), array(size 11)) at Unknown:0, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * call_user_func_array("editaccess_submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform->__construct(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform::process(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1]   * pieform(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:515, referer: http://localhost/mahara/view/access.php?id=16
[Wed May 18 17:42:43 2011] [error] [client ::1] , referer: http://localhost/mahara/view/access.php?id=16

** Affects: mahara
     Importance: Undecided
     Assignee: Hugh Davenport (hugh-catalyst)
         Status: In Progress

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

Title:
  When editing view access for collections and there are no views then
  an error is thrown

Status in Mahara ePortfolio:
  In Progress

Bug description:
  On /view/access.php

  When there are collections, but no views, then the following error is
  thrown

  
  [Wed May 18 17:42:43 2011] [error] [client ::1] [WAR] 6e (view/access.php:497) Undefined index: views, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * log_message("Undefined index: views", 8, true, true, "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:446, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * error(8, "Undefined index: views", "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497, array(size 12)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:497, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * editaccess_submit(object(Pieform), array(size 11)) at Unknown:0, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * call_user_func_array("editaccess_submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform->__construct(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform::process(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * pieform(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:515, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1] , referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1] [WAR] 6e (view/access.php:497) Invalid argument supplied for foreach(), referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * log_message("Invalid argument supplied for foreach()", 8, true, true, "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:446, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * error(2, "Invalid argument supplied for foreach()", "/home/hugh/src/mahara/mahara/htdocs/view/access.ph...", 497, array(size 12)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:497, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * editaccess_submit(object(Pieform), array(size 11)) at Unknown:0, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * call_user_func_array("editaccess_submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform->__construct(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * Pieform::process(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1]   * pieform(array(size 7)) at /home/hugh/src/mahara/mahara/htdocs/view/access.php:515, referer: http://localhost/mahara/view/access.php?id=16
  [Wed May 18 17:42:43 2011] [error] [client ::1] , referer: http://localhost/mahara/view/access.php?id=16


Follow ups

References