Jump to:

4951 Posts in 14058 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » installed Silverstripe, worked, changed theme, now redirect hell

Getting SilverStripe up and running on your computer and on your web server.

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

Page: 1
Go to End
Author Topic: 1927 Views
  • natron
    Avatar
    Community Member
    3 Posts

    installed Silverstripe, worked, changed theme, now redirect hell Link to this post

    worked fine, changed theme in _config.php and now I'm getting redirected to install.php (no longer exists since i trashed it) and getting this error: Too many redirects occurred trying to open “http://XX.XX.XXX.XX/”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

    Tried loading http://XX.XX.XXX.XX/dev/build to force the db to rebuild, but no dice.. same redirect nonsense!

    help!!!!!!

  • Willr
    Avatar
    Forum Moderator
    5483 Posts

    Re: installed Silverstripe, worked, changed theme, now redirect hell Link to this post

    Check the redirection isn't just cached - try another browser or by CTRL + F5. Another thing to check is does the $database variable exist in your _config file. If SS cannot *see* that its installed in a database it may think it hasn't been installed yet so double check your mysite/_config db details.

  • ThereBeDragonsHere
    Avatar
    Community Member
    8 Posts

    Re: installed Silverstripe, worked, changed theme, now redirect hell Link to this post

    Hi all,

    I just ran into the same problem yesterday. I upgraded to 2.4.0 and it was running fine, then I built my own template and wanted to give it a test run. So, I uploaded the template and changed the _config in "mysite" and now the site's going through endless redirect loops.

    I've dumped the cache, ran dev/build/?flush=all, tried opening the site on different browsers to make sure it wasn't a cache issue, and I've fiddled around with the _config file some more in hopes that I could get the site to stop redirecting. No luck so far. If it helps any, the following is the content of my _config file:

    <?php

    global $project;
    $project = 'mysite';

    global $database;
    $database = '';

    require_once('conf/ConfigureFromEnv.php');

    MySQLDatabase::set_connection_charset('utf8');

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

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

    "cunardclassic" is the name of the theme I'm trying out and have uploaded into the templates folder, so I'm pretty sure it's in the right place. I've also thought that maybe it was a template issue and tried redirecting _config to the default Blackcandy, but I still run into the redirect loop.

    Right now am I running SilverStripe as a future platform for my website (the conversion process is ongoing) and haven't been able to move over the content since the redirect loop. The temporary site is available for viewing here: http://ren.cnwcentral.com/silverstripe/

    Any pointers would be much, much appreciated!

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: installed Silverstripe, worked, changed theme, now redirect hell Link to this post

    It looks like your _config.php file isn't filled out correctly. For example, $database = '' means it will always try to access the install.

    Perhaps it would be a good idea to run the SilverStripe 2.4 installer, so that it will out this file for you with the correct database details, etc?

    Sean

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