• Resolved broksonic

    (@broksonic)


    We found that if we have WordPress 5.5 and the Gutenburg Official Plugin (https://www.ads-software.com/plugins/gutenberg/) installed, then Woo Variation Swatches doesn’t work to change image attribute images – the button never pops up. The console shows a lot of javascript errors in this state. To fix, we had to install the WordPress temporary migration https://www.ads-software.com/plugins/enable-jquery-migrate-helper/ to get it work.

    Even with that, we now get a console warning on every admin page, coming from Woo-variation-swatches

    Uncaught ReferenceError: wpColorPickerL10n is not defined
    at wp-color-picker-alpha.min.js?ver=2.1.3:1
    at wp-color-picker-alpha.min.js?ver=2.1.3:1

    /wp-content/plugins/woo-variation-swatches/assets/js/wp-color-picker-alpha.min.js?ver=2.1.3

    Is there a release planned to support 5.5’s jquery.migrate deprecation and fix this up?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @broksonic

    I’ve inform the team about this issue. Team is checking the issue and hopefully, after checking this issue, they will fix it in the coming update.

    Thank You

    Googling the same issue I found this:

    https://github.com/kallookoo/wp-color-picker-alpha/pull/38/files/aba8c6a371b447781de23072ab5a1a1e80d5685c

    Specifically, in assets/js/wp-color-picker-alpha.js, wrapping this line:

    _deprecated = wpColorPickerL10n.current !== undefined;

    …in this conditional as such:

    _deprecated = (typeof wpColorPickerL10n !== "undefined") ? wpColorPickerL10n.current !== undefined : false;

    Of course the plugin is using a minified version of this file, so if you want to temporarily hack in a fix before the plugin is officially updated, you’ll need to rename the file wp-color-picker-alpha.min.js to something else (e.g. wp-color-picker-alpha.min.js-BAK) to force the plugin to load the non-minified version.

    In my case I’m running another plugin that is also getting a different new JavaScript error, so I had to hack in a bypass to that as well to get this working, but this change does seem to solve the problem.

    • This reply was modified 4 years, 6 months ago by room34.
    • This reply was modified 4 years, 6 months ago by room34.

    I’m joining too. The same problem

    Uncaught ReferenceError: wpColorPickerL10n is not defined
    at wp-color-picker-alpha.min.js? ver = 2.1.3: 1
    at wp-color-picker-alpha.min.js? ver = 2.1.3: 1

    I will be looking forward to the new version. Good luck. ??

    @trixal @room34 @broksonic

    The team is working on this. Today, we can release the fix.

    Thank You

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress 5.5/Gutenburg Compatibility’ is closed to new replies.