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

Subtemplates


Reply


4 Posts   2480 Views

Avatar
Dave

Community Member, 3 Posts

16 February 2007 at 11:32am

Got as far as subtemplates on the 'building-a-basic-site.' Everything worked great up to that point. Created Layout subdirectory and two files in the directory as specified. Deleted HomePage.ss from the templates directory. Revised Page.ss as per the instructions. Now get errors. Any suggestions? Tips?

-- Dave

Avatar
Andy

230 Posts

16 February 2007 at 11:44am

Make sure you flush the cache by adding ?flush=1 to the end of the url. If that doesn't help, post the errors you're getting in here and we'll see what we can do :)

Avatar
Dave

Community Member, 3 Posts

16 February 2007 at 12:14pm

Thanks for the quick reply.

Errors:

FATAL ERROR: filemtime() [function.filemtime]: stat failed for C:/lighttpd/htdocs/mysite/templates/HomePage.ss
At line 129 in C:\lighttpd\htdocs\sapphire\core\SSViewer.php

filemtime(C:/lighttpd/htdocs/mysite/templates/HomePage.ss)
filemtime at line 129 of SSViewer.php

SSViewer->process(Object)
process at line 150 of Controller.php

Controller->defaultAction(index,Array)
defaultAction at line 122 of Controller.php

Controller->run(Array)
run at line 12 of ModelAsController.php

ModelAsController->run(Array)
run at line 48 of Director.php

Director->direct(/home/)
direct at line 90 of main.php

Avatar
Dave

Community Member, 3 Posts

16 February 2007 at 12:23pm

Ran ?flush=1 after every revision of the Page.ss and HomePage.ss files. Tried several (numerous) times to restart with the ?flush=1 switch. Shut down the browser (Firefox), restarted the browser, again ran with ?flush=1. Long pause; now it's working. Go figure. Looks like it's back to working again. Apologies for my lack of knowledge of SilverStripe. Just found it last night.

-- Dave