I have the service links block enabled on one of my sites and it has all of the correct links when I'm logged in but when I'm anonymous, the block always shows (even for pages that it shouldn't) and appears to be linking to random content! I've triple checked my configuration. Is this a bug, and if so, how do I fix it?

Comments

rbgrn’s picture

Title: Block Cache not working correctly for anonymous users » Blocks work for content when logged-in but not when anonymous

It appears to be a block caching issue.

I'm running Drupal 6.10. If you'd like to see how the site is configured, it's at www.rbgrn.net and I have the service links turned on for blog entries and book pages. It has always worked correctly for me when I'm logged in but I found out that to have it work correctly for anonymous users, I need to have my block cache shut off. I tried just emptying the cache and that did not work either.

rbgrn’s picture

Title: Blocks work for content when logged-in but not when anonymous » Block Cache not working correctly for anonymous users
TheCrow’s picture

Title: Blocks work for content when logged-in but not when anonymous » Block Cache not working correctly for anonymous users

try this:
search in service_links_block function this code (service_links.module file):

 if ($op == 'list') {
    $blocks[0]['info'] = t('Service links');
  ...

add a line under it for have something like:

 if ($op == 'list') {
    $blocks[0]['info'] = t('Service links');
    $blocks[0]['cache'] = BLOCK_CACHE_PER_PAGE;
  ...

if its not enough delete too the row inside blocks table containing the field module set as service_links and after re-enable the block under drupal block management page.

TheCrow’s picture

Version: 6.x-1.0 » 6.x-2.x-dev

fixed long time ago!

TheCrow’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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