← Back to team overview

mahara-contributors team mailing list archive

[Bug 1978300] Re: Mahara 22.04 upgrade fails due to missing use of dbprefix syntax

 

Hi

On my side, I encounter the same problem when I upgrade from 21.10 to
the last version of this branch, before upgrade to 22.04

File lib/db/upgrade.php (Latest commit 018c3f1 on 28 Apr)
line 2448 :
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
Bruno Malaval

-- 
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 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