• Theme works okay with the set up I have using MAMP on my laptop, but when I went to put it on the actual server it says:
    Broken Themes
    Smart Spaces || Template is missing.

    The meta info in the style sheet is as follows.

    /*
    Theme Name: Smart Spaces
    Theme URI: http://xxxxxx.xxx
    Description: The Description
    Version: 1.0
    Author: MMP Design
    Author URI: http://xxxxx.xxx
    */

    -note- URI are filled in with the proper relevant URI
    So what I understand from the codex is that It is missing a line that says
    Template: directoryOfTemplate
    But I this theme was written from scratch and doesnt rely on any other themes so I am supposed to leave that line out.

    Both the web server and local server are running wordpress 2.8.6

    Guess my questions would be what am I doing wrong? Is there something I am missing that will make wordpress stop viewing my theme as a child theme.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Looks like your theme is missing a template file. A standalone theme normally includes:

    style.css
    index.php
    functions.php
    header.php
    sidebar.php
    footer.php
    comments.php
    single.php

    but you could (just about) get away with only having the first 3 files.

    Thread Starter MMPDesign

    (@mmpdesign)

    Thanks Esmi
    It is a stand alone theme and has all those files (excluding comments.php because comments are not needed for the site).

    Looks like your theme is missing a template file.

    What do you mean by the theme is missing a template file?

    Look at the error message:

    Broken Themes
    Smart Spaces || Template is missing.

    Thread Starter MMPDesign

    (@mmpdesign)

    Right, but that is in reference to a parent template which would be defined by Template: Defult if for example I wanted to use the Defult theme as a template.

    But in my case my theme is a stand alone theme built from scratch and has all the files you have stated (sans comments.php), It also has what I believe is the correct meta data at the top of the style.css file (which was stated in the original post)

    So that error that says Template is missing shouldnt be there.

    Also this theme works perfectly fine on my local set up, just not the webserver, Both of which are using the same version of wordpress.

    Right, but that is in reference to a parent template

    I don’t think it is…

    Thread Starter MMPDesign

    (@mmpdesign)

    What would it be in reference to then?

    Not sure but I have never seen a standalone theme being treated as a broken child theme before and I’m currently switching back & forth between child and standalone themes on my dev server a lot. Can you post a list of the files in your theme?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Template is missing. But theme isnt a Child theme’ is closed to new replies.