Database update fails: array_keys(): Argument #1 ($array) must be of type array, null given

Created on 9 February 2023, about 2 years ago
Updated 11 February 2023, about 2 years ago

Problem/Motivation

 drush updb
 ------------ ----------- --------------- --------------------------------------
  Module       Update ID   Type            Description
 ------------ ----------- --------------- --------------------------------------
  nodeaccess   9002        hook_update_n   9002 - Migrates nodeaccess.settings.
 ------------ ----------- --------------- --------------------------------------


 Do you wish to run the specified pending updates? (yes/no) [yes]:
 > y

>  [notice] Update started: nodeaccess_update_9002
>  [warning] foreach() argument must be of type array|object, null given nodeaccess.install:166
>  [error]  array_keys(): Argument #1 ($array) must be of type array, null given
>  [error]  Update failed: nodeaccess_update_9002
 [error]  Update aborted by: nodeaccess_update_9002
 [error]  Finished performing updates.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇸United States tjtj

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

Comments & Activities

Production build 0.71.5 2024