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.

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.

Content Editor Discussions /

Forum for content editors and CMS users.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

JavaScript Errors in CMS


Go to End


2041 Views

Avatar
ITMonkey

Community Member, 6 Posts

1 October 2009 at 1:03am

Hi, I'm getting js errors constantly when trying to access the /admin page, or when I try to do anything within the CMS section; SilverStripe is v2.3.3 and it's running on openSuSE 11.1 with apache 2.2.10-2.5

Loading it locally in Opera 10.0 clicking Site Content I get these errors:

JavaScript - http://localhost/admin/0
Inline script compilation
Syntax error while loading: line 2265 of linked script at http://localhost/jsparty/tiny_mce2/tiny_mce_src.js?m=1238116563
Expected token: '}'
return this.ru

JavaScript - http://localhost/admin/0
Event threat: load
Error:
name: ReferenceError
message: Statement on line 903: Undefined variable: tinyMCE
stacktrace: n/a; see opera:config#UserPrefs|Exceptions Have Stacktrace

locally in Firefox 3.5.3 it's even worse, it won't load the pages, it just briefly displays the loading icon and the icon next to the page name changes to the loading symbol, in the js console I just get e.g.:

Error: jQuery is not defined
Source File: http://localhost/sapphire/javascript/core/jquery.ondemand.js?m=1234316538
Line: 205

If I try it remotely using IE8 I get a whole load of errors, syntax errors, expected this that and the other and it doesn't load the admin page at all, just sits at the SS loading page.

Whether this is related or not I don't know, but the normal web pages load EXTREMELY slowly if I access them by the domain name, even on the host, but if I access them using localhost it works fine. I thought it may have been that apache was binding to everything, but when I set it to bind to it's IP address, I couldn't get into the CMS (Access to the CMS only works using localhost or 127.0.0.1, otherwise it hangs ala IE8 even in Opera)

Any ideas?