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.
I attempted to update OG on my site from 7.x-1.5 to 7.x-2.3 according to the security notice and got:
Project og was updated successfully. Installed version is now 7.x-2.3.
Backups were saved into the directory [ok]
/home/jbd/drush-backups/msfdrupal/20130903213510/modules/og.
PHP Fatal error: Call to undefined function og_field_property_callback() in /var/www/drupal-7.14/sites/all/modules/entity/modules/field.info.inc on line 30
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function og_field_property_callback() in
/var/www/drupal-7.14/sites/all/modules/entity/modules/field.info.inc,
line 30
The external command could not be executed due to an application [error]
error.
Backups were restored successfully. [ok]
Found other similar errors that were more than a year old and unresolved. I thought that someone else would surely run into this error by now since it is an advertised security update.
Comments
Comment #1
fonant CreditAttribution: fonant commentedI get this too. None of the fixes from earlier reports work for me...
Comment #2
lautermash CreditAttribution: lautermash commentedSame here.
Comment #3
BruceDawson CreditAttribution: BruceDawson commentedNote: I would have expected drush (or something) to either:
Comment #4
joverstreet CreditAttribution: joverstreet commentedSame issue from 1.4 to 2.3. Any solutions yet?
Thanks...
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedSame here. My workaround was instead of using drush up, I did drush dl, then drush updatedb. Seems to have worked. It might be related to this issue of drush: https://github.com/drush-ops/drush/issues/132
Comment #6
brandy.brown CreditAttribution: brandy.brown commentedThank you! #5 worked great for me. Coincidentally, if you've already drush up'd, you can still just run drush dl.
Comment #7
emjayess CreditAttribution: emjayess commentedI've got a project that I upgraded to og 2.7 around a month ago... upgrade was smooth and seemingly without a hitch, and the site's been running smoothly since. Now (on a pre-production clone of the site) suddenly this error has popped up, and has rendered the whole site as well as the drush interface useless. I don't understand how this could've happened?!?
Comment #8
kyletaylored CreditAttribution: kyletaylored at LevelTen Interactive commentedI've been getting this on a recent upgrade from 1.x to 2.x, and it's been a pain ever since because all drush commands fail, including
cache-clear
.The trick is, manually clear/truncate the
cache_field
table. This should allow you to then run drush commands and continue with database updates.