Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Tutorial 'Building a Basic Web Site' - database rebuild

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

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

Page: 1 2 3
Go to End
Author Topic: 9907 Views
  • BLU42 Media
    Avatar
    Community Member
    71 Posts

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Sorry to steer you wrong initially... I was thinking MAMP Pro.

    First, have you tried flushing the admin section yet?

    Second, it shouldn't matter, but you could also try adding a dummy field to the HomePage type just to see if it will add that to the build?

    <?php
    /**
    * Defines the HomePage page type
    */
    class HomePage extends Page {
       static $db = array(
          'TestField' => 'Varchar'
       );
       static $has_one = array(
       );
    }

    class HomePage_Controller extends Page_Controller {
    }
    ?>

    Keep us posted!

    John

  • Phalkunz
    Avatar
    69 Posts

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    What is the content of /mysite/_config.php?

  • hector-the-pudding
    Avatar
    Community Member
    6 Posts

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Hi John,

    OK, I added that code into the HomePage.php file......nothing's happened that I know of. Am i supposed to do something with it to make it work?....???

    Hi Phalkunz,

    There isn't a mysite/_config.php file.

    I have to say that this is not very well explained. I installed SS like any newbie and, in keeping with the instructions, have done everything from the tutorial folder...which is what the system seems to default to anyway. What IS mysite, why is it there, what should it do, can I administer more than one site from the admin?

    needs clarification. i think, from what I have briefly read in the forums, other newbies have this problem, too!

    regds
    H

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Sorry if you used the Tutorial option while installing it then Phalkunz refering to tutorial/_config.php

    The _config.php file tells SilverStripe what code to use. If you selected the Tutorial theme while installing SS then you need to change all mysite/ references to tutorial/ .

    The first 3 tutorials are all very much a bit behind in the times. We are currently in the process of rewriting this tutorials to provide a more useful, userfriendly introduction to SilverStripe since so much has changed in the last 18 months.

  • hector-the-pudding
    Avatar
    Community Member
    6 Posts

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Hi Willr,

    OK, understand! Things move on quickly with development, not a bad sign, really!

    However, think it might be best for me to revisit this CMS when these things are sorted and the tutorials rewritten to be uptodate - it's just so confusing and very negative for a newbie to get bogged down in things which don't work or aren't clearly explained. Sorry, that's the way user experience goes!

    I would reiterate this claim by someone that its the CMS that "your mum can use". !!! Well, I look forward to that becoming a reality, but experience shows it's far from that and still a tool for experts only.

    Now CMSimple.....that is the nearest I've got to something mum can use!! (http://www.cmsimple.com)

    I'm sure SS is potentially much more powerful. I'll certainly be revisiting to see if ease-of-use is improving.

    best regards,

  • THEMO
    Avatar
    Community Member
    1 Post

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Sorry you didn't have any luck with your trials, Hector. I just want to report that this thread was brilliant in helping me resolving my 'tutorial' issues. Using LAMP and was wondering why HomePage wouldn't show up like the tutorial says. Well, I had HomePage.php under tutorial/code. I moved it to mysite/code and triggered the rebuild. Voila!

    I'm still going through the tutorial, but so far melikes!

    I have battled with most of the big CMS'es out there except maybe "the Dru" and maybe that's why I know to continue banging my head against the computer until the bleeding stops(yes. Reverse).

    Nice job so far guys.

  • asa
    Avatar
    Community Member
    1 Post

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Hi!
    I've also just installed the cms and now going through the tutorial. Unfortunately, it went to an abrupt stop when the cms just shows a blank page after I put the HomePage.php in tutorial/code/. Have gone through everything that I found in this thread but I can't make it work. If I delete the code inside of HomePage.php the cms show up again!
    What to do?

  • prod
    Avatar
    Community Member
    1 Post

    Re: Tutorial 'Building a Basic Web Site' - database rebuild Link to this post

    Same here. I am using Silver Stripe 2.2.3 and installed the basic / tutorial theme.
    I rebuilt the database - there were a number of messages of tables created etc.
    But after that, going to the admin page just shows a plain blank page.
    Please HELP ...

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