Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

Error while creating theme


Reply


5 Posts   1686 Views

Avatar
Mayuri

Community Member, 19 Posts

1 May 2008 at 3:00pm

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??????

Avatar
Willr

Forum Moderator, 5513 Posts

1 May 2008 at 7:43pm

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

Avatar
Mayuri

Community Member, 19 Posts

2 May 2008 at 2:02pm

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

Avatar
eldardavid

Community Member, 1 Post

14 June 2008 at 3:59am

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

thanks

Avatar
Mayuri

Community Member, 19 Posts

16 June 2008 at 9:03am

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.