Jump to:

22977 Posts in 11758 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Can't login to backend

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: 3956 Views
  • spankmaster79
    Avatar
    Community Member
    46 Posts

    Re: Can't login to backend Link to this post

    Or make asset/_combinedFiles world writable ;-)

  • tv
    Avatar
    Community Member
    43 Posts

    Re: Can't login to backend Link to this post

    I am having trouble with logging into the backend in version 2.4.5 with the development mode set to 'test'. When I add Requirements::set_combined_files_enabled(false); I am able to log in to the admin, but then I am receiving an HTTP error when I try to upload images using uploadify. When I remove Requirements::set_combined_files_enabled(false); from the _config file, uploadify works, but then I can't log into the backend.

    I checked the .htaccess file in the assets directory and it does include the following:
    <IfModule mod_php5.c>
       # Turn the PHP engine off
       php_flag engine off
    </IfModule>

    In 'dev' mode everything is working fine, but I just uploaded to a remote server and would prefer that the site not be in 'dev' mode.

    I am on Media Temple dv 3.5.

    Anyone else experienced this or have any suggestions?

    Thanks!

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Can't login to backend Link to this post

    When the site is live it should be "live" mode, "dev" for development and "test" is for running the phpunit tests only I think.

    Hope this helps!

  • tv
    Avatar
    Community Member
    43 Posts

    Re: Can't login to backend Link to this post

    Thanks alot swaiba.

    I am a little confused though. On the debugging page in the documentation: http://doc.silverstripe.org/sapphire/en/topics/debugging - I got the impression that 'test' mode was meant for staging environments on a public server ( which is where I am currently at in the development process). I also thought being in 'dev' mode on a public staging server would be a potential security risk.

    Do you have any ideas on why I am needing to set Requirements::set_combined_files_enabled(false); in the _config file to be able to access the back end in 'live' and 'test' modes on my public staging server or how I can go about finding the answer? On my local server (MAMP) I was able to access the backend in 'live' mode without needing to set_combined_files to false.

    Thanks again for your help.

  • ToddH
    Avatar
    Community Member
    2 Posts

    Re: Can't login to backend Link to this post

    I was getting the same issue in SilverStripe v 2.4.6 with the backend hanging on login.
    The developer console mentioned jquery and other files not being found.

    The issue was fixed by adding the following line to assets/.htaccess
    just above "Deny from all":

    Order deny,allow

    It seems Apache needs this line.

    I'm running Apache/2.2.16 with mod php.

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