Support » Plugin: More Fields » [Plugin: More Fields] JavaScript error which causes errors in IE7 & IE8

  • There is a javascript error caused by this plugin that breaks functionality in IE7 and IE8. It actually displays JS error alerts in these browsers when trying to edit pages.

    Checking pages with Web Inspector in Safari on OSX shows an error:

    TypeError: ‘null’ is not an object (evaluating ‘a.getLang’)

    The main broken behaviour I encountered in IE7 and 8 was trying to add hyperlinks, the link overlay panel is either blank or missing features.

    http://wordpress.org/extend/plugins/more-fields/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I get a similar issue when using this plugin in Firefox. Error Console displays the error as
    q is not a contructor
    in
    /wp-includes/js/tinymce/tiny_mce.js?ver=342-20110630
    and the link overlay panel does not allow you to expand the “Or link to existing content” section.

    This is a serious issue that severly cripples WordPress for my clients that need to be able to link to existing pages easily. If anyone has a fix, please post it!

    Commenting out line 80 in more-fields-settings-object.php did the trick for me.

    //wp_tiny_mce( false ); // true gives you a stripped down version of the editor

    I haven’t had a chance to completely back-trace this, but at least it un-breaks TinyMCE, and the additional fields all still seem to function properly. Use at your own risk!

    Update. This is better solution, as it takes into account whether TinyMCE has been loaded or not. Here’s the patch:

    wysiwyg.patch

    You can apply it by moving that file into the more-fields plugin folder and running:

    patch -p0 < wysiwyg.patch

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: More Fields] JavaScript error which causes errors in IE7 & IE8’ is closed to new replies.