3214 Posts in 848 Topics by 810 members
| Go to End | Next > | |
| Author | Topic: | 6152 Views |
-
Generated with the default ContentController.ss template

18 June 2010 at 9:33pm
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!
-
Re: Generated with the default ContentController.ss template

18 June 2010 at 11:16pm Last edited: 18 June 2010 11:16pm
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.
-
Re: Generated with the default ContentController.ss template

19 June 2010 at 4:38am
The ?flush=all dosn't solve the problem, but the creation of the 'silverstripe-cache' do it.
Thanks a lot! -
Re: Generated with the default ContentController.ss template

21 July 2010 at 9:06pm Last edited: 21 July 2010 9:06pm
Hey,
I've had the same problem but neither solution has worked. Any ideas?
-
Re: Generated with the default ContentController.ss template

21 July 2010 at 9:59pm
That's strange.
Have you tried to create the "silverstripe-cache" folder and next a "flush=all". This always work for me. -
Re: Generated with the default ContentController.ss template

22 July 2010 at 12:40am
yeah done that. no dice
-
Re: Generated with the default ContentController.ss template

22 July 2010 at 7:09am
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?
-
Re: Generated with the default ContentController.ss template

22 July 2010 at 9:45am
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!!
| 6152 Views | ||
| Go to Top | Next > |




