I just installed a Fusion subtheme in a new Drupal7 site.

On ALL my site's /admin pages, but NOT on Visitor's (not-logged-in) pages, I see these dialog boxes:

Notice: Undefined variable: main_group_width in include() (line 38 of /srv/dev/sites/dev.dt.loc/themes/dt_d7_fusion/templates/pages/page.tpl.php).

Looking at my version of that file it's just:

34  <div id="main-wrapper" class="main-wrapper full-width clearfix" >
35   <div id="main" class="main region <?php print $grid_width; ?>" >
36    <div id="main-inner" class="main-inner inner clearfix" >
37     <?php print render($page['sidebar_first']); ?>
38      <div id="main-group" class="main-group region nested <?php print $main_group_width; ?>" >
39       <div id="main-group-inner" class="main-group-inner inner">
40        <?php print render($page['preface_bottom']); ?>
41         <div id="main-content" class="main-content region nested">
42          <div id="main-content-inner" class="main-content-inner inner">

Google turns up the error in two other Fusion-related posts:

http://drupal.org/node/931544
http://drupal.org/node/1121678

But I don't understand yet what to do about it.

Comments

esmerel’s picture

Status: Active » Postponed (maintainer needs more info)

Is this happening with the Fusion core theme also? Which subtheme are you using?

dtwork’s picture

Status: Postponed (maintainer needs more info) » Active

Core is in involved, of course, as the parent theme.

I see this issue in each of the main themes that use $main_group_width,

cd sites/all/themes
grep main_group_width `find . | grep page.tpl`
 ./fusion/fusion_core/page.tpl.php:            <div id="main-group" class="main-group region nested <?php print $main_group_width; ?>">
 ./acquia_marina/page.tpl.php:            <div id="main-group" class="main-group region nested <?php print $main_group_width; ?>">
 ./acquia_prosper/page.tpl.php:            <div id="main-group" class="main-group region nested <?php print $main_group_width; ?>">

and any subthemes based on them.

This issue's reported on my own custom subtheme.

aquariumtap’s picture

Hi dtwork, could you post your subtheme's .info file?

dtwork’s picture

@ aquariumtap,

cat dtwork_subtheme.info

name = dtwork_subtheme
description = Fusion Subtheme
base theme = fusion_core
core = 7.x
engine = phptemplate

stylesheets[all][] = css/dtwork_subtheme-style.css
scripts[] = js/local.js

regions[sidebar_first] = Sidebar first
regions[sidebar_second] = Sidebar second
regions[header_top] = Header top
regions[header] = Header
regions[main_menu] = Main menu

regions[preface_top] = Preface top
regions[preface_bottom] = Preface bottom
regions[content] = Content
regions[postscript_top] = Postscript top
regions[postscript_bottom] = Postscript bottom
regions[footer] = Footer
regions[node_top] = Node top
regions[node_bottom] = Node bottom
regions[help] = Help
regions[page_top] = Page top
regions[page_bottom] = Page bottom

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

settings[theme_grid] = grid16-960
settings[theme_grid_options][] = grid16-960
settings[theme_grid_options][] = grid16-fluid
settings[fluid_grid_width] = fluid-100
settings[sidebar_layout] = sidebars-split
settings[sidebar_first_width] = 2
settings[sidebar_second_width] = 2
settings[theme_font] = none
settings[theme_font_size] = font-size-12
settings[breadcrumb_display] = 1
settings[search_snippet] = 1
settings[search_info_type] = 1
settings[search_info_user] = 1
settings[search_info_date] = 1
settings[search_info_comment] = 1
settings[search_info_upload] = 1
settings[grid_mask] = 0
settings[grid_nested_regions][] = sidebar_first
settings[grid_nested_regions][] = sidebar_second
settings[grid_nested_regions][] = header
settings[grid_nested_regions][] = content
settings[grid_nested_regions][] = help
settings[grid_adjusted_regions][help][] = sidebar_first
settings[grid_adjusted_regions][help][] = sidebar_second
settings[grid_adjusted_regions][content][] = sidebar_first
settings[grid_adjusted_regions][content][] = sidebar_second
settings[grid_adjusted_groups][content_group][] = sidebar_first
settings[grid_adjusted_groups][content_group][] = sidebar_second
settings[grid_adjusted_regions_fluid][sidebar_second][] = sidebar_first
settings[grid_adjusted_regions_fluid][content][] = sidebar_first
settings[grid_adjusted_regions_fluid][content][] = sidebar_second
settings[grid_adjusted_groups_fluid][content_group][] = sidebar_second
skinr[api] = 2
skinr[directory] = skins
aquariumtap’s picture

hi dtwork,

I think this is missing. You can insert it anywhere.

; Nested group width adjustments: adjacent regions to subtract for correct group width
settings[grid_adjusted_groups][main_group][] = sidebar_first
esmerel’s picture

Status: Active » Fixed
aquariumtap’s picture

Status: Fixed » Closed (fixed)
lesleyb’s picture

Just a note to say I had this error start occurring when creating a sub-theme off Fusion.

I used the same fix and it worked (™)