I get the following error with imagefield_crop installed when trying to use drush updatedb

Fatal error: Call to undefined function imagefield_crop_widget_settings_save() in /home/tom/workspace/concern6/sites/all/modules/contrib/imagefield_crop/imagefield_crop.module on line 54

Moving the two instances of module_load_include() out of hook_init() up to the top of the file fixes it.

Comments

mrfelton’s picture

Title: Causes errors when using drush updatedb » Calling module_load_include() in hook_init() causes errors when using drush updatedb

Retitling to make clearer.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new541 bytes

And a patch that resolves.

yhager’s picture

Why is that needed?
Shouldn't drush updatedb call hook_init anyway?
Does it also happen with 'update.php'?

blazindrop’s picture

I get the same exact error when trying to call pm-enable . This is actually preventing me from enabling a set of modules on a cloned site, and it's somewhat discouraging that there's been no progress on this bug in almost 7 months.

mrfelton, thanks for the patch... I'll give that a test drive.

msonnabaum’s picture

Status: Needs review » Reviewed & tested by the community

I ran into this bug enabling this module using an install profile. Patch fixes it.

Marking RTBC.

omega8cc’s picture

This patch helped us resolving one important issue we had with OpenScholar and Aegir, see: http://drupal.org/node/888086#comment-3582470

YK85’s picture

subscribing

rupl’s picture

The patch in #2 eliminated an error I encountered while enabling a Feature that had imagefield_crop as a dependency.

Giving this a bump and reiterating RTBC.

yhager’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed (sorry for the delay)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.