• Resolved pvwij

    (@pvwij)


    On my website the Mollie payment is not working anymore. After clicking on the pay butoor I get an error “Er heeft zich een kritieke fout voorgedaan op deze site.”

    Woocommerce Mollie payment is is still working so the api key is ok.

    In the server log I see:

    PHP message: PHP Fatal error: Uncaught Error: Class ‘Composer\\CaBundle\\CaBundle’ not found in /var/www/clients/client49/web121/web/wp-content/plugins/mollie-payments-for-woocommerce/vendor/mollie/mollie-api-php/src/HttpAdapter/CurlMollieHttpAdapter.php:81, referer:

    Kind regards,

    Patrick

Viewing 1 replies (of 1 total)
  • Plugin Author Franky

    (@liedekef)

    It seems 2 plugins use the same Mollie libs, so only one can win. In your case this seems to be woocommerce, but it seems not the whole Mollie class is included.
    This is the code from EME:

       if (!class_exists('Mollie\Api\MollieApiClient')) {
               require_once 'payment_gateways/Mollie/2.39.0/vendor/autoload.php';
       }
       $mollie = new \Mollie\Api\MollieApiClient();

    meaning that only if the class “Mollie\Api\MollieApiClient” doesn’t already exist, EME tries to load its own. Since woocommerce seems to win (bsed on your error), EME won’t create the class again and thus uses the one from woocommerce. You can see in EME that it provides the needed files, in payment_gateways/Mollie/2.39.0/vendor/composer/ca-bundle. But apparently the woocommerce implementation does not but still refers to it. I don’t have woocommerce, so you should probably talk to them (or the woocommerce mollie plugin) about this issue … I checked that plugin and the required cabundle files are not provided, so mayb there’s a reason for that …

Viewing 1 replies (of 1 total)
  • The topic ‘Mollie payment not working’ is closed to new replies.