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)

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:

string = (new String(string)).replace('{$' + index + '}', value);

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.

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details