Duplicate _regions function name in different themes raises error message

abqaria - November 12, 2006 - 00:53
Project:Block Region
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

When clicking to customize other themes
i get these errors
Fatal error: Cannot redeclare internet_center_regions() (previously declared in /sdd/home/iblogger/public_html/themes/internet_center/template.php:4) in /sdd/home/iblogger/public_html/themes/orange/template.php on line 10

#1

nedjo - November 12, 2006 - 03:24

This looks to be an error in the orange theme and unrelated to blockregion.

#2

abqaria - November 12, 2006 - 19:27

no sir
i did disable block region and evrything worked no error

#3

nedjo - November 13, 2006 - 00:12
Title:error» Duplicate _regions function name in different themes raises error message
Category:bug report» support request
Priority:critical» normal
Status:active» fixed

I assume the file on your system /sdd/home/iblogger/public_html/themes/orange/template.php contains a function named internet_center_regions(). If so, that's the error. It should be orange_regions(). So I'm marking this a support request, and fixed. Please feel free to reopen it if that function does not exist.

(Block region fixes an issue that's a bug in the core block module that prevents themes from initiating after another theme has been initiated, so this sort of error can show up here and not with the core block module.)

#4

Anonymous - November 27, 2006 - 00:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.