Or make asset/_combinedFiles world writable ;-)
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
- Previous 10 entries
- 1
- Page 22(current)
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!
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!
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.
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.
- Previous 10 entries
- 1
- Page 22(current)