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
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
i had mine named something dumb, theme still installed. This was with 5.2
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
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
You at least need the following:
areas:
at least one.
You also at the very least need:
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.
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.
I'll implement this asap.
Thanks for the help.
Thanks for the help.
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.
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.
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
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
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....