Jump to:

1385 Posts in 493 Topics by 522 members


SilverStripe Forums » Themes » Trouble to install new theme

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 464 Views
  • michael222
    Community Member
    1 Post

    Trouble to install new theme Link to this post


    Thanks for such a great free script for mobile phone

    I have upload and installed through the web browser the SilverStripe-cms-v3.1.2

    Working fine

    I have tried to change the theme to


    I followed the instructions

    1. After unzipping your theme download, put the contents of the zip file into your /themes directory in your silverstripe project.


    2. To get your theme up and running, you’ll need to change one line of code in the _config.php file. You’ll find the config file in: ./mysite/_config.php:

    This would be the code to add SSViewer::set_theme('woody')

    this is what i have there


    global $project;
    $project = 'mysite';

    global $databaseConfig;
    $databaseConfig = array(
       "type" => 'MySQLDatabase',
       "server" => 'localhost',
       "username" => 'xxxxxxxxxxxx',
       "password" => 'xxxxxxxxxxxxx',
       "database" => 'xxxxxxxxxxxx',
       "path" => '',

    // Set the site locale

    when i try to make any changes i get this error

    Parse error: syntax error, unexpected '(' in /home/usdaso/public_html/jim/mysite/_config.php on line 17

    Can you please advise on install or have I missed something

    Cheers in advance


  • Tim Snadden
    Community Member
    32 Posts

    Re: Trouble to install new theme Link to this post

    What you have there doesn't have any syntax errors that I can see. However, the error is pretty clear so maybe in the process of putting it into the forum and removing passwords it got changed somehow. In your post you didn't have a semi-colon at the end of the line. Try this:

    SSViewer::set_theme('woody'); // <-- note that it ends with a semi-colon

Page: 1
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.