Error after update
-
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).
You must be logged in to reply to this topic.