4577 Posts in 1388 Topics by 1377 members
| Go to End | Next > | |
| Author | Topic: | 3448 Views |
-
Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 10:27am Last edited: 17 November 2010 10:29am
So this morning, I was having a bit of trouble logging into the admin section of silverstripe. Every time I tried to, I'd get a bunch of javascript and other browser errors about not being able to find files, classes that were missing/undefined, and subsequently, things would stop at the "loading" screen. I checked and re-checked permissions, re-uploaded everything again and again, tried different browsers but nothing seemed to work.
Finally, I discovered that removing the .htaccess file under "assets", fixed the issue completely.
However, I'm guessing that file was placed there for a good reason and I was just curious as to whether or not its a good idea. If its not, then is there a fix?
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 11:40am Last edited: 17 November 2010 11:43am
Is this an installation on your local machine or remote web host?
I believe the .htaccess file in assets may cause issues with hosts that use PHP as FastCGI instead of mod_php5 on Apache. Do you know if that is the case?
Sean
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 11:50am Last edited: 17 November 2010 11:50am
Update: You can try patching the file like this: http://open.silverstripe.org/changeset/113809/phpinstaller
See if that helps.
Sean
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 12:58pm
It seems there's more threads popping up about this subject, this http://www.silverstripe.org/general-questions/show/14861 is one for instance. Turns out my host is using FastCGI, so will try the patch and report back.
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 1:01pm
Thanks Sean! That did the trick!
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 1:03pm
Thanks guys!
This fix will appear in the next release, 2.4.4.
Sean
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 1:52pm
Yep, solved it for me as well. Thanks Sean!
(Perhaps link to the patch in the upgrade/install instructions for 2.4.3?)
-
Re: Is the .htaccess file under the "assets" folder necessary?

17 November 2010 at 6:19pm
Good to hear!
I've added an entry at the top of the upgrading notes here: http://doc.silverstripe.org/upgrading:2.4.3
Thanks!
Sean
| 3448 Views | ||
| Go to Top | Next > |


