Jump to:

1379 Posts in 490 Topics by 520 members

Themes

SilverStripe Forums » Themes » Problem with installing a new theme

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 6182 Views
  • scorpio1979
    Avatar
    Community Member
    2 Posts

    Re: Problem with installing a new theme Link to this post

    Hi there,

    Im new to cms all together, I have installed the 2.3.7 version and downloaded the paddygreen theme to have a play round with.

    I have followed silverstripes instructions about going into the mysite/_config.php and changing SSViewer::set_theme('blackcandy'); to the following SSViewer::set_theme('paddygreen'); when i do this i get loads of issuse i use wamp at the moment and dont know if its me or if its that the paddygreen theme dont work on the 2.3.7 version [please look below and if you can help id appreciate it i can be contacted on james_carty@hotmail.co.uk

    [Warning] None of these templates can be found: Page.ss, ContentController.ss
    GET /silverstripe-v2.3.7/?stage=Stage

    Line 175 in C:\wamp\www\silverstripe-v2.3.7\sapphire\core\SSViewer.php
    Source

    166                $this->chosenTemplates['main'] = $this->chosenTemplates[$templateFolder];
    167                unset($this->chosenTemplates[$templateFolder]);
    168             }
    169          }
    170
    171          if(isset($_GET['debug_request'])) Debug::message("Final template selections made: " . var_export($this->chosenTemplates, true));
    172
    173       }
    174
    175       if(!$this->chosenTemplates) user_error("None of these templates can be found: ". implode(".ss, ", $templateList) . ".ss", E_USER_WARNING);
    176
    177       parent::__construct();
    178    }
    179    
    180    /**
    181     * Returns true if at least one of the listed templates exists

    Trace

    * None of these templates can be found: Page.ss, ContentController.ss
    Line 175 of SSViewer.php
    * SSViewer->__construct(Array)
    Line 305 of Controller.php
    * Controller->getViewer(index)
    Line 172 of Controller.php
    * Controller->handleAction(HTTPRequest)
    Line 129 of RequestHandler.php
    * RequestHandler->handleRequest(HTTPRequest)
    Line 119 of Controller.php
    * Controller->handleRequest(HTTPRequest)
    Line 29 of ModelAsController.php
    * ModelAsController->handleRequest(HTTPRequest)
    Line 44 of RootURLController.php
    * RootURLController->handleRequest(HTTPRequest)
    Line 280 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(/)
    Line 118 of main.php

    Regards

    James Carty

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Problem with installing a new theme Link to this post

    Welcome James to the forums. Have you followed the instructions listed in this forum and trying to refresh the cache by visiting yoursite.com?flush=1

  • scorpio1979
    Avatar
    Community Member
    2 Posts

    Re: Problem with installing a new theme Link to this post

    Hi willr

    I tried that last night and it wouldnt worked but thought id try it again and for some reason it works now but hey never mind these things are here to try us lol.

    Cheers ill look at some other stuff now on the website

  • javelin
    Avatar
    Community Member
    12 Posts

    Re: Problem with installing a new theme Link to this post

    I have the same problem with the Blog-module. (blog 0.3.0)

    The:

    276 public static function getTemplateContent($identifier) {
    277 return file_get_contents(SSViewer::getTemplateFile($identifier));

    I was wondering what, in the theme, sets of this bug? I'm using a custom theme by another firm and wouldn't really like to patch core files since I'm an external.

    Just wondering, they probably won't upgrade to 2.4 until mid-fall.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Problem with installing a new theme Link to this post

    I think this issue is called by including a file that doesn't exist - go through your theme and remove as much as you can and it should work. By removing / putting back code in the ss files you should be able to track down what lines causing the issue.

    6182 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.