WordPress.org

Ready to get started?Download WordPress

Forums

OptionTree
Infinite console errors on adding images (5 posts)

  1. RubenBristian
    Member
    Posted 1 year ago #

    There's an infinite error caused by an undefined attribute, when using Option Tree + WordPress 3.5

    The fix is to put another condition for the if at line 294(ot-admin.js)..

    So:

    if ( $('#TB_iframeContent').attr('src').indexOf( "&field_id=" ) !== -1 ) {

    becomes:

    if ( $('#TB_iframeContent').attr('src') != 'undefined' && $('#TB_iframeContent').attr('src').indexOf( "&field_id=" ) !== -1 ) {

    http://wordpress.org/extend/plugins/option-tree/

  2. GJaynes
    Member
    Posted 1 year ago #

    Hey - thanks for the tip. Unfortunately I still get the error.

    wordpress TypeError: $(...).attr(...) is undefined optiontree

    Any suggestions are much appreciated.

  3. gorgoth
    Member
    Posted 1 year ago #

    I get the same error, the fix from RubenBristian does not work for me.

    Does anyone have a solution?

  4. htvu
    Member
    Posted 1 year ago #

  5. gorgoth
    Member
    Posted 1 year ago #

    Thank you again hvtu.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.