upgrading to CCK 6.x-2.2 causes CCK blocks to disappear.
Kakuchiko - April 6, 2009 - 13:53
| Project: | CCK Blocks |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Kakuchiko |
| Status: | closed |
Jump to:
Description
I updated the CCK module to 6.x-2.2, which caused CCK blocks to no longer appear in anything but the content area (and only in admin view, unless I grant permission to all users to "view field_whatever).
Any ideas?

#1
I have the same problem here. The Blocks are only visible for admin. For normal users, only one block is displayed, but this block appears on every page.
#2
I solved the problem by deactivating block caching. See #400858: CCK Blocks appears to be incompatible with block caching for more details.
#3
I haven't ever enabled block caching. Surely enabling it will only give the appearance that it's working? I'm no expert, so I wouldn't turn my nose up at an explanation.
#4
I'm escalating this to "critical" because it's rather important to me that this module works. If that's not how things are done round here, apologies, but with no solution forthcoming, I don't know what to do. If you can reccommend an alternative with better support, I'd be grateful.
#5
I agree with kakuchiko. This problem should be fixed soon. Unfortunately, I'm not firm enough with drupal to understand the whole problem.
Maybe, adding the following line to the module, at the line where the block is generated, could solve the problem:
define('BLOCK_NO_CACHE', -1);Please check this.
#6
Hello.
Still no progress on this front. It would be helpful if people could say if they're also experiencing these issues with cck blocks, either to establish whether cck blocks is even worth using, or if there's a solution.
For the record, I tried running CCK 6.x-2.2 with CCK blocks on a fresh installation of drupal, and I experienced the exact same problem (with exactly the same solution - roll back to 6.x-2.1). Fokke did the same but experienced no issues whatsoever, so it's difficult to say who's right and who's wrong.
Again, I ask that people using CCK blocks in conjunction with CCK 6.x-2.2 share their experiences. If it's working for you and not for me, I need to know why.
Thank you
#7
And just to add, the php for CCK has changed considerably since the last revision, so it's reasonable to assume CCK BLOCKS may also require ammendments to work correctly.
#8
I think this is enabled by default. I set up a fresh installation some days ago, only using CCK and CCK_Blocks. There are no problems.
What type of field do you try to display in a block? For me, text fields and links are working, but date fields are not.
#9
I am having the same problem. I have two CCK fields in my nodes that show up in the right sidebar. They only show up for my admin user (not user1) and my editor user and they do not appear for anonymous users. I am made to believe that it is a logged in versus not logged in issue since some of Drupal caching doesn't apply to users who are logged in.
The CCK fields show up on every page on the site and it's always the fields of the last node saved. I can see how this would be a caching issue. (I have 'Normal' caching turned on with block caching turned on.) But after navigating around for a bit, the blocks disappear.
I turned off block caching and browsed the site as an anonymous user and all the CCK Blocks behaved as expected. This is my workaround until the issue is resolved.
I also have CCK 2.2. I upgraded a bit ago and didn't yet have content defined for CCK Blocks, so I can't draw a direct correlation, but I'll go with the prevailing wisdom of the previous comments.
I upgraded to CCK 2.x-dev and the problem persists. I have logged an issue with CCK and directed them to this issue. It is here: http://drupal.org/node/468086
#10
I'm having this problem, too. The blocks worked fine for a while, but now they're either not showing up or are displaying the same content on every page regardless of what they're supposed to show. Both of these seem to happen randomly under anonymous. How do you turn off block caching, and is that an otherwise bad thing to do?
#11
Hi,
i run the latest Version of Drupal: 6.13
I created a CCK Content Type: Text using: Textarea or Textfield
In both cases i got the following Result:
In Blocks i could saw now CCK_Text which i moved to Right sidebar.
Settings as default: Show on every Site. All Users (nothing selected).
Then I created Content of the Content type. I entered a Text and set it published and display on frontpage.
Only after i saved it, i could see the Content on right and in the center(did not changed Display settings to hidden).
But when i leave the node Url to frontpage or any page else it will not be displayed!!
I tried:
CCK 6.x-2.4
CCK Blocks 6.x-1.1
and
CCK Blocks 6.x-1.x-dev
CCK 6.x-2.x-dev
Block Cache (Performance) is disabled.
What can i do? What can i test?
#12
I don't really understand what you're saying, but typically a CCK field block will only show up on the page for that piece of content.
#13
Hi,
the block did not appear on every Page , although i set in: site Configuration - Blocks -> CCK_Text -> Configuration -> show on every side. Did i make a mistake?
#14
It should only appear on pages of content types that have that particular CCK field.
#15
Fixed in -dev
#16
Automatically closed -- issue fixed for 2 weeks with no activity.