Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Pages not creating

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: 747 Views
  • erwanpia
    Avatar
    Community Member
    63 Posts

    Pages not creating Link to this post

    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 ?

  • erwanpia
    Avatar
    Community Member
    63 Posts

    Re: Pages not creating Link to this post

    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!!!

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