Download & Extend

Check if imagecache module is available

Project:Filefield Styles
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review

Issue Summary

I installed the module without having imagecache installed and got blank pages with the following in logs:

/public_html/sites/all/modules/filefield_styles/filefield_styles.module(104) : Fatal error - Call to undefined function imagecache_presets()

I think you need to add an additional dependency.

Regards,

Nigel

Comments

#1

And ImageCache, as we should all know, requires ImageAPI. So that's TWO dependencies missing from the module page here.

Had a very panic-y client when we turned on Filefield Styles!

#2

Title:Also depends on imagecache for imagecache_presets.» Make module dependent of imagecache
Priority:normal» critical

#3

The code uses a call to module_exists('imagecache') elsewhere which makes me wonder if the module really should be dependent upon imagecache?

Eg, What if you don't want this module for any image files, but for a PDF / DOC / RTF handler?

I was able to avoid this error upon installation by wrapping the foreach at line 107 in an if module_exists.

AttachmentSize
713970.patch 1018 bytes

#4

Status:active» needs review

updating status.

priority = critical should be left as is because the module is "broken" out of the box if you don't have/want to install imagecache.

someone else can update the title to reflect my proposal in #3 if they deem it necessary...

#5

Title:Make module dependent of imagecache» Check if imagecache module is available