← Back to team overview

mahara-contributors team mailing list archive

[Bug 784326] Re: adding a collection with "Page navigation bar" unchecked throws exception

 

** Changed in: mahara
   Importance: Undecided => Medium

** Changed in: mahara
       Status: New => Triaged

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

Title:
  adding a collection with "Page navigation bar" unchecked throws
  exception

Status in Mahara ePortfolio:
  Triaged

Bug description:
  in /collection/edit.php?new=1

  when the "Page navigation bar" option is not selected, then the
  following error log is given

  [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/errors.php:745) Failed to get a recordset: postgres7 error: [-1: ERROR:  invalid input syntax for integer: ""] in adodb_throw(INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?), Array), referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/errors.php:745) Command was: INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?) and values was (4,2,2011-05-18 11:19:05,2011-05-18 11:19:05,fh,gh,), referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * log_message("Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:109, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * log_warn("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/errors.php:745, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * SQLException->__construct("Failed to get a recordset: postgres7 error: [-1: E...") at /home/hugh/src/mahara/mahara/htdocs/lib/dml.php:1060, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * insert_record("collection", object(stdClass), "id", true) at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:145, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Collection->commit() at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:101, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Collection::save(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:86, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * submit(object(Pieform), array(size 5)) at Unknown:0, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * call_user_func_array("submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Pieform->__construct(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Pieform::process(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * pieform(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:77, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] , referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/dml.php:1060) Failed to get a recordset: postgres7 error: [-1: ERROR:  invalid input syntax for integer: ""] in adodb_throw(INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?), Array), referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] [WAR] 4a (lib/dml.php:1060) Command was: INSERT INTO "collection" ("id", "owner", "ctime", "mtime", "name", "description", "navigation") VALUES (?, ?, ?, ?, ?, ?, ?) and values was (4,2,2011-05-18 11:19:05,2011-05-18 11:19:05,fh,gh,), referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] Call stack (most recent first):, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * insert_record("collection", object(stdClass), "id", true) at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:145, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Collection->commit() at /home/hugh/src/mahara/mahara/htdocs/lib/collection.php:101, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Collection::save(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:86, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * submit(object(Pieform), array(size 5)) at Unknown:0, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * call_user_func_array("submit", array(size 2)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:512, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Pieform->__construct(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:161, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * Pieform::process(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/lib/pieforms/pieform.php:71, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1]   * pieform(array(size 5)) at /home/hugh/src/mahara/mahara/htdocs/collection/edit.php:77, referer: http://localhost/mahara/collection/edit.php?new=1
  [Wed May 18 11:19:05 2011] [error] [client ::1] , referer: http://localhost/mahara/collection/edit.php?new=1


References