WordPress.org

Ready to get started?Download WordPress

Forums

More Fields
JavaScript error which causes errors in IE7 & IE8 (4 posts)

  1. rickcurran
    Member
    Posted 2 years ago #

    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/

  2. devbit
    Member
    Posted 2 years ago #

    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!

  3. ljg3
    Member
    Posted 2 years ago #

    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!

  4. ljg3
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic