Closed (fixed)
Project:
404 Blocks
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2009 at 05:31 UTC
Updated:
13 Jul 2009 at 19:20 UTC
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
Comment #1
johnalbinCan you describe what you expected and what happened with Acquia Marina?
Comment #2
tgaff2x commentedSure, 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.
Comment #3
johnalbinHmm… ok. I'll try enabling Acquia Marina on my test system to see what is going on.
Comment #4
johnalbinComment #5
walwyn commentedDoesn't work with Chameleon theme either. When I switch to another theme like Deco its OK but not with Chameleon.
Comment #6
drseekrascal commentedIt 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
Comment #7
trombone commentedAlso 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.
Comment #8
Andrew Gorokhovets commentedstill no work
Comment #9
marcushenningsen commentedI 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):
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.
Comment #10
Andrew Gorokhovets commentedIt works not correctly.
It's return 2 blocks (primary links) on page 404
Comment #11
johnalbinThanks 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