Jump to:

23483 Posts in 18976 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Tutorial 2: Staffholder StaffPage problems

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: 828 Views
  • daniel.cm
    Avatar
    Community Member
    3 Posts

    Tutorial 2: Staffholder StaffPage problems Link to this post

    Hi I have been trying my hand at the tutorials and can't get beyond ss spiting the dummy when I try to rebuild the database.
    I added StaffHolder.php and StaffPage.php to the code folder and then attempted to rebuild the database.

    This is what I get from db/build?flush=1

    Building Database

    Creating database tables

    PageComment
    SiteTree
    Field SiteTree.ClassName: changed to enum('SiteTree','Page','GhostPage','StaffHolder','StaffPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','Page','GhostPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree')
    Field SiteTree_Live.ClassName: changed to enum('SiteTree','Page','GhostPage','StaffHolder','StaffPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','Page','GhostPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree')
    Field SiteTree_versions.ClassName: changed to enum('SiteTree','Page','GhostPage','StaffHolder','StaffPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','Page','GhostPage','ErrorPage','RedirectorPage','VirtualPage') character set utf8 collate utf8_general_ci default 'SiteTree')
    Email_BounceRecord
    QueuedEmail
    File
    Group
    LoginAttempt
    Member
    MemberPassword
    Permission
    Widget
    WidgetArea
    Page
    GhostPage

    Any help would be much appreciated.
    Daniel

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Tutorial 2: Staffholder StaffPage problems Link to this post

    Umm. That output looks fine.. It's just the output generated by the DB build script and shouldn't be mistaken for the actual site-output
    I don't really understand what the problem is. Did you create a StaffHolder and some StaffPages in the CMS? Maybe you should append ?flush=1 to the URL of these pages when you open them in the Browser. This will flush and re-render your templates.

  • daniel.cm
    Avatar
    Community Member
    3 Posts

    Re: Tutorial 2: Staffholder StaffPage problems Link to this post

    All I did was but the StaffHolder.php and StaffPage.php into the code folder.
    I tried it with the tutorial theme and the balance theme.
    When I navigate to the root of the site ie http://localhost/silverstripe after doing the database rebuild I get a blank page.
    I tried http://localhost/silverstripe/?flush=1 but still the same thing.
    Maybe a reinstall is in order.

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Tutorial 2: Staffholder StaffPage problems Link to this post

    I guess there's an Error in your code somewhere. You should look into your PHP Error log.

  • daniel.cm
    Avatar
    Community Member
    3 Posts

    Re: Tutorial 2: Staffholder StaffPage problems Link to this post

    Thanks - solved The problem was caused by unwanted special characters in the php file.
    My editor TextWrangler was not showing all the characters in the php doc- don't know why.

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