Download & Extend

Duplicate _regions function name in different themes raises error message

Project:Block Region
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

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

#2

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

#3

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

Status:fixed» closed (fixed)