Hello,

I'm trying to add a quicktime video (.mov) to a block on the homepage of http://mytestanswers.com/ (to replace the screenshot that's currently there). After looking around, it seemed like Node Image Block would be a perfect solution. I followed all the instructions, but when I click configure at /admin/build/block for "Node Image Block 2", I get:

Fatal error: Call to undefined function _imagecache_get_presets() in /home/mytestan/public_html/sites/all/modules/nodeimageblock/nodeimageblock.module on line 157

I see in the instructions something about creating an Imagecache preset that matches the size of the video player (I think that is what's being suggested). So I created a preset that matches the size of the screenshot (not knowing exactly what size the player is...). I then tried again to configure the block, but got the same error as above.

I can't think of anything else to try, and have no idea why this error ("Fatal", no less) is occuring. Any help will be much appreciated!

Thanks,

Jim

CommentFileSizeAuthor
#4 nodeimageblock.patch590 byteskurkuma
#3 nodeimageblock.patch594 byteskurkuma

Comments

juroon’s picture

I got the same error on Drupal 5.16 with Imagecache 5.x-2.3.

kurkuma’s picture

As a temporary fix I had to comment lines 155 to 167, to cancel the imagecache presets checking. That is fine for me as I don¡t use imagecache for the images I want to embed in the block.

kurkuma’s picture

Status: Active » Needs review
StatusFileSize
new594 bytes

Try this patch, it replaces the calls to obsolete imagecache preset functions.

kurkuma’s picture

StatusFileSize
new590 bytes

Patch corrected!
Imagecache 5.x-2.4