Hi

Thanks for the module.

I follow your tutorial with a node type of mine
I get this message:
warning: Invalid argument supplied for foreach() in C:\wamp\www\afterfoot\sites\all\themes\newswire\custom\modules\ddblock\ddblock-cycle-block-content-upright50.tpl.php on line 42.

CommentFileSizeAuthor
#18 variables.txt3.94 KBRoulion

Comments

Roulion’s picture

Shall the fiels have the exact name you say or can be named differently?

Roulion’s picture

Category: bug » support

OK i got it... I miss the preprocess functions i have to insert in the template.php file.

Please may you deliver it?

Thanks

Roulion’s picture

Title: Invalid argument supplied for foreach() » Images doesn't display

OK i get it however, images don't display. In the field i customized the file path with some thing like "news/[nid]", (from dthe files directory)?

I use the 6.x-3.0-alpha2 version of Imagefield module and the 6.x-3.0-alpha5 version of the filefield module

shijmus’s picture

I upgraded from previous release, and now the image doesn't display too, it worked before

dropchew’s picture

First time user. I followed the tutorial for creating recent comments block and its not working. Just showing the block titile...

Update: installed RC2 and its working now

ppblaauw’s picture

Dropchew: Please open a new issue for this.

ppblaauw’s picture

Status: Fixed » Active

Shijmus: please open a new issue for this.

Edit: See issue http://drupal.org/node/351453 for patch

ppblaauw’s picture

1.) I don't understand your problem but...

You should only have to change:

node_data_field_pager_item_text_field_image_fid

twice

if you have a different view field name for your imagefield

You can uncomment the lines at the top of the preprocess functions to see your view field names

2.) We use the same version for the Imagefield and the filefield modules

Can you send a link to your website so I can help you better.
You can do this on my contact form

Roulion’s picture

ppblaauw, actually, i created a special node type to test it... with exactly the same fields with the same names (except Title which is Titre and Body Which is Corps) and the same settings as you told... Idem for the view and the ddblock settings.

As far as, i see, maybe the problem comes from the query which is in the template.php file. To catch the picture the query looks like "SELECT field_image FROM {files}..." The "{files}" table does'nt exist...

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

The files table is the standard files table of a drupal installation where file/image information is stored.
Have a look at your database and you will find the table.

If you can, send a link to your site so I can help you better.

Roulion’s picture

sorry I can't it's only on local. I am migrating an existing site to drupal...

I think the point is here. I tell you on friday. I can't chek it before

bejayoharen’s picture

Status: Postponed (maintainer needs more info) » Active

I get this error as well. I have installed the preprocess functions, and tried renaming them. I use minnelli as my theme, although I've modified it slightly. I have renamed the functions as described so that they are named, for example "minnelli_preprocess_ddblock_cycle_pager_content". I also tried "garland_preprocess_ddblock_cycle_pager_content" (because garland is the "parent" theme of minnelli) and it's clear that although the template file is used (because if I mess up the syntax my whole site breaks :), those functions are never called (I uncommented the drupal_set_message lines).

Any help appreciated.

Thanks

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

Bejayoharan:

I don't know what the problem can be. I need some more information.

The name with minnelli is ok.

Can you send a link to your site, so I can help you better?
You can do it on my contact form.

bsod’s picture

One of the solutions(probably not the easiest one;P) is to upgrade your drupal to at least v6.7, because since this version, preprocess functions are handled differently and ddblock rc3 is using this new preprocess functions - http://drupal.org/node/223430 . I'm not able to check if it works because I've already done the upgrade, but maybe copying template.php to themes/your_theme/custom/modules/ddblock will work?

ppblaauw’s picture

#14 The Dynamic display block module does NOT need an upgrade of Drupal core to version 6.7 to work.

As I understand node http://drupal.org/node/223430 : for version 6.7 and above of Drupal core you do not need to copy the templates form a module anymore to your theme to get your preprocess functions recognized. In the case of the Dynamic display block module we provided copies of the ddblock templates in the theme package for the upright theme. So it will also work with older versions of Drupal 6. From Drupal 6.7 and above you would not need a copy of the ddblock template files anymore to get the preprocess functions recognized (Will try this out and confirm later).

#12 Issue solved by clearing the cache.

bsod’s picture

You're right, I misunderstanded node linked by me, my bad.

bejayoharen’s picture

Status: Postponed (maintainer needs more info) » Fixed

I was able to fix this thanks to help from ppblaauw. I mucked around a bit with my cache settings, including turning block caching off and on again, but I'm pretty sure all that was needed was to clear the cache. D'oh!

One more note for posterity: I was upgrading from RC2.

Thanks for the help!

Roulion’s picture

StatusFileSize
new3.94 KB

well, i try o mdify the query but there is no results.

If i print the variables and settings i get this

I don't understand why the query to get the filepatch doesn't work

ppblaauw’s picture

Status: Fixed » Postponed (maintainer needs more info)

Roulion,

Your fid field name is:

node_data_field_image_field_image_fid

In the example we provide it is

node_data_field_pager_item_text_field_image_fid

So you have to change this in both preprocess fuctions to your field name:

node_data_field_image_field_image_fid

like

if (isset($result->node_data_field_image_field_image_fid)) {
 // get image id
 $fid = $result->node_data_field_image_field_image_fid;

Hope this helps you further

If not can you also send your preprocess funtions.
I think your have almost successfully installed and configured the module

Philip

Roulion’s picture

ok thank you... it works

ppblaauw’s picture

Status: Postponed (maintainer needs more info) » Fixed

Set status to fixed.

Status: Active » Closed (fixed)

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