Probs with installing a theme

Permalink 1 user found helpful
Hello,

I just did my first theme for concrete5. Its ultra simple and i have followed the guidelines.

It appears in the theme section, but when pressing install nothing happens. No error or no completion. It just keeps "ready to be installed".

Can you help me?

s0mmer
 
bcarone replied on at Permalink Reply
bcarone
Did you make the theme as a package or just a theme?

Check your ' " " ''s and all that as well.

Will like to see the theme once your done.

Cheers
bryanlewis replied on at Permalink Reply
bryanlewis
There is something wrong with your controller.php file. You might want to double check or compare it to the default plain yogurt controller.php file.
s0mmer replied on at Permalink Reply
s0mmer
Its made like just a theme. Not a package. I therefore havent made any controller file or modified one.

Is this is mistake?
bryanlewis replied on at Permalink Reply
bryanlewis
what directory are you putting the theme in? You have to have a default.php file I believe too you might want to Double check that as well.
s0mmer replied on at Permalink Reply
s0mmer
Im putting the theme into the /themes folder.. NOT the /concrete/themes folder. I have a default.php as the only page type.
bryanlewis replied on at Permalink Reply
bryanlewis
Copy your default.php and label it view.php and repeat this process labeling a right_sidebar.php and a left_sidebar.php... see if that does anything.
bcarone replied on at Permalink Reply
bcarone
You will also need to copy a view.php as well. Would be good if you had the left/right php files as well as a standard of course. But you definately need the view.php.
bryanlewis replied on at Permalink Reply
bryanlewis
Also call this in your header.

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
s0mmer replied on at Permalink Reply
s0mmer
Alright i now have the following files:

default.php
description.php
elements folder
images folder
left_sidebar.php
right_sidebar.php
view.php

And i also defined as u're suggestion in all my files.

Still cant install..
s0mmer replied on at Permalink Reply
s0mmer
description.txt that is :)
bryanlewis replied on at Permalink Reply
bryanlewis
Damn man... I have an Idea. My be a bit redundant but try this...


Take the plain yogurt theme duplicate it and swap all the code for your code... make sure to keep the elements directory and use the header.php and footer.php file
bryanlewis replied on at Permalink Reply
bryanlewis
that was going to be my last guess haha. I'm glad you got it worked out! :)
s0mmer replied on at Permalink Reply
s0mmer
I havent got it worked out.. :( I really dont understand it.. I would prefer not having to duplicate an already made theme.

I've googled around and i cant seem to find anymore who have had the same problem as I. Something i really dont understand either.
bcarone replied on at Permalink Reply
bcarone
You can also try this. See attached OOPs Try this instead
bryanlewis replied on at Permalink Reply
bryanlewis
eh I don't know what else the problem would be. I would try the duplication thing. Or at least look through Plain Yogurt to see what your theme is missing from it.
elyon replied on at Permalink Reply
elyon
To my knowledge, your theme needs:

- To be in its own directory (/themes/mytheme)
- To have a description.txt file
- To have a default.php file (which could be nothing other than "Hello World" to try it out)


Files you should consider using also include:

- A view.php file for single pages
- Files for full, left_sidebar and right_sidebar
- A separate header or footer file, so that all your page types can share common elements
- At least one CSS or JS file
s0mmer replied on at Permalink Reply
s0mmer
- Yes.. : it is in /themes/hummus
- Yes, at the themes page it says the name and description correctly
- Yes default.php containing:

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
Hello world


Still nothing happens when pressing install theme. And it is possible to install other themes. AND i also tried deleting the cache..

wtf.. :S
bcarone replied on at Permalink Reply 1 Attachment
bcarone
Lets try this again.

See attached
Veronikan replied on at Permalink Reply
Veronikan
I'm having the same problem, and install of a new theme worked just fine two days ago. I can't seem to fix it no matter what I do.
Veronikan replied on at Permalink Reply
Veronikan
OK, here's how I fixed it, and this makes no sense, but I tested after each try and this was the last. I simply altered the theme file name (the one of the containing folder). I took it from 5 characters to 7. For some reason that did it.

?
hbartlett replied on at Permalink Reply
hbartlett
OK, I just had the exact same problem. I had a C5 site on another server, and there were some issues with it and urls and what not.

So, I have this other server available. I did a fresh install of C5 5.4.0.5 , uploaded the theme from the other site, and could not install it.

So I took the suggestion of renaming the folder and it worked. Why I have no idea.

FWIW, the reason I started this exercise was because I'm under the impression that some of the weirdness on the old site is because it was started with an older version and had a couple of upgrades along the way. So, like Windows, I'm thinking a fresh install will work better... I've done fresh 5.4.0.5. installs that had no problems whatsoever on the same servers.
consiglieri replied on at Permalink Reply
Wtf!? Ooyeah, adding a couple of characters will do the work. Didn't see that coming. Thanks!