Setting canvas subtheme for Maintenance Page

ano1 - June 29, 2009 - 20:14
Project:Studio theme pack
Version:6.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,

I successfully created a subtheme of canvas using the instructions you included with your theme. I am now trying to set this as my maintenance page theme. Following the drupal handbook instructions I uncomment 3 separate lines of settings.php :

* the array declaration (# $conf = array()
* the maintenance theme setting (# 'maintenance_theme' => 'minnelli',)
* the closing parenthesis (# );)

I then put my site into offline mode and got the following error messages.

warning: array_keys() [function.array-keys]: The first argument should be an array in (path_removed)/public_html/includes/theme.maintenance.inc on line 217.
warning: Invalid argument supplied for foreach() in (path_removed)/public_html/includes/theme.maintenance.inc on line 217.

Any idea what I might be missing or doing wrong? Thanks for the support.

#1

Zarabadoo - July 1, 2009 - 17:04

I am not sure right offhand what would be going wrong here. I will have to look into this more.

#2

mattyoung - July 28, 2009 - 04:34

This looks like it cannot find any regions[] array. Why would it have problem like this?

ano1:

what does your .info file look like? Make sure you are using the correct syntax:

regions[left] = left sidebar

or just leave the regions[] declaration out of your .info file and inherit them from system.

#3

ano1 - August 7, 2009 - 19:01

Hi,

Sorry I just noticed your reply. Here is a copy of my .info file hope this helps:

; $Id: paint.info,v 1.2 2009/04/16 17:29:53 zarabadoo Exp $

; Descriptive information
name = burger
description = A sub-theme of canvas.
engine = phptemplate
base theme = canvas
version = 1.x-dev
core = 6.x

; Features
features[] = logo
features[] = name
features[] = slogan
features[] = mission
features[] = node_user_picture
features[] = comment_user_picture
features[] = search
features[] = favicon
features[] = primary_links
features[] = secondary_links

; Regions
regions[header] = Header
regions[menus] = Menus
regions[pre_content] = Content Above
regions[content] = Content
regions[post_content] = Content Below
regions[full_width_bottom] = Full-width Blocks
regions[horizontal_blocks] = Horizontal Blocks
regions[left] = Left Sidebar
regions[right] = Right Sidebar
regions[footer] = Footer

; Stylesheets
stylesheets[screen][] = css/screen-layout.css
stylesheets[screen][] = css/screen-header.css

 
 

Drupal is a registered trademark of Dries Buytaert.