Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there,
    thanks for contacting us!

    Could you tell me how you manage to get that error? Because I can’t get it locally.

    Please let me know.

    Best regards.

    Thread Starter asafm7

    (@asafm7)

    Thanks, @juaancmendez.

    It is a YITH Add to wishlist Gutenberg block added to a WooCommerce Single Product template.

    But you can also refer to the code. As I mentioned, the JS file is enqueued in /includes/class-yith-wcwl-shortcode.php while the file itself (/assets/js/add-to-wishlist-gutenberg.min.js) doesn’t exist anymore.

    A screenshot of the JS assets folder, where the files used to exist:

    https://1drv.ms/i/s!AhEX_VIY1-zfhdlHPvkkgsfJGbBWfQ?e=0ebMMB

    You can see there isn’t a add-to-wishlist-gutenberg.min.js file in the folder.

    Let me know if you need anything else.

    Thanks.

    Thread Starter asafm7

    (@asafm7)

    @juaancmendez, were you able to reproduce the issue?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    I will contact the developer and as soon as I have any news I will post it here.

    Best regards.

    Thread Starter asafm7

    (@asafm7)

    Thanks, @juaancmendez.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    thanks for your patience.

    This bug has been fixed in the plugin and will be available in the next version, which will be released this week. However, if you want to try it out, do the following:

    1) Create a file named “add-to-wishlist-gutenberg.js” in the following directory:

    app\public\wp-content\plugins\yith-woocommerce-wishlist\assets\js\unminified\

    2) Add the following code inside it:

    jQuery( $ => {
    wp.hooks.addAction( 'yith_plugin_fw_gutenberg_success_do_shortcode', 'yith-woocommerce-wishlist', ( shortcode, shortcodeHash, ajaxResponse ) => {
    if ( 0 === shortcode.indexOf( '[yith_wcwl_add_to_wishlist' ) ) {
    wp.hooks.doAction( 'yith_wcwl_init_add_to_wishlist_components' );
    }
    } )
    } )

    3) If for some reason you are still seeing the error, please add this code inside your wp-config.php file:

    define( 'SCRIPT_DEBUG', true );

    Could you check it, please?

    Best regards.

    No, this method doesn’t work.

    Thread Starter asafm7

    (@asafm7)

    Hi, @juaancmendez. Is there any update? I see a new version hasn’t been released yet.

    Thanks.

    how can I fix this plugin

    • /wp-content/plugins/yith-woocommerce-wishlist/assets/js/add-to-wishlist-gutenberg.min.js?ver=4.0.1 not found after activate
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.