Hi. I installed AGov and update it with drush

drush up

And i get this error:

WD metatag: Error loading meta tag data, do the database updates need to be ran? do the database updates need to be ran? The error occurred when loading record(s) 0 for the user    [error]
entity type. The error message was: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'language' in 'field list'
array_keys() expects parameter 1 to be array, null given common.inc:6969                                                                                                             [warning]
WD php: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bean.vid' in 'field list': SELECT bean.bid AS entity_id, bean.vid AS revision_id, bean.type AS bundle, [error]
:entity_type AS entity_type
FROM 
{bean} bean; Array
(
    [:entity_type] => bean
)
 in EntityFieldQuery->execute() (line 1145 of /var/www/vhosts/mysite/portal/includes/entity.inc).
Drush command terminated abnormally due to an unrecoverable error.                                                                                                                   [error]
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'bean.vid' in 'field list': SELECT bean.bid AS entity_id, bean.vid AS revision_id, bean.type AS bundle, :entity_type AS entity_type
FROM 
{bean} bean; Array
(
    [:entity_type] => bean
)

And when check my site i see this error:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mysite_portal.bean_revision' doesn't exist: SELECT revision.*, base.bid AS bid, base.delta AS delta, base.label AS label, base.title AS title, base.type AS type, base.view_mode AS view_mode, base.data AS data FROM {bean} base INNER JOIN {bean_revision} revision ON revision.vid = base.vid WHERE (base.bid IN (:db_condition_placeholder_0)) ; Array ( [:db_condition_placeholder_0] => 1 ) in EntityAPIController->query() (line 152 of /var/www/vhosts/mysite/portal/profiles/agov/modules/contrib/entity/includes/entity.controller.inc).

Comments

kim.pepper’s picture

Sounds like you are missing some tables. Did you manage to install it successfully the first time, before you ran drush up?

K

kim.pepper’s picture

Status: Active » Postponed (maintainer needs more info)
xtfer’s picture

Category: bug » support
xtfer’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

This is a problem with Bean.