• Resolved kinghead

    (@kinghead)


    Hello,

    I get a conflict between TablePress and WPBakery Page Builder/JS Composer. Did you get notice of that from another user? See error:

    TypeError: $(…).attr(…) is undefined jquery.prettyPhoto.min.js:1:14245

    $.fn.prettyPhoto/$.prettyPhoto.initialize/pp_images /wp-content/plugins/js_composer/assets/lib/prettyphoto/js/jquery.prettyPhoto.min.js:1:14245
    map /wp-includes/js/jquery/jquery.js:2:3613
    $.fn.prettyPhoto/$.prettyPhoto.initialize /wp-content/plugins/js_composer/assets/lib/prettyphoto/js/jquery.prettyPhoto.min.js:1:14193
    dispatch /wp-includes/js/jquery/jquery.js:3:12392
    add/r.handle /wp-includes/js/jquery/jquery.js:3:9156

    Perhaps you can fix that? If I deactivate TablePress PrettyPhoto works fine. Thanks in advance and merry christmas.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    This actually sounds as if your site is using an old version of the JQuery JavaScript library.
    See https://tablepress.org/faq/js-functions-not-working/ for some ideas here, please.

    Regards,
    Tobias

    Thread Starter kinghead

    (@kinghead)

    Hi,

    there are no probs with the jQuery libraries. I solved it within the PrettyPhoto JS. Now I use prop() instead of attr() and rewrote the JS file in JS Composer. Now it works fine, I think there′s no src attribute and attr() will get undefined. Hence the error.

    Best regards, Ben

    • This reply was modified 5 years, 11 months ago by kinghead.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Ben,

    ah, I see. Yes, attr() had been deprecated by jQuery which is why this change might have been necessary now. Nice find!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict between TablePress and WPBakery Page Builder’ is closed to new replies.