Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

Dev mode and Live mode JS issues


Reply


2 Posts   1436 Views

Avatar
Terminator4

Community Member, 81 Posts

27 May 2009 at 10:14am

Hi,
When I switch between the different modes I am able to see that certain files are not utilized on page processing thus causing issues. This mainly happens with JS files. The issues that I am experiencing follow. Please could you see if there are any work arounds available for me so that I can resolve this on SS 2.3.0 and have my local and server versions of website working in sync.

1) If I switch between the different modes certain JS files are not being included in the page processing
2) The requirement classes combine function is not working on my live server however works locally
3) Sometimes the calendar JS is not being included even if it is a requirement
4) JS files that are required for the admin to work correctly seem to give hassles in the different modes when loading the CMS and/or trying to open a page from the left list for it to be managed on the right frame

Thanks

Avatar
Willr

Forum Moderator, 5513 Posts

27 May 2009 at 10:23pm

For the combining of the files - its not that smart so it will just throw all the files in at once, sometimes you make come across collisions. For combined files to work make sure assets/ is fully writable and also if you update or change JS on the live site SS will not detect this as *changed* so you have to remove the old combined files and republish it so it generates a new file.

Also I thought the combine function only works in live mode? (eg its disabled in devmode) Have you set your localhost up in live mode just to check it can combine correctly in that one?