If I run cron when Image module is not enabled I'll get an error:

Fatal error: Call to undefined function image_style_load() in /srv/mediakirjasto/contrib/modules/storage_api/core_bridge/storage_core_bridge.module on line 453

This is fixed by enabling the Image module.

So... the Image module dependency needs to be decleared in the storage_core_bridge.info file or we need to check in the code if the module is installed before calling it's functions. See https://www.drupal.org/node/219100.

Comments

  • Perignon committed 3bd5f21 on 7.x-1.x
    Issue #2447175: Image module dependency not decleared
    

  • Perignon committed 00ad0bd on 7.x-1.x
    Issue #2447175 by jiv_e: Image module dependency not
    decleared' --author...
perignon’s picture

Status: Active » Fixed

Thanks for pointing this out!

jiv_e’s picture

There are use cases for Storage API where Image module is not needed. Is it possible to add checks for the Image module function calls and remove the dependency?

perignon’s picture

I would actually have to dig into it and see. For now I corrected the dependency issue so you can't enable the module without image being turned on.

jiv_e’s picture

Ok! I understand. I'll post a new issue on that. Thanks!

Status: Fixed » Closed (fixed)

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