• Resolved robertstaddon

    (@robertstaddon)


    Upgrading to the latest version of this plugin (2.0) causes JavaScript errors in the page builder of the widely used Divi Theme by Elegant Themes. These JavaScript errors break the functionality of the color picker in the builder.

    Uncaught TypeError: Cannot read property 'has' of undefined
        at Object.handle (index.js:98)
        at gettext (index.js:8)
        at Object.applyFilters (hooks.min.js?ver=50e23bed88bcb9e6e14023e9961698c1:2)
        at Object.__ (i18n.min.js?ver=db9a9a37da262883343e941c3731bc67:2)
        at wp-color-picker-alpha.min.js?ver=4.9.2:8
        at wp-color-picker-alpha.min.js?ver=4.9.2:8
    

    The issue appears to be the line in this plugin’s JavaScript:
    if ( lodash.has( window.say_what_data.replacements, compositeKey ) ) {

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    Hi Robert;

    Thanks for flagging this. Can you reach out here https://plugins.leewillis.co.uk/enquiries/ and we can see if we can work through this with you.

    Thread Starter robertstaddon

    (@robertstaddon)

    The issue appears to be with the way that the latest version of this plugin uses “lodash” that conflicts with the Divi Builder.

    There is also a second earlier JavaScript error when using the Divi Builder with this plugin enabled:

    Uncaught ReferenceError: _ is not defined
        at <anonymous>:2:17
        at HTMLHeadElement.rt [as appendChild] (<anonymous>:15:29541)
        at e.value (boot.js?ver=4.9.2:2)
        at boot.js?ver=4.9.2:2
        at boot.js?ver=4.9.2:2
        at t.exports (boot.js?ver=4.9.2:2)
        at e._moveDOMToFrame (boot.js?ver=4.9.2:2)
        at HTMLIFrameElement.<anonymous> (boot.js?ver=4.9.2:2)
        at HTMLIFrameElement.dispatch (jquery.min.js?ver=3.5.1:2)
        at HTMLIFrameElement.v.handle (jquery.min.js?ver=3.5.1:2)
    

    This error is triggered by the following output from this plugin:
    window.lodash = _.noConflict();

    Thread Starter robertstaddon

    (@robertstaddon)

    Thank you, Lee, for the prompt response! I have just filed the bug report through the website link that you provided.

    Thread Starter robertstaddon

    (@robertstaddon)

    The plugin dev team appears to have resolved this issue in the latest 2.0.1 release! Nice work.

    Plugin Author Lee Willis

    (@leewillis77)

    No problem. Glad it’s all sorted out for you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Version 2.0 Causes JavaScript Errors in Divi Builder’ is closed to new replies.