I am using Drupal 6.6. Contributed themes work, but any custom themes I try to create do not.

I have a xhtml page and css web template modified to Drupal. I used the simple Quick and Dirty - OSWD theme to Drupal to drupalize my site.

I can select the theme in Drupal without problem. However, when I bring up the page in a browser, it is completely blank. The source code it bring up is as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>

My site is located in sites/all/theme/ and it contains style.css and page.tpl.php.

Further, I purchased Pro Drupal Development: Second Edition book yesterday. I created the theme exactly like GrayScale in the book; same results. The page is rendered completely blank; same source code.

Just to test I download the aboutpeople theme. I untarred it in sites/all/themes/drupal-contrib directory. The theme loads without issue.

Permissions was first guess. However, both aboutpeople and my custom themes are owned by apache and have 775 permissions.

Comments

lukawanjohi’s picture

I have encountered the same issue i the last two days too, including the non-functional grayscale theme described in the pro drupal dev book. Someone please help, I am implementing a project on Drupal and the clock is ticking really fast!

Jeff Burnz’s picture

delete your page.tpl.php file, clear the theme registry and reload your theme, this way Drupal will pull the default page.tpl.php file from modules/system/ and you will see if the issue is with your page.tpl.php file. Technically speaking a theme only needs to contain a .info file so it will work just fine.

ssampier’s picture

Thanksgiving came up so I wasn't able to try this on our server at work. I did copy the theme to my Fantastico drupal version. The theme worked fine.

Now back to work, I reinstalled everything from scratch now I have other troubles. I will reply if it still does not work.