Hello, I created a image field with machine name "field_galleria" and made it available in a CCK Block. Later I deleted that field.

Immediately afterwards and ever since I get the following error on every page of the site:

Notice: Undefined index: field_galleria in cck_blocks_block_view() (line 97 of /home/leadinc/public_html/drupal7/sites/all/modules/cck_blocks/cck_blocks.module).

Any ideas? I wasn't sure if this is a bug so I listed it for support. Any help would be much appreciated.

Comments

d21anthony’s picture

Hello,

I'm experiencing the same issue. It seems that if you delete a field of the content type it continues to look for it. It gets hung up on line 97. Hope this is helpful for Awesome maintainers of this great module.

Kinda on a side note: I've been using patch 24 and it really maximizes the potential of this module. http://drupal.org/node/833730 #24.

d21anthony’s picture

Although, I know this is not a solution at all. It's a feeble attempt at suppressing that error. I created a field named Spare and gave it the machine name that it calls out for.

apt94jesse’s picture

This has been open a while but I figured I'd jump in. I had the same issue, but manually deleting the rows from the block table that referenced the deleted fields seemed to fix the issue for me.

At a glance, the code from this module is just referencing the core block table, so I'm thinking this actually might be a bug in the core block system. But that's where it gets above my pay grade. Good luck.

damien_vancouver’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » damien_vancouver

This sounds like CCK blocks is not properly removing the block it created.. i think the bug is in cck_blocks and will try and reproduce and fix.

Unfortunately fixing it won't remove the error, but I'll see if I can do that via an update hook, or at the very least will provide SQL / instructions on how to clean up the data.