Why are there three javascript files in the assets folder? I am using the files from trunk. I would like to only have asset files in my assets folder so it doesn't confuse the end user. If someone deletes those files sometimes they get put back automatically or the admin site never loads after login.
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.
These are created by the new javascript combiner in Sapphire. Note sure why it was decided to put them in the assets folder though - it's something that was raised in the developer group and should be fixed. Try the /branches/2.3 version and see if they still appear.
I'm using SS 2.3.1 and have the same issue: base.js, cmsmain.js, error-404.html and leftandmain.js are located in the 'assets'-folder. Can I simply remove these files (don't think so). Is it possible to move these files to another folder. Help is appreciated as this is confusing to end-users.
Many thanks in advance!
Hi,
Is there a resolution to this??
...was decided to put them in the assets folder though
Because assets is the only folder we require to be writable. Since those files are generated by the code, PHP needs write permission to where ever it gets written to - assets was the logically place as we already require that to be writable.
Can I simply remove these files (don't think so)
No they will just be recreated next time you run it. The 404 page is generated as a static html page so it can be thrown without hitting the database
Is there a resolution to this??
You can if you need disable the combining of files by setting Requirements::set_combined_files_enabled(false); in your config file but the 404 page will still be generated in this folder