Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » OH No, My site has disappeared :0

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

Page: 1
Go to End
Author Topic: 642 Views
  • ambient
    Avatar
    Community Member
    123 Posts

    OH No, My site has disappeared :0 Link to this post

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Hi to all in the Silverstripe community

    I am new here but so far loving what I see. My php skills are not great at all but i do my best to get by.

    i have been working my way through the tutorials and when i got to Tutorial 4 - Site Search and entered:

    FulltextSearchable::enable();

    into my _config.php and uploaded it all I get is the above error. I can't access the site, admin or dev/build.

    I searched for possible solutions and all i got was either reinstall or delete the silverstripe-cache folder. I haven't tried either as i was hoping someone might have a solid answer and maybe an explanation as to what i may have done wrong.

    I realise reinstalling wouldn't be the end of the world as I'm only at the tutorial level but what if this happens when I have a site up?

    Anyway any help would be much appreciated.

    Thanks

    p.s. this is what my _config.php file looks like

    <?php

    global $project;
    $project = 'mysite';

    global $database;
    $database = '';

    require_once('conf/ConfigureFromEnv.php');

    MySQLDatabase::set_connection_charset('utf8');

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.org/themes/
    SSViewer::set_theme('blackcandy');

    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls();

    FulltextSearchable::enable();

  • martimiz
    Avatar
    Forum Moderator
    1086 Posts

    Re: OH No, My site has disappeared :0 Link to this post

    Maybe I got this all wrong, but it looks like you uploaded the original mysite/_config.php file. On first install, SilverStripe adds a number of settings to this file, including the details for your database connection, that now seem to be lost ($database = ''; ).

    So to change the config file, you need to use the one on your server, containing all the changes. It's always a good idea to download it immediately after installation.

    At this point I would probably just reinstall. This is not likely to happen on your live site again

  • ambient
    Avatar
    Community Member
    123 Posts

    Re: OH No, My site has disappeared :0 Link to this post

    Thank you so much martimiz

    An amateur mistake no doubt. In hindsight I should have downloaded the whole site after install.

    I changed to _config.php to below and I seem to be back up and running. Hopefully I'm not missing anything from the file that will matter later.

    Thanks again dude, you're a star ;)

    <?php

    global $project;
    $project = 'mysite';

    global $databaseConfig;
    $databaseConfig = array(
    "type" => "MySQLDatabase",
    "server" => "localhost",
    "username" => "************",
    "password" => "**************",
    "database" => "***************",
    );

    require_once('conf/ConfigureFromEnv.php');

    MySQLDatabase::set_connection_charset('utf8');

    // This line set's the current theme. More themes can be
    // downloaded from http://www.silverstripe.org/themes/
    SSViewer::set_theme('tutorial');

    // enable nested URLs for this site (e.g. page/sub-page/)
    SiteTree::enable_nested_urls();

    FulltextSearchable::enable();

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