21489 Posts in 5783 Topics by 2622 members
General Questions
SilverStripe Forums » General Questions » [SOLVED] CMS doesn't load after switch from dev to live
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1095 Views |
-
[SOLVED] CMS doesn't load after switch from dev to live

9 June 2010 at 4:05pm Last edited: 11 June 2010 9:19am
CMS never finishes loading. It hangs on the "Loading..." overlay. Upon a closer look, I noticed my browser error log saying "Can't find variable: jQuery". I then realized the CMS isn't loading half the javascript it should be. If it set "Director::set_environment_type('dev');", then everything loads fine. Remove it and it breaks.
I've been working on this for 4hrs. If anyone can point me in the right direct, I would really appreciate it.
Thanks
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

9 June 2010 at 5:23pm
Its probably to do with the concatenation of files in live mode. Try adding this to your _config.php file.
Requirements::set_combined_files_enabled(false);
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

9 June 2010 at 5:28pm
Thanks. That is a better solution than what I ended up doing.... commenting out all the "combined_files" code in LeftAndMain.php
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

11 June 2010 at 9:07am
FYI I just had the same issue. Couldn't get into admin when not in dev mode. Willr's addition to _config.php did the trick.
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

11 June 2010 at 7:22pm
@both of you - what modules did you have (if any). What I suspect is that you upgraded to 2.4 and it used older 2.3 javascript files. Or it could be a module (userforms) which is affecting it.
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

13 June 2010 at 1:31pm
Hey Willr
I'm using some latest builds from the repo...
SilverStripe /branches/2.4 [rev 105726]
+ Blog /tags/0.4.0 [rev 105888]
+ Userforms /tags/0.3.0 [rev 105956]
+ DataObject_Manager /trunk [rev 395]
+ swfUpload /trunk [rev 375]
+ Event_Calendar /trunk [rev 110]
+ SecureFiles /trunk [rev 145]+ a bunch of my own modules, widgets and an extension -> but none of these add/use/rely-on old/new js
-
Re: [SOLVED] CMS doesn't load after switch from dev to live

15 December 2010 at 9:27am
hi there,
i have the same problem but it does not load not only the java scripts it says
Message: 'Behaviour' is undefined
Line: 552
Char: 1
Code: 0
URI: http://www.cocukcaisler.com/admini tried to configure the _config.php as you told, but it didn't work.
please help me. i didnt install anything. i just installed silverstripe and i was creating the page but at the second time i try to login i crashed. please help me...
| 1095 Views | ||
|
Page:
1
|
Go to Top |




