Patch for "17.10_STABLE" branch: https://reviews.mahara.org/9498
-- 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/1765264 Title: Error when deleting a user relating to the group quota Status in Mahara: Fix Released Status in Mahara 17.10 series: In Progress Status in Mahara 18.04 series: In Progress Bug description: [WAR] 50 (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/robertl/clients/catalyst/mahara-clients/htdo...", 45) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/errors.php:521 * error(8, "Array to string conversion", "/home/robertl/clients/catalyst/mahara-clients/htdo...", 45, array(size 7)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb-exceptions.inc.php:45 * ADODB_Exception->__construct("postgres8", "adodb_throw", -1, "ERROR: invalid input syntax for integer: "Array"", "SELECT "member" FROM "group_member" ...", array(size 1), object(ADODB_postgres8)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb-exceptions.inc.php:80 * adodb_throw("postgres8", "adodb_throw", -1, "ERROR: invalid input syntax for integer: "Array"", "SELECT "member" FROM "group_member" ...", array(size 1), object(ADODB_postgres8)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb.inc.php:313 * ADODB_TransMonitor("postgres8", "adodb_throw", -1, "ERROR: invalid input syntax for integer: "Array"", "SELECT "member" FROM "group_member" ...", array(size 1), object(ADODB_postgres8)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb.inc.php:1264 * ADOConnection->_Execute("SELECT "member" FROM "group_member" ...", array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb.inc.php:1224 * ADOConnection->Execute("SELECT "member" FROM "group_member" ...", array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/adodb/adodb.inc.php:1714 * ADOConnection->GetCol("SELECT "member" FROM "group_member" ...", array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/dml.php:891 * get_column_sql("SELECT "member" FROM "group_member" ...", array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/group.php:1605 * group_get_admin_ids(array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/file/lib.php:1877 * ArtefactTypeFile::notify_groups_threshold_exceeded(array(size 1)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/file/lib.php:439 * PluginArtefactFile::eventlistener_savedeleteartefact("deleteartefact", object(ArtefactTypeFile)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/mahara.php:1789 * call_static_method("PluginArtefactFile", "eventlistener_savedeleteartefact", "deleteartefact", object(ArtefactTypeFile)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/mahara.php:2084 * handle_event("deleteartefact", object(ArtefactTypeFile), array(size 8)) at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/lib.php:719 * ArtefactType->delete() at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/file/lib.php:1363 * ArtefactTypeFile->delete() at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/lib.php:702 * ArtefactType->delete() at /home/robertl/clients/catalyst/mahara-clients/htdocs/artefact/file/lib.php:2003 * ArtefactTypeFolder->delete() at /home/robertl/clients/catalyst/mahara-clients/htdocs/lib/user.php:1612 * delete_user("4839") at /home/robertl/clients/catalyst/mahara-clients/htdocs/admin/cli/delete_inactive_users.php:154 The problem is the group_get_admin_ids() is called with an array rather than an id To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1765264/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp