Undefined variable $filename UpdateDBCommands.php:305

Created on 12 January 2025, 3 months ago

Problem/Motivation

I'm using Drupal 10.3.6 and updating all_in_one_accessibility from 1.5.10 to 1.5.11 (ddev on Ubuntu).

After requiring the module with the composer and running the drush updb I received this message:

>  [warning] Undefined variable $filename UpdateDBCommands.php:305
>  [warning] Post update function all_in_one_accessibility_post_update_call_api not found in file .php
>  [error]  Update failed: all_in_one_accessibility_post_update_call_api
 [error]  Update aborted by: all_in_one_accessibility_post_update_call_api
 [error]  Finished performing updates.
Failed to run drush updb: exit status 1

Steps to reproduce

composer require 'drupal/all_in_one_accessibility:^1.5'
drush updb

All other database updates were installed without any issues.

For now, I resolved it using: https://mysite.com/update.php, but I'm curious why drush updb shows the message presented above.

🐛 Bug report
Status

Active

Version

1.5

Component

Code

Created by

🇬🇪Georgia almador

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

Comments & Activities

Production build 0.71.5 2024