Update failed: linktitle_post_update_warning

Created on 16 January 2024, 6 months ago

Problem/Motivation

Running a database update with latest Drush v12.4.3 throws the following error:

[warning] Undefined variable $filename UpdateDBCommands.php:305
[warning] Post update function linktitle_post_update_warning not found in file .php
[error]  Update failed: linktitle_post_update_warning

Steps to reproduce

  1. Update Drush to v12.4.3
  2. Run drush updb

Proposed resolution

Rename linktitle.install to linktite.post_update.php

Renaming the file seems to allow the post update to run properly, however I did notice that $filename is indeed undefined in the Drush package:

vendor/drush/drush/src/Commands/core/UpdateDBCommands.php:305

I will submit a bug report on the Drush project too.

πŸ› Bug report
Status

Active

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024