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.

Archive /

Our old forums are still available as a read-only archive.

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

Pages not creating


Go to End


2 Posts   1051 Views

Avatar
erwanpia

Community Member, 63 Posts

1 October 2008 at 12:34am

Hi, I have a strange bug on a 2.2 silverstripe install

the bug occurs on one server and cannot be replicated when I recreated the database...

it is the following : pages are not creating when I click OK on the admin

the interface just ignores my click... How can I sort that out ?

Avatar
erwanpia

Community Member, 63 Posts

2 October 2008 at 8:13am

Hi, I find that removing some code I had added to my Page.php Page_Controller init function fixes the page creation error

I was trying to get the page to display the "fr" meta language in headers, using session :

class Page_Controller extends ContentController {
	function init() {
		parent::init();
		
		Requirements::themedCSS("layout");
		Requirements::themedCSS("typography");
		Requirements::themedCSS("form");
		Session::set('currentLang', 'fr');
	}
}

I have two questions for core developers
1. How can I safely set up my meta language for display ?
2. why does the session currentLang value affect page creation action while not affecting page duplication ?

tough!!!