mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #66668
[Bug 1978300] Re: Mahara 22.04 upgrade fails due to missing use of dbprefix syntax
Hi Bruno, thanks for reporting this - I have created a patch with you as
the author.
This upgrade issue will happen in very specific case, i.e:
- when there is a difference between the email entries in artefact and artefact_internal_profile_email tables, which...
- would only have happened before we had code that ensured both entries were updated when a person changed their email address
This error was introduced in a patch created 2 months ago which checked
for 'email info drift' to handle the above scenario - which was added to
20.10, 21.04, and 22.04
I was able to replicate the issue by manipulating data and upgrading
from 21.10 to 22.04. Applying this patch fixed the problem.
So we will add this patch to the 20.10, 21.04, and 22.04 branches.
Thanks again Bruno!
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1978300
Title:
Mahara 22.04 upgrade fails due to missing use of dbprefix syntax
Status in Mahara:
New
Status in Mahara 21.10 series:
New
Status in Mahara 22.04 series:
New
Status in Mahara 22.10 series:
New
Bug description:
Mahara 22.04.1
Upgrade failed when using "$cfg->dbprefix" in config.php due to missing brackets in
lib/dp/upgrade.php :
Line 842
execute_sql("UPDATE artefact SET title = ? WHERE id = ?", array($record->email, $record->id));
need to be
execute_sql("UPDATE {artefact} SET title = ? WHERE id = ?", array($record->email, $record->id));
Thanks
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1978300/+subscriptions
References