Reviewed: https://reviews.mahara.org/5523 Committed: https://git.nzoss.org.nz/mahara/mahara/commit/b95c935c0f1c0163283a4439d89ace11a315897d Submitter: Robert Lyon ([email protected]) Branch: 15.04_STABLE
commit b95c935c0f1c0163283a4439d89ace11a315897d Author: Son Nguyen <[email protected]> Date: Mon Aug 25 16:05:07 2014 +1200 Setup the default values from ctime and mtime (Bug 1360977) That fix the issue when importing an blog with no published and updated time behatnotneeded Change-Id: I4cfca0f212b2e3f160d043c23c9155043607960d Signed-off-by: Son Nguyen <[email protected]> (cherry picked from commit 4761fa4591ab750fcfdb634f829ee1f9efa1805b) (cherry picked from commit 8b893b444311c7509f69d5ce76df554c64a0fa95) -- 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/1360977 Title: Error when import a blog via self-Leap2A import Status in Mahara: Fix Committed Status in Mahara 1.10 series: Fix Committed Status in Mahara 15.04 series: Fix Committed Status in Mahara 15.10 series: Fix Committed Bug description: Version: master(1.10) When importing a single leap2a file using Portfolio/Import I got the following error [WAR] 70 (lib/adodb/adodb-exceptions.inc.php:43) Array to string conversion Call stack (most recent first): log_message("Array to string conversion", 8, true, true, "/home/sonn/code/mahara/master/htdocs/lib/adodb/ado...", 43) at /home/sonn/code/mahara/master/htdocs/lib/errors.php:439 error(8, "Array to string conversion", "/home/sonn/code/mahara/master/htdocs/lib/adodb/ado...", 43, array(size 7)) at /home/sonn/code/mahara/master/htdocs/lib/adodb/adodb-exceptions.inc.php:43 ADODB_Exception->__construct("postgres7", "adodb_throw", -1, "ERROR: invalid input syntax for type timestamp: "...", "INSERT INTO "mh11_artefact" ("id", "artefacttype",...", array(size 10), object(ADODB_postgres7)) at /home/sonn/code/mahara/master/htdocs/lib/adodb/adodb-exceptions.inc.php:78 adodb_throw("postgres7", "adodb_throw", -1, "ERROR: invalid input syntax for type timestamp: "...", "INSERT INTO "mh11_artefact" ("id", "artefacttype",...", array(size 10), object(ADODB_postgres7)) at /home/sonn/code/mahara/master/htdocs/lib/adodb/adodb.inc.php:257 ADODB_TransMonitor("postgres7", "EXECUTE", -1, "ERROR: invalid input syntax for type timestamp: "...", "INSERT INTO "mh11_artefact" ("id", "artefacttype",...", array(size 10), object(ADODB_postgres7)) at /home/sonn/code/mahara/master/htdocs/lib/adodb/adodb.inc.php:1074 ADOConnection->_Execute("INSERT INTO "mh11_artefact" ("id", "artefacttype",...", array(size 10)) at /home/sonn/code/mahara/master/htdocs/lib/adodb/adodb.inc.php:1045 ADOConnection->Execute("INSERT INTO "mh11_artefact" ("id", "artefacttype",...", array(size 10)) at /home/sonn/code/mahara/master/htdocs/lib/dml.php:1043 insert_record("artefact", object(stdClass), "id", true) at /home/sonn/code/mahara/master/htdocs/artefact/lib.php:548 ArtefactType->commit() at /home/sonn/code/mahara/master/htdocs/artefact/blog/lib.php:154 ArtefactTypeBlog->commit() at /home/sonn/code/mahara/master/htdocs/import/leap/lib.php:2207 LeapImportArtefactPlugin::create_artefact_from_request(object(PluginImportLeap), object(stdClass)) at /home/sonn/code/mahara/master/htdocs/artefact/blog/import/leap/lib.php:175 LeapImportBlog::import_from_requests(object(PluginImportLeap)) at Unknown:0 call_user_func_array(array(size 2), array(size 1)) at /home/sonn/code/mahara/master/htdocs/lib/mahara.php:1577 call_static_method("LeapImportBlog", "import_from_requests", object(PluginImportLeap)) at /home/sonn/code/mahara/master/htdocs/import/leap/lib.php:293 PluginImportLeap->call_import_method_plugins("import_from_requests") at /home/sonn/code/mahara/master/htdocs/import/leap/lib.php:308 PluginImportLeap->do_import_from_requests() at /home/sonn/code/mahara/master/htdocs/import/index.php:312 do_import() at /home/sonn/code/mahara/master/htdocs/import/index.php:75 The leap2a file is provided in the bug https://bugs.launchpad.net/mahara/+bug/1358934 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1360977/+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

