Javascript error: string is undefined (admin.js line 46)
A for , submitted by mqchen on 29 April 2010
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#313: Javascript error: string is undefined (admin.js line 46)
Sorry, seems this issue was apparently fixed with the latest stability update. Ignore this.
Thanks for posting and fixing though, mqchen. Closing :)
This issue is closed.
I get the following error with FireBug enabled in the admin interface:
string is undefined [Break on this error] string = string.replace(‘{$’ + index + ‘}’, value);
It can be fixed by wrapping the string variable with new String in admin.js line 46, like so:
It prevents certain language messages from showing, eg. text in buttons and pop-up boxes are “undefined”. This error only occurs when the language is English.
If you have the WMDEditor extension then no error message is generated, but it actually prevents the extension from loading. If you do not have the WMDEditor installed then it causes the error message.