• Resolved alexislevrai

    (@alexislevrai)


    Hello,

    After updating Mollie for WP I facing an error when I add a product in cart :

    Fatal error: Uncaught Error: Undefined class constant ‘VERSION’ in
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/vendor/mollie/mollie-api-php/src/MollieApiClient.php:287 Stack trace: #0
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/src/Mollie/WC/Helper/Api.php(45): Mollie\Api\MollieApiClient->__construct() #1
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/src/Mollie/WC/Helper/Data.php(341): Mollie_WC_Helper_Api->getApiClient(true) #2
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/src/Mollie/WC/Gateway/Abstract.php(2143): Mollie_WC_Helper_Data->getApiPaymentMethods(true, true, Array) #3
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/src/Mollie/WC/Gateway/Abstract.php(319): Mollie_WC_Gateway_Abstract->isAvailable in
    /homepages/wordpress/wp-content/plugins/mollie-payments-for-woocommerce-aaa/vendor/mollie/mollie-api-php/src/MollieApiClient.php on line 287

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hey there @alexislevrai ,

    The issue is a version conflict between the library GuzzleHttp version 6 and 7.
    We found that one plugin potentially causing this conflict was WooCommerce Bookings.
    Our plugin will soon be updated to prevent dependency conflicts like this in the future.

    In the meantime, we have received reports that mollie 5.8.3. works well with the most recent WooCommerce Bookings version. Please let me know if this works for you as well.

    Kind regards,
    Niklas

    Thread Starter alexislevrai

    (@alexislevrai)

    Hi @niklasinpsyde

    Right, I’m using woocommerce booking.
    So I’m happy to read that you are already informed about this bug, and that the problem don’t come from me ??

    So I will wait for the next update, the bug appeared on the pre-production website so I can wait.

    Thank you for your quick reply !
    Alexis

    Hello,

    Here the same issue and 5.8.3 is not working in my case.

    If there a fast solution possible?

    Regards,
    Alex

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hello @mediablocks,

    We are working to resolve this issue. But since we will implement this change into a variety of plugins, it will take a little bit more time for our final implementation.

    In the meantime we have created a test package which you can download here. The download link will be removed once our new implementation is released.
    Before you install the package, please create a site backup. We have received reports that for some customers this test package resolved all issues, but for others some issues remained.

    I will keep all threads realting to this issue updated with our progress.
    Thanks for letting us know.

    Kind regards,
    Niklas

    Hello,

    This one is working voor me.

    Regards,
    Alex

    Hi !

    I have the same problem but your fix doesn’t work for me :/
    Do you have another fix, or another way to fix this error ?

    Thanks,

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hello @eduxpw,

    I’m sorry to hear that neither a downgrade to Mollie version 5.8.3 nor our test package could solve the issue in your case. Can your please also try to downgrade WooCommerce Subscriptions to version 1.15.21? We have received multiple reports that this version works well with Mollie 5.8.3.
    Please let me know if this helps.

    We are currently preparing our next release which is planned for early next week.
    Since this issue is more complex than anticipated, we were not able to include our final implementation in this next update and will push it as an additional update later on.
    So for now and a short period after our next update, we still recommend using Mollie 5.8.3 if you rely on Subscriptions.

    Kind regards,
    Niklas

    michaellammers

    (@michaellammers)

    Update unfortunately didn’t fix the problem… I still have this error with configuration:
    – Woocommerce Bookings 1.15.29
    – Mollie-betalingen voor WooCommerce 5.10.0

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @michaellammers,

    Our new release version 5.10.0 does not include a fix for the conflict with Bookings yet. The fix will be included in our next update.
    In the meantime we still recommend using either Mollie 5.8.3 or the test package I have linked in my earlier message if you rely on WooCommerce Bookings.
    I will keep all related threads updated as soon as we have a better solution.
    Thanks!

    Kind regards,
    Niklas

    michaellammers

    (@michaellammers)

    Thanks @niklasinpsyde. Quick update: Have once again tried with 5.8.3. version, but unfortunately it crashes with the same error.
    Hope for solution soon, since the current working config has older plugins which is a potential security risk.
    Thanks so far, will check here regularly. ??

    michaellammers

    (@michaellammers)

    I’ve noticed an update to 5.11.0. Does this fix the issue @niklasinpsyde? I wanted to check first since it’s not mentioned (as far as I can see).

    loekzanders

    (@loekzanders)

    Hi both!

    Unfortunately, I am experiencing the same issue.
    I checked in with the helpdesk at WC already, but they are redirecting me to you/Mollie.

    Relevant plug-ins I am working with are:

    ### Active Plugins (29) ###
    Mollie Payments for WooCommerce: by Mollie – 5.11.0
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.4
    WooCommerce Bookings: by WooCommerce – 1.15.27
    WooCommerce Multilingual: by OnTheGoSystems – 4.10.3
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.7.2
    WooCommerce: by Automattic – 4.7.1

    Looking forward to an update!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @michaellammers & @loekzanders,

    Unfortunately this issue is very complex to solve, that’s why the latest version 5.11.0 does not yet include a fix for the issue.
    Our next version is scheduled for sometime early december and we hope to be able to include the fix for this issue with it. We are making good progress but had a couple of setbacks, that’s why it’s taking so long. But we are commited to resolve this once and for all.

    Mollie 5.8.3 should work in combination with WooCommerce Bookings 1.15.21 if you are still experiencing the issue with the package I have provided in this thread.
    As I have said before, I will update all related threads, once we have a solution ready for you.
    Thank you so much for bearing with us!

    Kind regards,
    Niklas

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hello @alexislevrai, @mediablocks, @eduxpw, @michaellammers & @loekzanders

    Thank you so much for your patience regarding this issue.
    We have created a new Mollie version, which should resolve this issue for now.
    The core problematic is very complex to solve for good, that means this fix is not yet our final implementation and we will continue to work on it.
    But at least, it should work properly for now. ??

    Please download the new Mollie version from this link here and give it a try:
    https://drive.google.com/file/d/1uUQx7I9UYodGKxRzAyeS40znL0Ru04ox/view?usp=sharing

    So far, our internal tests with WooCommerce Bookings and Simple Calender were successful.
    But we of course appreciate your feedback regarding this fix, so we can potentially include it in our next regular update in the first half of december, in case we cannot get our final implementation done in time.
    Thank you so much!

    Kind regards,
    Niklas

    Thread Starter alexislevrai

    (@alexislevrai)

    @niklasinpsyde

    Thanks for the update !
    I prefer to wait for the final fix ??
    Can you please notify us when it will be shipped ?

    ++

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Undefined class constant ‘VERSION’’ is closed to new replies.