• In the file mollie-payments-for-woocommerce/src/Assets/AssetsModule.php, line 289 calls registerBlockScripts() directly inside woocommerce_init, which fires during init. The registerBlockScripts method calls MollieCheckoutBlocksSupport::localizeWCBlocksData → chain leading to wc_get_order before post types are registered.

    wc_get_order throws a _doing_it_wrong error when called before post types are registered. The Mollie plugin calls this too early during woocommerce_init, which can cause a fatal PHP error that kills the page.

    The fix: remove line 289 since the wp_enqueue_scripts hook at line 313-317 already handles this registration safely (with the duplicate-check guard).

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @arnevanhoorn

    Could you give this package a try? https://mollie.inpsyde.com/deactivated_in_blocks_v2

    We already shared it for a bit of a different issue, but firstly, we’d like to get confirmation whether it fixes the problem in your case. Let me know once you’ve had a chance to test it so we can confirm whether it solves the problem on your end.

    Kind Regards,
    Krystian

    Thread Starter arnevanhoorn

    (@arnevanhoorn)

    Hi Krystian,

    Unfortunately this doesn’t resolve the problem. If i comment out line 289 of src/Assets/AssetsModule.php the problem is fixed but I’m not sure what the consequences of that are.

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @arnevanhoorn

    As a last step, could you please temporarily disable all plugins except WooCommerce and Mollie, then try updating again and check if the issue still occurs?

    We would like to rule out the possibility of a simple plugin conflict before investigating this further. If the issue still persists after disabling the other plugins, please let us know.

    Kind Regards
    Krystian

    Thread Starter arnevanhoorn

    (@arnevanhoorn)

    The problem only occurs with another plugin. We use “WooCommerce Print Invoices & Packing Lists”. After the Mollie plugin update, we cannot print invoices/packing lists anymore. When commenting out line 289, the printing does work again.

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @arnevanhoorn

    Please follow these steps to share your system status report with us:

    1. Navigate to the WooCommerce / Status section in your site’s admin panel.
    2. Click on the Get system report button and then click Copy for support.
    3. Paste the report into our PrivateBin.
    4. After uploading, please share the link here so we can review the details thoroughly.

    I did some tests on my side with Print Invoices and Packing Lists for WooCommerce 3.14.2 together with Mollie 8.1.4, and I was not able to reproduce the issue. Because of that, it would be helpful to confirm the exact plugin version and source you are using.

    Kind regards,
    Krystian

    Thread Starter arnevanhoorn

    (@arnevanhoorn)

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @arnevanhoorn

    Could you please double check that the issue is definitely caused only by the two plugins (Mollie and WooCommerce Print Invoices & Packing Lists) and not by something else on the site?

    I tried reproducing the problem on my side but was not able to replicate it so far. Because of that, it would help a lot if you could also share the full error stack from the logs. The complete stack trace often provides more context.

    Kind Regards
    Krystian

    Thread Starter arnevanhoorn

    (@arnevanhoorn)

    Hi @inpsydekrystian,

    I disabled all plugins except for WooCommerce, Mollie and WooCommerce Print Invoices & Packing Lists. The problem wasn’t there anymore. I enabled each plugin one by one and I see that the WooCommerce Subscriptions plugin together with the other 3 cause the issue.

    Is there a way I can send you a screenshot privately?

    Plugin Support Krystian Syde

    (@inpsydekrystian)

    Hello @arnevanhoorn

    In most cases, there is usually one specific plugin causing the conflict multi-plugin conflicts can happen, but they are relatively rare.

    Regarding screenshots, for privacy reasons it’s best to share them directly with Mollie support here:
    https://www.mollie.com/contact/merchants

    Once we know the exact plugin combination, we’ll be in a much better position to investigate further.

    Kind Regards
    Krystian

Viewing 9 replies - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.