Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Error while creating 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: 1623 Views
  • Mayuri
    Avatar
    Community Member
    19 Posts

    Error while creating theme Link to this post

    Hi all,

    I had tired to create a new theme in C:\wamp\www\mimomax\themes folder and done changes like; SSViewer::set_theme('mythemename'); in C:\wamp\www\mimomax\tutorial\_config.php

    when i went to published site & done ?flush=1 it come up with error like;

    FATAL ERROR: None of these templates can be found: SiteTree.ss, DataObject.ss
    At line 67 in C:\wamp\www\mimomax\sapphire\core\SSViewer.php

    Can anyone suggest me what can i do to solve this error??????

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Error while creating theme Link to this post

    might be a silly question but have you created the correct files in your theme/templates/ like Page.ss etc

  • Mayuri
    Avatar
    Community Member
    19 Posts

    Re: Error while creating theme Link to this post

    thank you for advice i had created file page.ss for theme.
    The actual problem was with the database, i got it solved

  • eldardavid
    Avatar
    Community Member
    1 Post

    Re: Error while creating theme Link to this post

    hi Mayuri, I have the same error, can you tell me how do you solve this error?

    thanks

  • Mayuri
    Avatar
    Community Member
    19 Posts

    Re: Error while creating theme Link to this post

    Hi eldardavid,

    At that my database was pointing to another files i had downloaded silverstripe 2 times in on my server and both were pointing to only one database while i had made changes of theme in the second database.

    After changing my database address i got my problem solved.

    One more thing to notice that after that i had not used
    SSViewer::set_theme('mythemename');
    in my _config.php file & it runs well as per my requirements.

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