Jump to:

23473 Posts in 18941 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Dev mode and Live mode JS issues

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
Go to End
Author Topic: 1420 Views
  • Terminator4
    Community Member
    81 Posts

    Dev mode and Live mode JS issues Link to this post

    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


  • Willr
    Forum Moderator
    5497 Posts

    Re: Dev mode and Live mode JS issues Link to this post

    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?

Page: 1
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.