Closed (fixed)
Project:
AdaptiveTheme
Version:
7.x-2.x-dev
Component:
CSS/HTML
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jan 2012 at 21:09 UTC
Updated:
6 May 2012 at 17:00 UTC
Without the block module enabled, I was able to enable an Adaptive Theme subtheme, which gave me a white screen of death when visiting the main site. Php logs showed "Fatal error: Call to undefined function block_get_blocks_by_region() in template.process.inc on line 151".
Comments
Comment #1
Jeff Burnz commentedGood point, I should remove the dependency.
Comment #2
rob.vangalen commentedI have the same problem.
Can someone help me out?
I don't know how to "remove the dependency"
Comment #3
Jeff Burnz commentedI forgot about this, will fix asap.
Comment #4
rob.vangalen commentedThis seems to resolve the problem.
Thank you verry much.
It also remember me to make backups :)
Comment #5
Jeff Burnz commentedIts in the theme now but not committed, I need to do some more stuff before making more commits to dev versions. Cheers for testing, much appreciated.
Comment #6
mleke commentedHi, I am sorry I am VERY new to this. I am having the same issue but I am not sure how to fix it. Do I put the below code in my php file? If so where do I put it? I have tried that but I am still getting the white fatal error screen. It won't let me do ANYTHING on my site.
$text = t('Main menu');
if (module_exists('block')) {
$text = block_get_blocks_by_region('menu_bar') ? t('Navigation') : t('Main menu');
}
Thank you, thank you!
Comment #7
Jeff Burnz commentedIt goes in
template.process.incaround line 177, replace this line:$text = block_get_blocks_by_region('menu_bar') ? t('Navigation') : t('Main menu');
With the above code.
Comment #8
mleke commentedThank you!!!!
Comment #9
Jeff Burnz commentedFixed in dev.