Friday, 18 June 2010

WordPress Broken Theme : Template is missing

I came across an interesting bug on a Wordpress development project I was working on this week. The issue was that the Wordpress Theme was reported as a Broken Theme because the "Template is missing" on the Appearances->Themes admin page.



In most cases the site was performing as expected using the allegedly broken theme, however the custom template selection was no longer available on the Pages admin page. (This is where I first spotted there was a problem and then discovered the Appearances->Themes admin page.)

After poking about for a bit, I traced the problem to a rather innocuous looking line the designer had added to the theme's style.css file.

/* UNIQUE CATEGORY TEMPLATE: VIDEO*/

It's just the "TEMPLATE:" portion that caused the style.css parser to fail. This line works just fine:

/* UNIQUE CATEGORY TEMPLATE : VIDEO*/

I doubt this error comes up often, but it took a few minutes to track down the problem so I thought I'd post something here to hopefully save somebody time in the future.

8 comments:

  1. Thanks for your informative article. Your blog is loaded with awesome information. Please include RSS field shat that we can receive your latest post direct to my inbox. Wordpress Course in Chennai

    ReplyDelete
  2. You have finished a surprising job with you website. wordpress themes

    ReplyDelete
  3. If you are looking for good web Development Company that can help you to achieve your goal then you need HIP. hire wordpress developer

    ReplyDelete
  4. Thanks for your informative article. Your blog is loaded with awesome information.
    qtp training in chennai

    ReplyDelete
  5. Great post. I like your post, Thanks for sharing.
    ios training in chennai

    ReplyDelete