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

x3appdev’s picture

Nevermind, I fixed it by:
Reverted back to beta5,
Disabled drealty offices module,
Manually removed beta5 and replaced it with beta6.

kevinquillen’s picture

That is weird... yes, it could be from the unfinished offices module being in the repo prior to beta6.

I will try to replicate.

citricguy’s picture

I'm having the same issue, but I do not have the office module enabled.

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'database_name.field_data_field_potential_short_sale' doesn't exist: SELECT DISTINCT field_potential_short_sale_value FROM field_data_field_potential_short_sale ORDER BY field_potential_short_sale_value; Array ( ) in drealty_fieldmap_form_drealty_listing_edit_form_alter() (line 142 of /var/www/example.com/sites/all/modules/drealty/modules/drealty_fieldmap/drealty_fieldmap.module).

The PDO error shows up when I go to Edit any listing. Reverting to beta 5 has temporarily resolved this.

shauntyndall’s picture

Status: Active » Closed (cannot reproduce)

I'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.