Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
array_keys() expects parameter 1 to be array, null given [warning]
common.inc:6969
WD php: PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown[error]
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
)
in EntityFieldQuery->execute() (line 1145 of
SITEPATH/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
)
in EntityFieldQuery->execute() (line 1145 of SITEPATH/includes/entity.inc).Backups were restored successfully. [ok]
Just changed to SITEPATH to hide where it is.
Any ideas what's going wrong?
Comments
Comment #1
saltednutRan into this same problem today. Switched to dev branch and did update.php manually. It threw some errors but the revisions table was created and everything seems ok...
Here's the dump of errors I saw running update.php
Comment #2
pbz1912 CreditAttribution: pbz1912 commentedThere didn't seem to be any issues updating with the module through the admin/modules/update page. Odd.
Comment #3
enzipher CreditAttribution: enzipher commentedRan into this as well. Running
drush updatedb
takes care of it.Cheers,
Comment #4
Elijah LynnSame here, something is happening with the latest hook_update_N().
I ran into something like this the other day, using drupal_flush_all_caches() instead of cache_clear_all() did the trick and the update ran on install. This should help troubleshoot the issue further since running drush updb as mentioned above does install the update, but it should have installed the update on install/update.
Comment #5
metzlerd CreditAttribution: metzlerd commentedAlso ran into this problem, drush upgrade appears to be non-functional. Were it my module, I'd think this would be a release blocker, so am upping priority? I don't see a work around without abandoning drush for the upgrade. Anyone else have one?
Comment #6
indytechcook CreditAttribution: indytechcook commentedI changed the updated function to use drupal_flush_all_caches which should be in the latest dev.
Possibly related issues:
Comment #7
indytechcook CreditAttribution: indytechcook commentedI"m tagging a new release then I'll test this. I "hope" it's fixed.
Comment #8
indytechcook CreditAttribution: indytechcook commentedI am able to use drush to update now with RC10.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedI wasn't able to upgrade to either rc10 or 1.0. Both give the same error above.
Comment #11
botrisStill happening when updating from rc6.
I've tested updates to 1.1 / 1.2 / rc7
Comment #11.0
botrisUpdated issue summary.
Comment #12
1n05 CreditAttribution: 1n05 commented"Still happening when updating from rc6.
I've tested updates to 1.1 / 1.2 / rc7"...
Any ideas?
Comment #13
mistrytheory CreditAttribution: mistrytheory commentedI've tried updating from rc6 to rc7 and rc6 to rc10 as mentioned in indytechcook's comment but no luck.
As this is currently set to "critical", is anybody currently looking into this at the moment?