Jump to:

3434 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Generated with the default ContentController.ss template

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

Page: 1 2 3
Go to End
Author Topic: 7400 Views
  • mirkosassetti
    Avatar
    Community Member
    20 Posts

    Generated with the default ContentController.ss template Link to this post

    This is the message i receive when loading a new page type in 2.4.
    More details:
    i have a published site made with silverstripe 2.4 that works fine. This site was migrated from a developing server some weeks ago.
    Now i create a new page type, Home, extended by Page, for customizing the Home page with an image.
    dev/build ok, changed page type in behavior ok, add an image ok, i go to the home page and i see it with my new image. Well.
    Some hours later the customer say me that the home page is blank with only the contents and the "Generated with the default ContentController.ss template" message at the end.
    I go to the home page and verify the problem.
    I remember, i don't do the ?flush=1 on the page!
    I do the flush and i see the correct page, but when i remove the ?flush=1 from URL i'll see the blank page again!
    Tried to empty the browser cache and tried with various browsers.
    What happen?
    It seems that can't write the cache or something similar.
    For now i revert back the page type to Page in behavior and all works fine.
    Any idea?

    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    Strange, perhaps try a ?flush=all rather than a ?flush=1. Other thing you can do is make a 'silverstripe-cache' folder in your site root and make sure you can read / write to that new folder.

  • mirkosassetti
    Avatar
    Community Member
    20 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    The ?flush=all dosn't solve the problem, but the creation of the 'silverstripe-cache' do it.
    Thanks a lot!

  • te_chris
    Avatar
    Community Member
    24 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    Hey,

    I've had the same problem but neither solution has worked. Any ideas?

  • mirkosassetti
    Avatar
    Community Member
    20 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    That's strange.
    Have you tried to create the "silverstripe-cache" folder and next a "flush=all". This always work for me.

  • te_chris
    Avatar
    Community Member
    24 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    yeah done that. no dice

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    Maybe stupid to mention, but I had this message when I forgot to add a correct Controller class with the extended Page class.

    You do have class HomePage_Controller extends Page_Controller{} in your HomePage extends Page class?

  • te_chris
    Avatar
    Community Member
    24 Posts

    Re: Generated with the default ContentController.ss template Link to this post

    argh. yeah of course. that was it. I refactored a lot of my models and thus had to change some page types and messed up the controller. Thanks!!

    7400 Views
Page: 1 2 3
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.