I received the following errors after updating from 7.x-3.0-beta5 to 7.x-3.0-beta6.
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7102 of drupal/includes/common.inc).
Recoverable fatal error: Argument 2 passed to SelectQuery::fields() must be an array, null given, called in drupal/includes/entity.inc on line 279 and defined in SelectQuery->fields() (line 1301 of drupal/includes/database/select.inc).
Then this error when attempting drush cache-clear
[root@****# drush cc
array_keys() expects parameter 1 to be array, null given [warning]common.inc:7102
WD php: PDOException: SQLSTATE[42S02]: Base table or view not found: [error]
1146 Table 'DataBase.drealty_office_type' doesn't exist: SELECT
base.*
FROM
{drealty_office_type} base; Array
(
)
in EntityAPIController->query() (line 187 of
drupal/sites/all/modules/entity/includes/entity.controller.inc).
Drush command terminated abnormally due to an unrecoverable error. [error]
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'DataBase.drealty_office_type' doesn't exist: SELECT base.*
FROM
{drealty_office_type} base; Array
(
)
in EntityAPIController->query() (line 187 of drupal/sites/all/modules/entity/includes/entity.conoller.inc).
I am not using drealty offices, and there is no table in the database named 'drealty_office_type'.
Comments
Comment #1
x3appdev commentedNevermind, I fixed it by:
Reverted back to beta5,
Disabled drealty offices module,
Manually removed beta5 and replaced it with beta6.
Comment #2
kevinquillen commentedThat is weird... yes, it could be from the unfinished offices module being in the repo prior to beta6.
I will try to replicate.
Comment #3
citricguy commentedI'm having the same issue, but I do not have the office module enabled.
The PDO error shows up when I go to Edit any listing. Reverting to beta 5 has temporarily resolved this.
Comment #4
shauntyndall commentedI'm not seeing any further reports of this upgrade issue. If you can replicate this and provide the maintainers with a drush site backup for efficient debugging please reopen.