Hello, thanks for the nice theme.
Guys, when i try to use this theme as Base Theme for my custom theme i get these errors:

  • Notice: Undefined index: pre_header_first en include() (línea 5 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: pre_header_second en include() (línea 5 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: pre_header_third en include() (línea 5 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: header_top_left en include() (línea 47 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: header_top_right en include() (línea 47 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: navigation en include() (línea 135 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: banner en include() (línea 152 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: promoted en include() (línea 241 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: bottom_content en include() (línea 305 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: footer_first en include() (línea 328 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: footer_second en include() (línea 328 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: footer_third en include() (línea 328 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: footer_fourth en include() (línea 328 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\page.tpl.php).
  • Notice: Undefined index: header_top_left en bootstrap_business_preprocess_page() (línea 105 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).
  • Notice: Undefined index: header_top_right en bootstrap_business_preprocess_page() (línea 108 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).
  • Notice: Undefined index: header_top_left en bootstrap_business_preprocess_page() (línea 108 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).
  • Notice: Undefined index: pre_header_first en bootstrap_business_preprocess_page() (línea 116 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).
  • Notice: Undefined index: pre_header_second en bootstrap_business_preprocess_page() (línea 116 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).
  • Notice: Undefined index: pre_header_third en bootstrap_business_preprocess_page() (línea 116 de C:\VirtualServer\htdocs\ep\sites\all\themes\bootstrap-business\template.php).

Thanks if you can give me a way for use Bootstrap-Business as Base Theme.
See you!

Comments

pyxio’s picture

did you copy template.php to your new theme? if so, did you rename the functions to match that of your new theme's name? unless you have some need to override functions simply delete all of the functions from your new themes template.php file. cheers kevin

skech’s picture

Hi dvasquez,

acording to https://drupal.org/node/225125

Sub-themes do not inherit custom regions from a parent theme. So you should copy the region declarations from the parent theme's .info file into your subtheme's .info file. Be sure your sub-theme's page.tpl.php file matches the sub-theme's region settings.

Thanks
Soukri

gtsopour’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0
Assigned: Unassigned » skech
Category: Bug report » Support request
Issue tags: +Bootstrap Business, +Bootstrap framework
skech’s picture

Status: Active » Fixed
dvasquez’s picture

Hello guys. My business is only add CSS files. I'll not alter other TPL files. No regions, no templates... only modifying CSS. All the theme is good for me.

How can i do it?

pyxio’s picture

So why are you trying to create a sub theme? Just use the theme as it is and modify the css file. Cheers Kevin

gtsopour’s picture

Hello dvasquez,
Bootstrap Business theme comes already with a local.css file bootstrap-business/css/local.css. Just place your style overrides inside this file.

Thanks
George

dvasquez’s picture

Thanks George, i'd see this file, but my customer wanna see its name in the theme section.

But... From tomorrow... local.css is the file!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

IamOnStage’s picture

I too am having problems using as a sub theme?

Notice: Undefined index: bootstrap-business in drupal_theme_initialize() (line 98 of /public_html/client/ama/includes/theme.inc).
Notice: Trying to get property of non-object in phptemplate_init() (line 12 of /public_html/client/ama/themes/engines/phptemplate/phptemplate.engine).
Notice: Trying to get property of non-object in drupal_alter() (line 1080 of /public_html/client/ama/includes/module.inc).

I understand that we can just edit the local.css, but what about adding in custom .tpl files etc.

This needs to be able to work as a subtheme to avoid updating issues later!

IamOnStage’s picture

Status: Closed (fixed) » Active
heddn’s picture

Status: Active » Fixed

The solution as I found it is that this theme uses a dash (-) in its name. However, when building a sub-theme of it, that is converted to an underscore (_). So the base theme should be set accordingly.

name = myBootstrap Business
description = This is the mybootstrap subtheme.
project = mybootstrap_business
core = 7.x
base theme = bootstrap_business

stylesheets[all][] = css/local.css

regions[pre_header_first] = Pre Header First
regions[pre_header_second] = Pre Header Second
regions[pre_header_third] = Pre Header Third
...

A longer term fix would be to rename the project on d.o. to bootstrap_business.

heddn’s picture

dvasquez’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.