Some drush commands create the following error, being that the code from content.module hasn't yet been loaded when called by imagecache_presets()

Call Stack:
    0.0040     195584   1. {main}() /usr/local/drush4/drush.php:0
    0.0160    3330392   2. drush_main() /usr/local/drush4/drush.php:41
    0.8160   53577744   3. drush_dispatch() /usr/local/drush4/drush.php:101
    0.8160   53577744   4. call_user_func_array() /usr/local/drush4/includes/command.inc:236
    0.8160   53577744   5. drush_command() /usr/local/drush4/includes/command.inc:0
    0.8160   53577808   6. _drush_invoke_args() /usr/local/drush4/includes/command.inc:836
    1.7000   56072792   7. call_user_func_array() /usr/local/drush4/includes/command.inc:131
    1.7000   56073888   8. drush_pm_enable() /usr/local/drush4/includes/command.inc:0
    1.8920   56401824   9. drush_system_modules_form_submit() /usr/local/drush4/commands/pm/pm.drush.inc:743
    1.8960   57399800  10. drupal_execute() /usr/local/drush4/commands/core/drupal/environment_6.inc:137
    2.4000   60159320  11. drupal_prepare_form() /mnt/www/html/calclosetdev/docroot/includes/form.inc:313
    2.4040   60301720  12. drupal_alter() /mnt/www/html/calclosetdev/docroot/includes/form.inc:551
    2.4040   60305736  13. call_user_func_array() /mnt/www/html/calclosetdev/docroot/includes/common.inc:2930
    2.4040   60306656  14. imagecache_form_system_modules_alter() /mnt/www/html/calclosetdev/docroot/includes/common.inc:0
    2.4040   60306848  15. imagecache_presets() /mnt/www/html/calclosetdev/docroot/sites/all/modules/contrib/imagecache/imagecache.module:98

Drush command terminated abnormally due to an unrecoverable error.           [error]
Error: Call to undefined function content_clear_type_cache() in
CommentFileSizeAuthor
#1 imagecache-1879126-1.patch497 bytesc4rl

Comments

c4rl’s picture

StatusFileSize
new497 bytes

Tentatively, this feels like a bit of a workaround, so I'm welcome to more elegant solutions as I haven't had the time to dig into the root cause. I may post a revision if time allows.

c4rl’s picture

Status: Active » Closed (works as designed)

Nevermind, this was a problem with my drush script, not with the module. Closing.