mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #17342
[Bug 1287344] [NEW] artefact installed upgrade problem
Public bug reported:
When there is an artefact plugin missing and one tries to upgrade
another artefact plugin there is an error:
[WAR] cb (lib/errors.php:739) Failed to get a recordset: postgres7 error: [-1: ERROR: update or delete on table "artefact_installed_type" violates foreign key constraint "arte_art_fk" on table "artefact", referer: https://mahara-testing/admin/upgrade.php
[Tue Mar 04 08:52:46 2014] [error] [client 127.0.0.1] [WAR] cb (lib/errors.php:739) DETAIL: Key (name)=(socialprofile) is still referenced from table "artefact".] in adodb_throw(DELETE FROM "artefact_installed_type" WHERE (plugin = ? AND name NOT IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)), Array), referer: https://mahara-testing/admin/upgrade.php
This is due to the fact the missing plugin has artefacts in the artefact
table.
This line in lib/upgrade.php (approx line 500)
delete_records_select('artefact_installed_type', $select,
array_merge(array($pluginname),$types));
needs to have some sort of checking if associated items exist for the
plugin being removed and remove them first (or have some try { } catch
(Exception $e) {} to let the user know that there was an issue with
plugin A but still allow plugin B to be upgraded.
** Affects: mahara
Importance: High
Status: Confirmed
--
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/1287344
Title:
artefact installed upgrade problem
Status in Mahara ePortfolio:
Confirmed
Bug description:
When there is an artefact plugin missing and one tries to upgrade
another artefact plugin there is an error:
[WAR] cb (lib/errors.php:739) Failed to get a recordset: postgres7 error: [-1: ERROR: update or delete on table "artefact_installed_type" violates foreign key constraint "arte_art_fk" on table "artefact", referer: https://mahara-testing/admin/upgrade.php
[Tue Mar 04 08:52:46 2014] [error] [client 127.0.0.1] [WAR] cb (lib/errors.php:739) DETAIL: Key (name)=(socialprofile) is still referenced from table "artefact".] in adodb_throw(DELETE FROM "artefact_installed_type" WHERE (plugin = ? AND name NOT IN (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)), Array), referer: https://mahara-testing/admin/upgrade.php
This is due to the fact the missing plugin has artefacts in the
artefact table.
This line in lib/upgrade.php (approx line 500)
delete_records_select('artefact_installed_type', $select,
array_merge(array($pluginname),$types));
needs to have some sort of checking if associated items exist for the
plugin being removed and remove them first (or have some try { } catch
(Exception $e) {} to let the user know that there was an issue with
plugin A but still allow plugin B to be upgraded.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1287344/+subscriptions
Follow ups
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2018-04-05
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2017-11-21
-
[Bug 1287344] A change has been merged
From: Mahara Bot, 2017-11-21
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2017-09-18
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2017-03-29
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2016-10-21
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2016-10-20
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2016-04-28
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2015-10-23
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Jinelle Foley-Barnes, 2015-04-30
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Jinelle Foley-Barnes, 2015-04-30
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2015-04-16
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Kristina Hoeppner, 2014-11-10
-
[Bug 1287344] A patch has been submitted for review
From: Mahara Bot, 2014-09-24
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2014-08-11
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2014-08-11
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Robert Lyon, 2014-08-04
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Nigel Cunningham, 2014-07-11
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Nigel Cunningham, 2014-07-11
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2014-04-14
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Kristina Hoeppner, 2014-03-08
-
[Bug 1287344] Re: artefact installed upgrade problem
From: Aaron Wells, 2014-03-03
-
[Bug 1287344] [NEW] artefact installed upgrade problem
From: Robert Lyon, 2014-03-03
References