Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » theme problem

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: 1736 Views
  • AndyC
    Avatar
    Community Member
    3 Posts

    theme problem Link to this post

    Hi,

    I've installed a clean build of Silverstripe 2.1.1 and i like what i see, but i want to try changing the these to paddygreen.
    I've uploaded the theme into /themes/paddygreen

    I then changed the setting SSViewer::set_theme('paddygreen'); in /mysite/_config.php

    But when i restart the webbrowser, inc the ?flush=1 parameter but i get a completely blank page. i then chance the setting back to blackcandy and it works fine.

    I cannot see whats wrong.....help!

    Besides that, i love the way the CMS works so far, and can see what i want to do simply and quickly. Thankyou!

  • DaveP
    Avatar
    Community Member
    48 Posts

    Re: theme problem Link to this post

    Hi Andy,

    I too did exactly what you described. I suspect it is a cache problem ( that seems to be a not too uncommon theme here - pardon the pun ! ).

    I did not experience a blank screen as you describe, but I just found sometimes I had to be patient, and eventually the new theme came good.

    Also on one or two occasions I found even though paddygreen was the default theme and was mainly working OK, it sometimes reverted back to blackcandy, but then I just refreshed the browser and back came the paddygreen.

    cheers, Dave Porter

  • AndyC
    Avatar
    Community Member
    3 Posts

    Re: theme problem Link to this post

    Hmm, most strange,

    At least i know it's not just me being dense.

    I'll play some more and try waiting a short while bewteen refreshes etc and see what happens.

    Cheers Dave for the swift reply.

    Rgds Andy

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: theme problem Link to this post

    But when i restart the webbrowser, inc the ?flush=1 parameter but i get a completely blank page.

    This may be an error. If you open up mysite/_config.php and make sure you have Director::set_environment_type("dev"); then try changing the theme again it might come up with a error rather then a blank page.

  • AndyC
    Avatar
    Community Member
    3 Posts

    Re: theme problem Link to this post

    thanks for the pointer willr, I've manged to crack what the problem was last night. for some reason when I copied the files into /themes not all the files copied. I have no idea what made made me check the actual files but i did. I recopied and all is well.

    Cheers for your help guys.

    1736 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.