Problem with custom themes

Permalink
Hi all,
I followed the video tutorial to create a custom theme earlier today. After uploading the files and visiting the themes page I get a very ugly error:

Fatal error: Call to a member function getThemeThumbnail() on a non-object in /home/maurice/public_html/computech/concrete/single_pages/dashboard/pages/themes/view.php on line 63

The uploaded theme is not visible and the whole page is messed up, as if the css and layout didn't load completely.

Can anyone suggest a solution please.

Thank you
Maurice

 
Remo replied on at Permalink Reply
Remo
can you upload your theme?

it easier to check it that way..

does your theme include a thumbnail? not sure what happens if you don't have one, I always included one in my themes....
ScottC replied on at Permalink Reply
ScottC
i had mine named something dumb, theme still installed. This was with 5.2
mhason replied on at Permalink Reply 1 Attachment
I made a thumbnail for the theme and got the error. I tried to delete the thumbnail and still get the same error.

This is weird because I didn't even start working on the theme, just renamed my index.html file to index.php and uploaded to the server.

Maybe I should point out that I tried to upload the same theme to a Win2003 server with php installed on it and it worked fine.

Thanks
ScottC replied on at Permalink Reply
ScottC
You at least need the following:

areas:
<?
         $ac = new Area('contentFull');  //name whatever you want, maybe Content?
         $ac->display($c);
         ?>

at least one.

You also at the very least need:

<style type="text/css">@import "<?=$this->getThemePath()?>/main.css";</style>
<style type="text/css">@import "<?=$this->getThemePath()?>/typography.css";</style>
<? Loader::element('header_required'); ?>


To even use concrete5 in a meaningful way.

Also need a default.php, i believe that is a requirement, I always have default and index.php in the theme the exact same, not sure if it matters.
mhason replied on at Permalink Reply
I'll implement this asap.

Thanks for the help.
ScottC replied on at Permalink Reply
ScottC
get any standard add-on theme from the marketplace or c5mix.com and check out how they work there, all that stuff above (well css and header required needs to be in the <head> of your theme.

In the default template they are $this->inc('elements/something') since they want to define the head once and use it 3 or 4 times in the template. This is where some 3rd party themes might be easier to digest, not sure they would take the time to do that abstraction.
Dyark replied on at Permalink Reply
Dyark
I uploaded and unzipped in the files in the public_html/themes folder.

I got this error when I went to my themes page to install it.

Fatal error: Call to a member function getThemeThumbnail() on a non-object in /home/mysitename/public_html/concrete/single_pages/dashboard/pages/themes/view.php on line 63

Line 63 is this:
<td><?php echo $t->getThemeThumbnail()?></td>

What did I do wrong?

This is only a problem with this template