• Resolved holle75

    (@holle75)


    Hi, after the last update i′m getting a bunch of js errors. This is just the one in regards of the mollie script.

    Uncaught ReferenceError: wc is not defined
        AGGC /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        n /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonymous> /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonymous> /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
    mollieBlockIndex.min.js:1:6891
        AGGC /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        n /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonym> /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonym> /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1

    I′m using WP-Optimize to minify but Mollie is excluded with

    *mollie-payments-for-woocommerce*

    When switching minify off completely i do not get any errors. Which other mollie script is using another name than mollie-payments-for-woocommerce in the path and is causing the problem?

    When deactivating mollie, minify is possible as before the update

    speedy reply highly appreciated. Thanks

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @holle75

    Thank you for reaching out to us, we are here to help.
    I will open a bug for this and ask our developer to take a look at this and come back to you with the response.
    However, I would also advise you to contact the developer of WP-Optimize and see if they can take a look at this.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @holle75

    Could you please confirm if this is the plugin you are using: https://www.ads-software.com/plugins/wp-optimize/

    Thank you.

    Kind regards,
    Joost

    Thread Starter holle75

    (@holle75)

    Hi Joost and thank you for your response. Maybe i′m wrong but i dare to say that if before everything went fine, all other plugins still work nicely with minify and only after updating mollie the errors jump up …. it might have to do with mollie. I could invest more of my time in also trying to bother WP-Optimize authors with this problem but i think it would be timesaving for everyone if you try to fix mollie plugin?

    appreciate any fast solution. I can′t minify anymore. I would be happy with a temporary answer in regards of :

    Which other mollie script is using another name than mollie-payments-for-woocommerce in the path and might cause the problem?

    this way i could keep running mollie without losing my whole minification.

    best

    H.

    Thread Starter holle75

    (@holle75)

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @holle75

    I will first need a response from our developer before I can answer that question. I just tried to reproduce this issue with the last versions of both plugins, but I did not run into it.

    Can you specify how I could reproduce this issue? Have you already done conflict testing to rule out other plugins affecting this issue?

    If there are any other details you want to share, that you don’t want to share on a public forum, please reach out to us via these instructions.

    Kind regards,
    Joost

    Thread Starter holle75

    (@holle75)

    Hi Joost, the problem why i can′t check whats happening is that i can′t completely exclude mollie from minify. I couldn′t find any additional script that is loaded from mollie besides /wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js

    The only options i have is either deactivate mollie or completely deactivate minimizing.

    I just had an idea. In WPO you can isolate minified scripts for debugging

    I set WP-Optimize to isolate the scripts, with minify on and mollie-payments-for-woocommerce in the path excluded, below are all the errors i get. It seems there is a conflict with my theme ASTRA pro. This theme is quite often used. Unfortunately i′m very sceptic that Brainstorm will find the issue. Not the fastest support when it comes to problem solving ??

    JQMIGRATE: Migrate is installed, version 3.3.2 wpo-minify-header-d815c989.js:10:709
    Uncaught TypeError: a is undefined
        <anonymous> https://xxx.com/wp-content/cache/wpo-minify/1674657175/assets/wpo-minify-footer-0394ddbc.js:195
        <anonymous> https://xxx.com/wp-content/cache/wpo-minify/1674657175/assets/wpo-minify-footer-0394ddbc.js:195
    wpo-minify-footer-0394ddbc.js:195:2767
    WP-Optimize Minify: An error has occurred in the minified code. 
    
    - Original script: https://xxx.com/wp-content/plugins/astra-addon/addon…ocommerce/assets/js/minified/single-product-ajax-cart.min.js - AFTER
    
    - Error message: wp.data is undefined de:2337:18
    Uncaught ReferenceError: wc is not defined
        AGGC https://xxx.com/wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        n https://xxx.com/wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonymous> https://xxx.com/wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
        <anonymous> https://xxx.com/wp-content/plugins/mollie-payments-for-woocommerce/public/js/mollieBlockIndex.min.js:1
    

    If i can be of any further help, let me know.

    Thread Starter holle75

    (@holle75)

    Mmh, nope, with ajax-cart excluded more errors are popping. So it′s not Astra.

    WP-Optimize Minify: An error has occurred in the minified code. 
    
    - Original script: https://xxx.com/wp-includes/js/dist/keycodes.min.js
    - Error message: a is undefined wpo-minify-footer-0394ddbc.js:263:18
    WP-Optimize Minify: An error has occurred in the minified code. 
    
    - Original script: https://xxx.com/wp-includes/js/dist/compose.min.js
    - Error message: f is undefined wpo-minify-footer-0394ddbc.js:282:18
    WP-Optimize Minify: An error has occurred in the minified code. 
    
    - Original script: https://xxx.com/wp-includes/js/dist/data.min.js
    - Error message: i is undefined wpo-minify-footer-0394ddbc.js:308:18
    WP-Optimize Minify: An error has occurred in the minified code. 
    
    - Original script: https://xxx.com/wp-includes/js/underscore.min.js - AFTER
    - Error message: wp.data is undefined
    Thread Starter holle75

    (@holle75)

    ps. out of curiosity i activated twentwentythree as a theme. Same errors. So it′s def not Astra

    pps any known disadvantages to temporary downgrade mollie?

    • This reply was modified 2 years, 1 month ago by holle75.
    Thread Starter holle75

    (@holle75)

    ppps downgrade solves all errors. I hope you′ll find the problem.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @holle75

    I will update the bug with these details you shared. If you want to know what difference there is between the current and older releases, please take a look at the overview of fixes on the release list you can find here.

    What version did you use to make this work again? (7.3.4?)

    Kind regards,
    Joost

    Thread Starter holle75

    (@holle75)

    Hi Joost, yes, 7.3.4.

    Yes, i know where to see the fixes. Sometimes updates tamper with the database fe. Thats what the question was about. Anyways i′already downgraded and it seems ok.

    Plugin Support Syde Joost

    (@joostvandevijver)

    ok, thank you for confirming. I’ll let you know, when I hear anything.

    Kind regards,
    Joost

    Thread Starter holle75

    (@holle75)

    Joost, i just remembered. It seems there is some INLINE script mollie put in the footer. That might explain why you can′t completely exclude mollie script from minimize in WP-Optimize (or why minimize in combination with this inline script creates errors). I pressume in this inline code the error might be hidden. Or, because the main script without minimization is loaded after this inline script, some dependencies are missing?

    Please check

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @holle75

    I have forwarded this information to our developer, pending a response.

    Kind regards,
    Joost

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    This problem is caused by the Block-checkout scripts loading, unintentionally, on all pages. In previous Mollie versions, these scripts only loaded when the Blocks feature plugin was enabled.
    This behavior wasn’t noticed in the previous version, so update 7.3.5 effectively rolled it out to everyone (regardless of whether you use the Block checkout or not) by removing the requirement for the Blocks feature plugin.

    In most cases, it should not cause any problems. Minification can sometimes break things, though and is recommended to be disabled on the Checkout page, at least. But the scripts loading when they should not will be fixed in one of the next updates. I’m not sure if it will be included in the upcoming one, though.

    Kind regards,
    Niklas

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘js errors after last update to 7.3.5’ is closed to new replies.