I'm trying to create a custom layout following the tutorial here: http://drupal.org/node/495654

I'm getting some errors when trying to add content.

Here's the error message:

    * warning: theme_render_template(./sites/all/themes/rnp/home_layout/home-layout.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in d:\inetpub\rnp\beta\includes\theme.inc on line 1020.
    * warning: theme_render_template(./sites/all/themes/rnp/home_layout/home-layout.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in d:\inetpub\rnp\beta\includes\theme.inc on line 1020.
    * warning: theme_render_template(./sites/all/themes/rnp/home_layout/home-layout.tpl.php) [function.theme-render-template]: failed to open stream: No such file or directory in d:\inetpub\rnp\beta\includes\theme.inc on line 1020.
    * warning: theme_render_template() [function.include]: Failed opening './sites/all/themes/rnp/home_layout/home-layout.tpl.php' for inclusion (include_path='.;c:\php4\pear') in d:\inetpub\rnp\beta\includes\theme.inc on line 1020.

and here's the code in home_layout.inc:

function rnp_home_layout_panels_layouts() {
  $items['home_layout'] = array(
    'title' => t('Home Layout'),
    'icon' => 'home_layout.png',
    'theme' => 'home_layout',
    'css' => 'home_layout.css',
    'panels' => array(
      'top' => t('Top'),
    ),
  );

  return $items;
}

My files are in /sites/all/themes/rnp/home_layout.

Any help would be greatly appreciated.

Comments

rcharamella’s picture

Priority: Critical » Normal
Status: Active » Closed (fixed)
merlinofchaos’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

Support requests aren't critical.

Obviously the file ./sites/all/themes/rnp/home_layout/home-layout.tpl.php doesn't exist. Note that Drupal's templates use dashes and not underscores, so if you made home_layout.tpl.php that'll be a problem.

rcharamella’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Changing the Administrative theme to the same theme with the custom layout solved the problem.