• avong

    (@avong)


    We still getting the errors affecting public facing page as soon as the Afterpay plugin is activated since 3.7. This is stilll happening for 3.7.1.

    The recent updates seems to remove our themes via add_action “wp_enqueue_scripts” (default priority 10) which includes JQuery library and related standard WooComerce JS scripts and all subsequent JS registered as dependent JS scripts from being loaded.

    With WP Optimize plugin’s JS minify
    “Uncaught Error: You tried to opt-in to unstable APIs as module “@wordpress/data” which is already registered. This feature is only for JavaScript modules shipped with WordPress core. Please do not use it in plugins and themes as the unstable APIs will be removed without a warning. If you ignore this error and depend on unstable features, your product will inevitably break on one of the next WordPress releases.”

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @avong,

    Thanks for your message.

    The team would like to assist with this challenge. To facilitate this, please submit a support request including a link to this post using the following web form: https://afterpay.formstack.com/forms/global_merchant_technical_support

    A member of the team will then reach out to you within 1 business day.

    Thank you.

    Thread Starter avong

    (@avong)

    @benfterpay The form request information that we don’t have.

    Please resolve the plugin issue here without trying to send people to your internal system so that other WordPress plugin users can follow the issue that happened with your updates

    Hi @avong,

    Thanks for following up.

    Can you please confirm the details of the challenge you’re experiencing? Is it that some of your theme’s required scripts are not loading while the Afterpay plugin is activated? Is this only in conjunction with the WP Optimize plugin being activated?

    In order for the Afterpay team to assist with the investigation, they will need access to the WordPress environment where the behaviour can be replicated. However, we cannot exchange access details via a public forum. Thus, we request that you please complete the form to raise a private ticket.

    Thank you.

    Thread Starter avong

    (@avong)

    Hi @benfterpay,

    As per my original post, when Afterpay plugin is activated, it disabled my theme using standard WP function ‘wp_enqueue_scripts’ to include a custom JQUERY library . Please refer to the original for the detailed issue. This is happening without WP Optimize plugin active.

    Prior to the Afterpay plugin update, there wasn’t any issues so I believe there’s some QA issue.

    For simplicity and help you guys replicate, in our theme we ‘wp_deregister_script(“jquery”);’ and then ‘wp_enqueue_script( “jquery”, “//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js”, [], null, true );’. All subsequent JS files in our theme and other plugins (eg. WooCommerce) not longer gets enqueued if Afterpay plugin is activated, it’s fine when deactivated.

    Otherwise can you please advise how to complete their external Afterpay support form that ask all those questions like (Merchant ID, etc) which we do not have.

    Hi @avong,

    Thank you for providing the details to help replicate the challenge.

    The Afterpay plugin has been using the default jQuery library provided by WordPress as a dependency. For example: https://developer.www.ads-software.com/themes/basics/including-css-javascript/

    The engineering team will investigate further for potential improvement of compatibility. We will keep you posted if there is an update. Meanwhile, please consider rolling back to v3.6.1 of the plugin.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘3.70–3.71 updates still breaking our site and theme’ is closed to new replies.