Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » newbie: tutorial 1 issues with creating new page type

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 805 Views
  • darrcass
    Avatar
    Community Member
    3 Posts

    newbie: tutorial 1 issues with creating new page type Link to this post

    When I installed SS, I wasn't sure if it was working at first because I got a page with no content except for messages from xdebug that ereg_replace is deprecated and a notice that $_SESSION was undefined. However, it did end up working, so I started with tutorial 1.

    Everything was going along just fine until I got to the section about creating a new page type. I saved HomePage.php to mysite/code and then went to dev/build?flush=1 and the same thing I described above happened: identical notices about ereg_replace and $_SESSION and nothing else.

    I figured no problem, but when I tried to change my page type for my home page to the new page type, it was unavailable, so now I am stopped cold. Obviously if I can't resolve this I can't learn, let alone use SS, although I would very much like to.

    Also, I got these annoying notices when I was building the sub-menus for the about page. I would have to flush from the home page in order to proceed.

    SS 2.3.2
    OSX 10.5.8
    PHP entropy 5.3.0 w/xdebug 2.0.5
    MySql 5.1.36

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: newbie: tutorial 1 issues with creating new page type Link to this post

    Try the new SilverStripe 2.3.3. PHP 5.3 has deprecated a couple of the functions which we use in SS so we hide these notices in 2.3.3 (until we rewrite the effected functionality). The notice about $_SESSION I am not so sure about.

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