Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Subtemplates

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

    Subtemplates Link to this post

    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

  • Andy
    Avatar
    230 Posts

    Re: Subtemplates Link to this post

    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

  • Dave
    Avatar
    Community Member
    3 Posts

    Re: Subtemplates Link to this post

    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

  • Dave
    Avatar
    Community Member
    3 Posts

    Re: Subtemplates Link to this post

    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

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