_image_cache_get_presets has been renamed and return value modified. Please, could this module be adapted?

CommentFileSizeAuthor
#3 lightbox2-217997-3.patch1.23 KBjbrauer

Comments

zmove’s picture

signed, it could be great to have this excellent module compatible with the other excellent module imagecache beta 2

stella’s picture

Marked #219149 as a duplicate of this issue.

#219149 gives the following extra information:

...get the following error whenever I try to interact with imagecache now (e.g., attempt to edit pre-defined preset):
"Fatal error: Call to undefined function _imagecache_get_presets() in lightbox2.module on line 482"

It looks like the new API calls this function imagecache_presets(), but I have not attempted to try any fixes.

jbrauer’s picture

Status: Active » Needs review
StatusFileSize
new1.23 KB

Here's the patch that worked for a production site for me.

stella’s picture

Status: Needs review » Fixed

There was more to it than just changing the function call, as the return value of the imagecache_presets() function was also different. I've introduced support for both versions of the module and it can be found in the latest dev version of the module which will be available later today.

Cheers,
Stella

jfall’s picture

subscribe. thanks for your efforts on this.

stella’s picture

Released in Lightbox2 5.x-2.4.

Cheers,
Stella

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

wdfy’s picture

Hello all, i installed imagecache (2.x), imageAPI and lightbox2 (5.x-2.7), and had them working well. But when i clicked the "imagecache" link, this error still came out:

Fatal error: Call to undefined function imagecache_presets() in D:\xampp\htdocs\beta2\modules\imagecache\imagecache_ui.module on line 113

So I can't navigate the imagecache preset now. Can anyone please tell me how to make it work well?

Thank you very much.

stella’s picture

wdfy: please open a separate issue for this problem. Also the issue should really be logged against the imagecache module as that is the module that is producing the error.

Cheers,
Stella