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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

Blank output after editing Page.ss


Go to End


4 Posts   3044 Views

Avatar
localghost

Community Member, 2 Posts

22 March 2009 at 8:46am

Hello,

i edited my

themes/tutorial/templates/Page.ss

as described at

http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site#inserting_the_page_title

and after that the output (both Draft & Published) was blank. Even viewing it with a ?flush=1 attached to the url did not help. so i tried to undo the changes, but same result: blank page. Sorry, but these are my very first steps in SilverStripe and i do not even know wether my post occures in the correct place.

Thanks for help,
Lorenz

Avatar
ootersplace

Community Member, 16 Posts

24 March 2009 at 5:16am

Hi Lorenz,

It looks like you might have missed an end tag. Make sure every beginning tag is matched to an end tag (e.g., every opening "<div>" tag has to have a corresponding ending "</div>" tag).

If you can't find the problem, post the contents of your Page.ss file so others can take a look.

Karl.

Avatar
localghost

Community Member, 2 Posts

24 March 2009 at 6:28am

Edited: 24/03/2009 6:33am

Hi Karl (german?),

my Page.ss should be attached to this post, without the changei did, because as i said i undid that. And the change i did, did not touch any tags:i just had reclaced

 
by $Title.

At the moment i can not even reach the cms or the start page of silverstripe. all i get to see is a blank page. is there any way to get an error message out of it? if it helps: both the directories Includes and Layout are empty.

Thanks,
Lorenz

Avatar
ootersplace

Community Member, 16 Posts

24 March 2009 at 9:59am

I took a quick look at the file and everything seems to be fine with it, but I think the problem is bigger than that. Could you have accidentally deleted some files?

As long as you're talking about the folders under mysite (and not under the theme you're using), I think it's ok that your Includes and Layout folder are empty (since it will pick up the layout from the template).

Either way, that shouldn't affect your being able to log into the CMS. What's your setup? Are you trying SS on a local machine? Can you reinstall? (what happens if you go to http://yoursite.com/dev/build/?flush=1 ... do you see anything?

To view errors, go to http://yoursite.com/?isDev=1.

Hope some of that helps.

Karl.

P.S. No, I'm not German. I'm Canadian and my ancestry is Middle Eastern.