Call to a member function fetchField() on null

Created on 17 June 2022, about 2 years ago
Updated 22 May 2023, about 1 year ago

Problem/Motivation

I tried to upgrade a 9.3.15 site to 9.4.0.

It went fine until I tried "drush updatedb -y". This is the error that was the result:

 [warning] Undefined array key "return" Connection.php:748
Error: Call to a member function fetchField() on null in Drupal\sqlsrv\Driver\Database\sqlsrv\Schema->tableExists() (line 733 of C:\ApacheSites\arr_dr9_devp9\web\modules\contrib\sqlsrv\src\Driver\Database\sqlsrv\Schema.php).
 [warning] Drush command terminated abnormally.

Steps to reproduce

  • composer require drupal/core-recommended:^9.4.0 drupal/core-dev:^9.4.0 drupal/core-composer-scaffold:^9.4.0 drupal/core-project-message:^9.4.0 drupal/core-vendor-hardening:^9.4.0 drush/drush drupal/devel composer/installers --update-with-dependencies
  • drush updatedb -y

My configuration

  • Windows
  • MS SQL Server - 2017 Enterprise
  • Apache 2.4
  • PHP 8.0
  • Drupal 9.3.15
  • Drupal driver for SQL Server and SQL Azure 4.3.1
🐛 Bug report
Status

Fixed

Version

4.3

Component

Schema handling

Created by

🇺🇸United States ARRC-Drupal-Chick

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024