Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Help changing the theme

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1851 Views
  • acronum
    Avatar
    Community Member
    15 Posts

    Help changing the theme Link to this post

    Hi all, its me again...

    I tried to change the theme from blackcandy to plain, and i keep having an error message come up saying that "
    Fatal error: Class 'Director' not found in /home/.leif/acronum/youths-empowered.com/mysite/_config.php on line 19"

    This is once i activate the link" http://www.youths-empowered.com/mysite/_config.php "

    I really want to get this working, but i can't seem to overcome this error message...

    Any help would be great

    Many thanks,

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Help changing the theme Link to this post

    To change a theme all you need to do is open the _config.php file in the mysite directory in notepad and edit the line which goes SSViewer::set_theme() to the name of your theme

  • acronum
    Avatar
    Community Member
    15 Posts

    Re: Help changing the theme Link to this post

    thanks already have. did that yesterday with my mate.

    <?php

    global $project;
    $project = 'mysite';

    global $databaseConfig;
    $databaseConfig = array(
       "type" => "MySQLDatabase",
       "server" => "",
       "username" => "",
       "password" => "",
       "database" => "",
    );

    // Sites running on the following servers will be
    // run in development mode. See
    // http://doc.silverstripe.com/doku.php?id=devmode
    // for a description of what dev mode does.
    Director::set_dev_servers(array(
       'wwww.youths-empowered.com',
       '205.196.216.190',
    ));

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.com/cms-themes-and-skin
    SSViewer::set_theme('plain2');

    ?>

    Plain2 is the folder which the plain theme is located in. once i run mysite/_config; i get the error message above.

    Thanks

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Help changing the theme Link to this post

    you dont need to 'run' mysite/config or anything all you need to do is edit that file and refresh the system by going http://www.yoursite.com?flush=1

  • acronum
    Avatar
    Community Member
    15 Posts

    Re: Help changing the theme Link to this post

    ok, thanks. that must be where me and my mate messed up.

    Thank you

  • acronum
    Avatar
    Community Member
    15 Posts

    Re: Help changing the theme Link to this post

    now i get this message:

    Warning: $project isn't set in /home/.leif/acronum/youths-empowered.com/sapphire/core/ManifestBuilder.php on line 154

    Fatal error: DB::connect: Not passed a valid database config in /home/.leif/acronum/youths-empowered.com/sapphire/core/model/DB.php on line 53

    I am quite new to this.

    Cheers,

  • spenniec
    Avatar
    Community Member
    37 Posts

    Re: Help changing the theme Link to this post

    Hi,
    Check that you still have a valid mysite/_config.php file and that it contains the relevant entries and text as per one of you previous posts.

  • acronum
    Avatar
    Community Member
    15 Posts

    Re: Help changing the theme Link to this post

    i managed to change the theme,

    www.youths-empowered.com

    thanks anyway,

    1851 Views
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.