Patch for "17.04_STABLE" branch: https://reviews.mahara.org/7655
-- 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/1681289 Title: Copying a collection displays a warning message Status in Mahara: Fix Committed Status in Mahara 17.04 series: Fix Committed Status in Mahara 17.10 series: Fix Committed Bug description: Tested on Site: https://master-mahara.catalystdemo.net.nz Browser: Chrome/FF/Safari 10.0.3 Device: Desktop/MacBook Pro Steps to reproduce: 1)Navigate to Portfolio>Pages and collections 2)Click on Copy button 3) Click on Copy collection button Actual Result on desktop : A warning message is desplayed , please find it below [WAR] e7 (lib/adodb/adodb-exceptions.inc.php:45) Array to string conversion Call stack (most recent first): log_message("Array to string conversion", 8, true, true, "/home/niranjanbandi/code/mahara/htdocs/lib/adodb/a...", 45) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:521 error(8, "Array to string conversion", "/home/niranjanbandi/code/mahara/htdocs/lib/adodb/a...", 45, array(size 7)) at /home/niranjanbandi/code/mahara/htdocs/lib/adodb/adodb-exceptions.inc.php:45 ADODB_Exception->__construct("postgres8", "adodb_throw", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "name" = ?, "description" ...", array(size 14), object(ADODB_postgres8)) at /home/niranjanbandi/code/mahara/htdocs/lib/adodb/adodb-exceptions.inc.php:80 adodb_throw("postgres8", "adodb_throw", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "name" = ?, "description" ...", array(size 14), object(ADODB_postgres8)) at /home/niranjanbandi/code/mahara/htdocs/lib/adodb/adodb.inc.php:313 ADODB_TransMonitor("postgres8", "adodb_throw", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "name" = ?, "description" ...", array(size 14), object(ADODB_postgres8)) at /home/niranjanbandi/code/mahara/htdocs/lib/adodb/adodb.inc.php:1264 ADOConnection->_Execute("UPDATE "collection" SET "name" = ?, "description" ...", array(size 14)) at /home/niranjanbandi/code/mahara/htdocs/lib/adodb/adodb.inc.php:1224 ADOConnection->Execute("UPDATE "collection" SET "name" = ?, "description" ...", array(size 14)) at /home/niranjanbandi/code/mahara/htdocs/lib/dml.php:1304 update_record("collection", object(stdClass), array(size 1)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:171 Collection->commit() at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:868 Collection->add_views(array(size 2)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:311 Collection::create_from_template(array(size 5), 5) at /home/niranjanbandi/code/mahara/htdocs/lib/view.php:6662 createview_submit(object(Pieform), array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:543 Pieform->__construct(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:164 Pieform::process(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4814 pieform(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/view/choosetemplate.php:30 [WAR] e7 (lib/errors.php:859) Failed to get a recordset: postgres8 error: [-1: ERROR: null value in column "submittedstatus" violates not-null constraint DETAIL: Failing row contains (8, 1, 2017-04-10 11:16:53, 2017-04-10 11:16:53, collect5555 v.2, sagdsgsag, 1, null, null, null, null, null, null, null).] in adodb_throw(UPDATE "collection" SET "name" = ?, "description" = ?, "owner" = ?, "group" = ?, "institution" = ?, "mtime" = ?, "ctime" = ?, "navigation" = ?, "submittedgroup" = ?, "submittedhost" = ?, "submittedtime" = ?, "submittedstatus" = ?, "framework" = ? WHERE "id" = ?, Array)Command was: UPDATE "collection" SET "name" = ?, "description" = ?, "owner" = ?, "group" = ?, "institution" = ?, "mtime" = ?, "ctime" = ?, "navigation" = ?, "submittedgroup" = ?, "submittedhost" = ?, "submittedtime" = ?, "submittedstatus" = ?, "framework" = ? WHERE "id" = ? and values was (0:collect5555v.2,1:sagdsgsag,2:1,3:,4:,5:2017-04-1011:16:53,6:2017-04-1011:16:53,7:1,8:,9:,10:,11:,12:,13:8) Call stack (most recent first): log_message("Failed to get a recordset: postgres8 error: [-1: E...", 8, true, true) at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:95 log_warn("Failed to get a recordset: postgres8 error: [-1: E...") at /home/niranjanbandi/code/mahara/htdocs/lib/errors.php:859 SQLException->__construct("Failed to get a recordset: postgres8 error: [-1: E...") at /home/niranjanbandi/code/mahara/htdocs/lib/dml.php:1308 update_record("collection", object(stdClass), array(size 1)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:171 Collection->commit() at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:868 Collection->add_views(array(size 2)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:311 Collection::create_from_template(array(size 5), 5) at /home/niranjanbandi/code/mahara/htdocs/lib/view.php:6662 createview_submit(object(Pieform), array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:543 Pieform->__construct(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:164 Pieform::process(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4814 pieform(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/view/choosetemplate.php:30 [WAR] e7 (lib/dml.php:1308) Failed to get a recordset: postgres8 error: [-1: ERROR: null value in column "submittedstatus" violates not-null constraint DETAIL: Failing row contains (8, 1, 2017-04-10 11:16:53, 2017-04-10 11:16:53, collect5555 v.2, sagdsgsag, 1, null, null, null, null, null, null, null).] in adodb_throw(UPDATE "collection" SET "name" = ?, "description" = ?, "owner" = ?, "group" = ?, "institution" = ?, "mtime" = ?, "ctime" = ?, "navigation" = ?, "submittedgroup" = ?, "submittedhost" = ?, "submittedtime" = ?, "submittedstatus" = ?, "framework" = ? WHERE "id" = ?, Array)Command was: UPDATE "collection" SET "name" = ?, "description" = ?, "owner" = ?, "group" = ?, "institution" = ?, "mtime" = ?, "ctime" = ?, "navigation" = ?, "submittedgroup" = ?, "submittedhost" = ?, "submittedtime" = ?, "submittedstatus" = ?, "framework" = ? WHERE "id" = ? and values was (0:collect5555v.2,1:sagdsgsag,2:1,3:,4:,5:2017-04-1011:16:53,6:2017-04-1011:16:53,7:1,8:,9:,10:,11:,12:,13:8) Call stack (most recent first): update_record("collection", object(stdClass), array(size 1)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:171 Collection->commit() at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:868 Collection->add_views(array(size 2)) at /home/niranjanbandi/code/mahara/htdocs/lib/collection.php:311 Collection::create_from_template(array(size 5), 5) at /home/niranjanbandi/code/mahara/htdocs/lib/view.php:6662 createview_submit(object(Pieform), array(size 5)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:543 Pieform->__construct(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/pieforms/pieform.php:164 Pieform::process(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/lib/mahara.php:4814 pieform(array(size 8)) at /home/niranjanbandi/code/mahara/htdocs/view/choosetemplate.php:30 And on safari I get the follwing message Mahara: Site unavailable A nonrecoverable error occurred. This probably means you have encountered a bug in the system To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1681289/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : [email protected] Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp

