Related to http://drupal.org/node/91335, there are issues with renaming the base /zen theme to /zen-theme that crop up. For instance, when copying the SUBTHEME folder and making the changes outlined at http://drupal.org/node/201423, you get the following errors:

    * warning: main(.//template.php) [function.main]: failed to open stream: No such file or directory in /home/example.com/public_html/sites/all/themes/zen-theme/zen_foo/template.php on line 40.
    * warning: main() [function.include]: Failed opening './/template.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/example.com/public_html/sites/all/themes/zen-theme/zen_foo/template.php on line 40.

These two errors can be fixed by changing that line to the following, but that seems sub-optimal, and raises the bar yet another notch for new developers and themers.

include_once './'. drupal_get_path('theme', 'zen-theme') .'/template.php';

At the very least, that should be added to http://drupal.org/node/201423 to help people with this error.

Additionally, I noticed the following in /zen/template-subtheme.php, and am not sure if it will cause problems yet. (I'm still learning my way through Zen right now). If it does cause problems, then a lot of people are going to be frustrated, even if we document the work-around. It's already difficult enough to create a new sub-theme.

function path_to_subtheme() {
  $base_theme = 'zen';

If changing the theme folder to Zen solves these problems, I think it would behoove the community to do this, as I suspect a lot of new developers will run against this problem with their hosts.

Thanks,
Aaron Winborn

Comments

aaron’s picture

Ok, just played with it some more, and if you change the /zen folder to /Zen, everything works, on a host that has the problems alluded to in http://drupal.org/node/91335. That also fixes the errors due to the drupal_get_path, even when that line is unchanged.

I think it wouldn't hurt anyone, except possibly CVS users (who can hopefully figure things out), to change the repository folder to /Zen. I'm going to reopen that issue for more discussion about this, as I think it would be the least intrusive solution, that wouldn't require extra documentation and frustration for new themers.

Aaron Winborn

JohnAlbin’s picture

Status: Active » Closed (duplicate)