Hi,

This module looks very interesting, however I'm having trouble making it work. Following the instructions on the demo page I only get a black box, with this error message above: "warning: Invalid argument supplied for foreach() in /var/www/mydomain/.../modules/imageflow/imageflow.module on line 96."

Am I doing something wrong?

Thanks,
Mikkel

Comments

jpsalter’s picture

Category: bug » support

In the view you're creating:

1) make sure you've added your node's CCK imagefield to the view's "Fields" section.
2) also, under options for that field - you'll want to choose an imagecache option that is appended with ": Imageflow".

Thanks for trying the module. Please let me know how it goes.

Lostmonkey’s picture

Priority: Normal » Minor

SUCCESS! Not sure what exactly I did differently this time, but now it works! I don't suppose there is any way I could have a white background instead of a black? (would work better with my theme style)

:-) Mikkel

jpsalter’s picture

Status: Active » Closed (fixed)

Mikkel,

You can change your background to white by added this to your theme's style.css file:

.drupalimageflow {
background-color: #fff;
}

If you are using the imageapi_reflection.module - you'll want to change the background color of the reflection to match:
255,255,255

Johannes De Boeck’s picture

Status: Closed (fixed) » Active

i'm havin' the same error about line 96 as above..and don't seem to get rid of it.

I followed the suggestions on this page and here: http://fivepaths.com/views-imageflow-imagecache-2x-imageapi-imageapireflect

seems like an awesome module though,

Johannes

jpsalter’s picture

I'll try and make clearer instructions soon.

Don't forget when you're building your view to choose the "imageflow" view type and add an image field in the fields section.

Sometimes I have had to edit the image field and save it again to get a new imagecache profile to appear as an option.

koolhead17’s picture

I am getting the same error : "warning: Invalid argument supplied for foreach() in /var/www/workit/modules/imageflow/imageflow.module on line 96."

i have followed same instruction as provided above.i wish it gets working for me too.

in view type i selected imageflow type and field with filed_imageflow.

can anyone tell me what is the real reason for the black background?

i will be thankful for the help as i need to figure the thing asap.
:)

andybrace’s picture

I am not sure if this will work for everyone as it may be an issue specific to my site setup.

After following all the instructions here and on the documentation site I received the empty black box and invalid arguement error. Checking the developer module output for the view confirmed that the nodes were being correctly loaded but were not being passed to the theming function correctly. I solved the problem by changing line 88 in imageflow.module from:

function theme_views_view_imageflow($view, $nodes, $type) {

to

function theme_views_view_imageflow($view, $type, $nodes, $level = NULL, $args = NULL) {

this meant that the $nodes array was correctly populated and then the imageflow displayed correctly.

Great module, glad to have it working, thanks for setting it up!

Johannes De Boeck’s picture

that worked for me :) thanx a lot!

sbell22’s picture

that new line of code fixed it for me too - thanks a bunch for taking the time to post it.
Great module!

jamesbenison’s picture

Status: Active » Closed (won't fix)

Closing out obsolete issue.