Closed waynedyck closed 3 years ago
Update causes server 500 error on the DEV server with the following message displayed after running update.php
,
Warning: Invalid argument supplied for foreach() in drupal_schema_field_types() (line 7314 of /mnt/www/html/wsdotdev/docroot/includes/common.inc).
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7334 of /mnt/www/html/wsdotdev/docroot/includes/common.inc).
Warning: Invalid argument supplied for foreach() in drupal_schema_field_types() (line 7314 of /mnt/www/html/wsdotdev/docroot/includes/common.inc).
Warning: array_keys() expects parameter 1 to be array, null given in drupal_schema_fields_sql() (line 7334 of /mnt/www/html/wsdotdev/docroot/includes/common.inc).
Warning: Invalid argument supplied for foreach() in entity_metadata_convert_schema() (line 151 of /mnt/www/html/wsdotdev/docroot/sites/all/modules/contrib/entity/entity.info.inc).
Warning: in_array() expects parameter 2 to be array, null given in _entity_defaults_rebuild() (line 871 of /mnt/www/html/wsdotdev/docroot/sites/all/modules/contrib/entity/entity.module).
User warning: Missing database columns for the exportable entity rules_config as defined by entity_exportable_schema_fields(). Update the according module and run update.php! in _entity_defaults_rebuild() (line 872 of /mnt/www/html/wsdotdev/docroot/sites/all/modules/contrib/entity/entity.module).
TypeError: Argument 2 passed to SelectQuery::fields() must be of the type array, null given, called in /mnt/www/html/wsdotdev/docroot/includes/entity.inc on line 317 in SelectQuery->fields() (line 1316 of /mnt/www/html/wsdotdev/docroot/includes/database/select.inc).
Acquia support ran the drush registry-rebuild
command and it still didn't work. There is a stronger option to this command called, --fire-bazooka
which, when applied, fixed error message.
Rebuild the registry or module cache in a Drupal install.
Examples:
drush rr --no-cache-clear Rebuild the registry only, do not clear caches, unless --fire-bazooka is also used.
drush rr --fire-bazooka Truncate registry and registry_file tables and build them from scratch. Forces all
caches clear.
Options:
--fire-bazooka Truncate registry and registry_file tables and build them from scratch. Forces all
caches clear.
--no-cache-clear Rebuild the registry only, do not clear caches, unless --fire-bazooka is also used.
The following module has been identified as having an update available: