Fatal Error When Configuring Block

jimmb - February 22, 2009 - 00:11
Project:Node Image Block
Version:5.x-2.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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

#1

juroon - February 28, 2009 - 10:25

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

#2

kurkuma - June 18, 2009 - 13:45

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.

#3

kurkuma - June 28, 2009 - 12:38
Status:active» needs review

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

AttachmentSize
nodeimageblock.patch 594 bytes

#4

kurkuma - June 28, 2009 - 15:40

Patch corrected!
Imagecache 5.x-2.4

AttachmentSize
nodeimageblock.patch 590 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.