Copying of a collection produces an error. Tested in Portfolio and groups.
1. Create 5 pages under portfolio / group.
2. Put them into a collection.
3. Copy the collection. Error (see below shows up). Collection is created though.
log_message("Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /var/www/html/maharatest/htdocs/lib/errors.php:95
log_warn("Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/html/maharatest/htdocs/lib/errors.php:745
SQLException->__construct("Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/html/maharatest/htdocs/lib/dml.php:1260
update_record("collection", object(stdClass), "id") at /var/www/html/maharatest/htdocs/lib/collection.php:163
Collection->commit() at /var/www/html/maharatest/htdocs/lib/collection.php:100
Collection::save(array(size 8)) at /var/www/html/maharatest/htdocs/collection/edit.php:130
submit(object(Pieform), array(size 8)) at Unknown:0
call_user_func_array("submit", array(size 2)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:527
Pieform->__construct(array(size 5)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 5)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 5)) at /var/www/html/maharatest/htdocs/collection/edit.php:113
update_record("collection", object(stdClass), "id") at /var/www/html/maharatest/htdocs/lib/collection.php:163
Collection->commit() at /var/www/html/maharatest/htdocs/lib/collection.php:100
Collection::save(array(size 8)) at /var/www/html/maharatest/htdocs/collection/edit.php:130
submit(object(Pieform), array(size 8)) at Unknown:0
call_user_func_array("submit", array(size 2)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:527
Pieform->__construct(array(size 5)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:162
Pieform::process(array(size 5)) at /var/www/html/maharatest/htdocs/lib/pieforms/pieform.php:71
pieform(array(size 5)) at /var/www/html/maharatest/htdocs/collection/edit.php:113
Mahara 1.10rc1
Copying of a collection produces an error. Tested in Portfolio and groups.
1. Create 5 pages under portfolio / group.
2. Put them into a collection.
3. Copy the collection. Error (see below shows up). Collection is created though.
---------------
[WAR] 49 (lib/adodb/ adodb-exception s.inc.php: 43) Array to string conversion
Call stack (most recent first):
log_ message( "Array to string conversion", 8, true, true, "/var/www/ html/maharatest /htdocs/ lib/adodb/ adodb-ex. ..", 43) at /var/www/ html/maharatest /htdocs/ lib/errors. php:439 html/maharatest /htdocs/ lib/adodb/ adodb-ex. ..", 43, array(size 7)) at /var/www/ html/maharatest /htdocs/ lib/adodb/ adodb-exception s.inc.php: 43 Exception- >__construct( "postgres7" , "adodb_throw", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "owner" = ? , "ctime" = ? ...", array(size 13), object( ADODB_postgres7 )) at /var/www/ html/maharatest /htdocs/ lib/adodb/ adodb-exception s.inc.php: 78 throw(" postgres7" , "adodb_throw", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "owner" = ? , "ctime" = ? ...", array(size 13), object( ADODB_postgres7 )) at /var/www/ html/maharatest /htdocs/ lib/adodb/ adodb.inc. php:257 TransMonitor( "postgres7" , "EXECUTE", -1, "ERROR: null value in column "submittedstatus" vio...", "UPDATE "collection" SET "owner" = ? , "ctime" = ? ...", array(size 13), object( ADODB_postgres7 )) at /var/www/ html/maharatest /htdocs/ lib/adodb/ adodb.inc. php:1074 on->_Execute( "UPDATE "collection" SET "owner" = ? , "ctime" = ? ...", array(size 13)) at /var/www/ html/maharatest /htdocs/ lib/adodb/ adodb.inc. php:1045 on->Execute( "UPDATE "collection" SET "owner" = ? , "ctime" = ? ...", array(size 13)) at /var/www/ html/maharatest /htdocs/ lib/dml. php:1256 record( "collection" , object(stdClass), "id") at /var/www/ html/maharatest /htdocs/ lib/collection. php:163 >commit( ) at /var/www/ html/maharatest /htdocs/ lib/collection. php:100 :save(array( size 8)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 130 object( Pieform) , array(size 8)) at Unknown:0 user_func_ array(" submit" , array(size 2)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:527 >__construct( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:162 :process( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:71 array(size 5)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 113
error(8, "Array to string conversion", "/var/www/
ADODB_
adodb_
ADODB_
ADOConnecti
ADOConnecti
update_
Collection-
Collection:
submit(
call_
Pieform-
Pieform:
pieform(
[WAR] 49 (lib/errors. php:745) Failed to get a recordset: postgres7 error: [-1: ERROR: null value in column "submittedstatus" violates not-null constraint] in adodb_throw(UPDATE "collection" SET "owner" = ? , "ctime" = ? , "mtime" = ? , "name" = ? , "description" = ? , "navigation" = ? , "submittedgroup" = ? , "submittedhost" = ? , "submittedtime" = ? , "submittedstatus" = ? , "group" = ? , "institution" = ? WHERE "id" = ? , Array) Testing, ,1,,,,, ,,3)
Command was: UPDATE "collection" SET "owner" = ? , "ctime" = ? , "mtime" = ? , "name" = ? , "description" = ? , "navigation" = ? , "submittedgroup" = ? , "submittedhost" = ? , "submittedtime" = ? , "submittedstatus" = ? , "group" = ? , "institution" = ? WHERE "id" = ? and values was (1,2014-10-16 12:20:51,2014-10-16 12:20:51,
Call stack (most recent first):
log_ message( "Failed to get a recordset: postgres7 error: [-1: E...", 8, true, true) at /var/www/ html/maharatest /htdocs/ lib/errors. php:95 warn("Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/ html/maharatest /htdocs/ lib/errors. php:745 n->__construct( "Failed to get a recordset: postgres7 error: [-1: E...") at /var/www/ html/maharatest /htdocs/ lib/dml. php:1260 record( "collection" , object(stdClass), "id") at /var/www/ html/maharatest /htdocs/ lib/collection. php:163 >commit( ) at /var/www/ html/maharatest /htdocs/ lib/collection. php:100 :save(array( size 8)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 130 object( Pieform) , array(size 8)) at Unknown:0 user_func_ array(" submit" , array(size 2)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:527 >__construct( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:162 :process( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:71 array(size 5)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 113
log_
SQLExceptio
update_
Collection-
Collection:
submit(
call_
Pieform-
Pieform:
pieform(
[WAR] 49 (lib/dml.php:1260) Failed to get a recordset: postgres7 error: [-1: ERROR: null value in column "submittedstatus" violates not-null constraint] in adodb_throw(UPDATE "collection" SET "owner" = ? , "ctime" = ? , "mtime" = ? , "name" = ? , "description" = ? , "navigation" = ? , "submittedgroup" = ? , "submittedhost" = ? , "submittedtime" = ? , "submittedstatus" = ? , "group" = ? , "institution" = ? WHERE "id" = ? , Array) Testing, ,1,,,,, ,,3)
Command was: UPDATE "collection" SET "owner" = ? , "ctime" = ? , "mtime" = ? , "name" = ? , "description" = ? , "navigation" = ? , "submittedgroup" = ? , "submittedhost" = ? , "submittedtime" = ? , "submittedstatus" = ? , "group" = ? , "institution" = ? WHERE "id" = ? and values was (1,2014-10-16 12:20:51,2014-10-16 12:20:51,
Call stack (most recent first):
update_ record( "collection" , object(stdClass), "id") at /var/www/ html/maharatest /htdocs/ lib/collection. php:163 >commit( ) at /var/www/ html/maharatest /htdocs/ lib/collection. php:100 :save(array( size 8)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 130 object( Pieform) , array(size 8)) at Unknown:0 user_func_ array(" submit" , array(size 2)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:527 >__construct( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:162 :process( array(size 5)) at /var/www/ html/maharatest /htdocs/ lib/pieforms/ pieform. php:71 array(size 5)) at /var/www/ html/maharatest /htdocs/ collection/ edit.php: 113
Collection-
Collection:
submit(
call_
Pieform-
Pieform:
pieform(