Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » Can't build template for the home page

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 2
Go to End
Author Topic: 2546 Views
  • Uzenmi
    Avatar
    Community Member
    19 Posts

    Can't build template for the home page Link to this post

    I did like this "http://doc.silverstripe.com/doku.php?id=tutorial:1-building-a-basic-site#using_a_different_template_for_the_home_page" but I do not understand the link "http://localhost:3000/db/build?flush=1" when I change to "http://mywebsite.com:3000/db/build?flush=1" its not success so I can not build template for the home page. Who can help me that?

    Thanks very much!

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Can't build template for the home page Link to this post

    Need more information.

    What errors do you get when rebuilding the database with /db/build?flush=1?

    Might want to also post your code from the homepage php file.

  • screpin
    Avatar
    Community Member
    3 Posts

    Re: Can't build template for the home page Link to this post

    Hi!

    I have the same problem. I installed SilverStripe today and I've been following the tutorial but I receive this error when I try to rebuild the database to create the new template called HomePage.ss:

    Building Database

    Creating database tables
    # Newsletter
    # Newsletter_SentRecipient
    # Newsletter_Recipient
    # NewsletterType
    # PageComment
    # Email_BounceRecord
    # Email_BlackList
    # PageView
    # SiteTree
    # Field SiteTree.ClassName: changed to enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','HomePage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree')
    # Field SiteTree_Live.ClassName: changed to enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','HomePage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree')
    # Field SiteTree_versions.ClassName: changed to enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','HomePage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree' (from enum('SiteTree','GhostPage','Page','UserDefinedForm','ErrorPage','RedirectorPage','VirtualPage','SubscribeForm') character set utf8 collate utf8_general_ci default 'SiteTree')
    # QueuedEmail
    # File
    # EditableCheckboxOption
    # EditableDropdownOption
    # EditableFormField
    # EditableRadioOption
    # SubmittedForm
    # SubmittedFormField
    # Group
    # Member
    # Member_UnsubscribeRecord
    # Permission
    # Widget
    Error

    The website server has not been able to respond to your request.

    Thanks!
    Sylvie

  • screpin
    Avatar
    Community Member
    3 Posts

    Re: Can't build template for the home page Link to this post

    Also, if I use http://localhost:3000/db/build?flush=1 like in the tutorial, I get a 404 Not Found Error.
    So I tried : http://localhost:3000/SilverStripe-v2.2.3/db/build?flush=1 and I got the error I posted earlier!

    Can someone help solve this problem?
    Thanks!

  • Uzenmi
    Avatar
    Community Member
    19 Posts

    Re: Can't build template for the home page Link to this post

    I've done. Thanks

  • Three Dog
    Avatar
    Community Member
    6 Posts

    Re: Can't build template for the home page Link to this post

    Have the same problem.
    I Create a file HomePage.php in notepad and put this file in tutorial/code. Then I going to http://localhost/silverstripe/db/build?flush=1 and receive message:

    Building Database

    Creating database tables
    # Newsletter
    # Newsletter_SentRecipient
    # Newsletter_Recipient
    # NewsletterType
    # PageComment
    # Email_BounceRecord
    # Email_BlackList
    # PageView
    # SiteTree
    # QueuedEmail
    # File
    # EditableCheckboxOption
    # EditableDropdownOption
    # EditableFormField
    # EditableRadioOption
    # SubmittedForm
    # SubmittedFormField
    # Group
    # Member
    # Member_UnsubscribeRecord
    # Permission
    # Widget
    # WidgetArea
    # GhostPage
    # Page
    # UserDefinedForm
    # ErrorPage
    # RedirectorPage
    # VirtualPage
    # SubscribeForm
    # Image
    # Folder
    # Image_Cached
    # EditableCheckbox
    # EditableCheckboxGroupField
    # EditableDateField
    # EditableDropdown
    # EditableEmailField
    # EditableFileField
    # EditableFormHeading
    # EditableMemberListField
    # EditableRadioField
    # EditableTextField
    # SubmittedFileField
    # Group_Unsecure

    Creating database records
    # Newsletter
    # Newsletter_SentRecipient
    # Newsletter_Recipient
    # NewsletterType
    # PageComment
    # Email_BounceRecord
    # Email_BlackList
    # PageView
    # SiteTree
    # QueuedEmail
    # File
    # EditableCheckboxOption
    # EditableDropdownOption
    # EditableFormField
    # EditableRadioOption
    # SubmittedForm
    # SubmittedFormField
    # Group
    # Member
    # Member_UnsubscribeRecord
    # Permission
    # Widget
    # WidgetArea
    # GhostPage
    # Page
    # UserDefinedForm
    # ErrorPage
    # RedirectorPage
    # VirtualPage
    # SubscribeForm
    # Image
    # Folder
    # Image_Cached
    # EditableCheckbox
    # EditableCheckboxGroupField
    # EditableDateField
    # EditableDropdown
    # EditableEmailField
    # EditableFileField
    # EditableFormHeading
    # EditableMemberListField
    # EditableRadioField
    # EditableTextField
    # SubmittedFileField
    # Group_Unsecure

    But the is no HomePage page type in the list of page types under the “Behaviour” tab.
    How solv it?

  • Three Dog
    Avatar
    Community Member
    6 Posts

    Re: Can't build template for the home page Link to this post

    Progress in tutorial completely stopped! Help!

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Can't build template for the home page Link to this post

    Try putting your site into dev mode - http://doc.silverstripe.com/doku.php?id=debugging#dev_mode - and see if it gives you an error message.

    2546 Views
Page: 1 2
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.