My C5 theme won't install - no error message

Permalink
Hi,

this is my fifth or so site done with C5. My templates usually go pretty smoothly but this time I have a problem. The theme has:


In the root folder:
description.txt
main.css
typography.css
thumbnail.png
view.php
default.php

/elements
header.php
footer php

I usually (as here) start off with a simple theme just to check everything is running ok. The thumbnail and description appear under 'Themes available to install' along with the install button

When I click the 'install' button, the screen refreshes as if the theme is installing, but when it refreshes, nothing has changed. The thumbnail and description are still in the same place with the option to install. There is no error message. As you can imagine, this is driving me nuts!

Here is the code for the pages in question:

default.php =============================
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>
<?php
      // we use the "is edit mode" check because, in edit mode, the bottom of the area overlaps the item below it, because
      // we're using absolute positioning. So in edit mode we add a bit of space so everything looks nice.
      if (!$c->isEditMode()) { ?>
         <div class="spacer"></div>
      <?php  } ?>
<div id="wrapper">
<div id="header"><img src="<?php echo DIR_REL?>/blah_blah_blah_logo.png" border="0" /><img src="<?php echo DIR_REL?>/blah_blah_blah_.png" border="0" /></div>
<div id="horiznav">
         <?php
         $a = new Area('Header Nav');
         $a->display($c);


header.php =============================
<?php  defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Courtyard Irish Holiday Cottages</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="shortcut icon" href="favicon.ico" type="image/courtyardcottages.ico" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
<?php  Loader::element('header_required'); ?>
</head>
<body>


footer.php =============================
<div id="footer">(c) Footer info 2010 copyright blah blah blah blah blah blah etc.</div>
<?php  defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<?php  Loader::element('footer_required'); ?>
</body>
</html>


Can't see any reason that this should not work (however, that wouldn't be the first time!). Please see if you can see the error of my ways! I have installed another template on this server just to check that the installation is fine and it seems to work perfectly,

cheers,

Mike

mikeb
 
Mnkras replied on at Permalink Reply
Mnkras
looks good here...
tallacman replied on at Permalink Reply
tallacman
Is this a self built theme in the themes folder or a downloaded theme with the theme in the packages folder?
mikeb replied on at Permalink Reply
mikeb
I thought it looked alright too! It's a theme which my wife designed (she's a graphic designer) and I did an html template from her design - so it's completely home-grown. What I've done in the meantime is take the greensalad theme, install it with a different name under the root themes folder and now I'm sort of unpicking that into my template and that seems to be working fine. I'm under a bit of pressure to finish this job so I had to just find some work-around. V strange why it wouldn't work though! tallacman - it was done via the root themes folder not a package install.
mikeb replied on at Permalink Reply
mikeb
Sorry, where are my manners? Should have said thanks a million for having a look at the code. At least it looks like it's not my dodgy coding that's wrong!!
pvernaglia replied on at Permalink Best Answer Reply
pvernaglia
Are you installed in a sub directory? I had a problem if I was installed in a subdirectory /mysite and the theme was called mysite it would not install, If I renamed the theme my_site it worked.
mikeb replied on at Permalink Reply
mikeb
I was in exactly that situaion pvernaglia! The site name and theme folder had the same name. The version which is working now has a name different from the subdirectory. Looks like you might be on to something there. Anyone from C5 care to comment on that?

cheers

Mike
Mnkras replied on at Permalink Reply
Mnkras
concrete5 sometimes had trouble with paths that are exactly the same as the base url or dir rel, its just how c5's file detection works,
mikeb replied on at Permalink Reply
mikeb
Yes Mnkras. Seems like one of those things you just need to know and it's not a big deal once you know about it. At least there's a great knowledgeable community out there to help with this stuff. Someday I might actually be able to help someone out myself and not just *ask* the questions!

thanks for the help guys
russellfeeed replied on at Permalink Reply
russellfeeed
Just had the same issue... My C5 install was in /xyz and my theme folder was /xyz/themes/xyz. I renamed my theme folder from 'xyz' to 'xyz shop' and that worked.

Cheers
Rusell