I'm using this module on a test site - http://www.video4me.tv

with Acquia Marina theme, it doesn't seem to work; however, when I switched to a different theme it did work. Is there something I need to do to the theme?

Comments

johnalbin’s picture

Status: Active » Postponed (maintainer needs more info)

Can you describe what you expected and what happened with Acquia Marina?

tgaff2x’s picture

Sure, I have a different test environment where this is module is also enabled. On the other test community - when I go here: http://www.byppl.com/asdfasdfasdf (which returns a 404), I get the correct blocks on the left hand side, etc. So, it works correctly here for me under a different theme.e.

Whereas, on the site that is themed with acqua marina, when I go to an not found page on this test site http://www.video4me.tv/asdfasdfasdf (which also returns a 404), I do not get the correct blocks on the left hand side, etc. It's as if the 404 blocks module is not enabled, but yet I am certain that the module is enabled.

johnalbin’s picture

Component: Miscellaneous » Code
Category: support » bug
Status: Postponed (maintainer needs more info) » Active

Hmm… ok. I'll try enabling Acquia Marina on my test system to see what is going on.

johnalbin’s picture

Title: theme dependency? » Doesn't work with Acquia Marina
walwyn’s picture

Doesn't work with Chameleon theme either. When I switch to another theme like Deco its OK but not with Chameleon.

drseekrascal’s picture

It seems like the problem is that Acquia Marina doesn't use left and right as names for the sidebars. Instead the theme uses 'sidebar_first' and 'sidebar_last'. A modification in the file 'blocks404.active.inc' would make it work for Acquia Marina (?).

An admin setting for the module, where the regions could be set, would be nice. Is that possible John? Or could you describe how to modify the module for other regions than 'left' and 'right'?

From theme.info-file of Acquia Marina:

regions[sidebar_first] = sidebar first
regions[sidebar_last] = sidebar last
regions[header_middle] = header middle
regions[header_last] = header last
regions[preface_first] = preface first
regions[preface_middle] = preface middle
regions[preface_last] = preface last
regions[content_top] = content top
regions[content_bottom] = content bottom
regions[postscript_first] = postscript first
regions[postscript_middle] = postscript middle
regions[postscript_last] = postscript last
regions[footer_top] = footer top
regions[footer] = footer
regions[node_bottom] = node bottom

trombone’s picture

Also does not work with Waffles theme (based on Acquia Marina).

Tried to replace "left" and "right" with "sidebar_first" and "sidebar_last in the blocks404.active.inc file but no change.

Andrew Gorokhovets’s picture

still no work

marcushenningsen’s picture

I experienced the same thing with a theme based on Acquia Marina. I managed to find a simple workaround, however, I'm not sure it's a stable solution:

I simply removed lines 168-172 in the theme template file (themes/acquia-marina/template.php):

  // Remove sidebars if disabled
  if (!$vars['show_blocks']) {
    $vars['sidebar_first'] = '';
    $vars['sidebar_last'] = '';
  }

That should do the trick.

I haven't experienced any side effects so far, and even if there are any that should be harmless, but still I'd like to hear your comments.

Andrew Gorokhovets’s picture

It works not correctly.
It's return 2 blocks (primary links) on page 404

johnalbin’s picture

Status: Active » Fixed

Thanks for the tip, Marcus!

That gives me an idea how I can fix this problem from within 404 blocks module without you having to hack Acquia Marina. Please try out the new -dev release (which should be released in about 12 hours) and let me know if it fixes the problem. It should!

http://drupal.org/cvs?commit=231336

Status: Fixed » Closed (fixed)

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