Amelia

Klarna Payment plugin fails

Date: November 16th, 2021


Manifestation:

A fatal error is displayed when Amelia is active and when trying to use WooCommerce's Klarna Checkout plugin. The checkout never loads, and it keeps spinning.

The error in the console may be similar to this:

Fatal error: Maximum execution time of 30 seconds exceeded in ../wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1898

Resolution:

Access your database and go to the wp_options table. In it, search for "amelia_settings" in the "option_name" column. That will return only one row, so I'll ask you to edit that, and in the JSON (under "option_value") search for "skipCheckoutGetValueProcessing". The default value is "false", so please change it to "true", so it looks like this:

"skipCheckoutGetValueProcessing":true

Please note that our development team has this task created in their "to-do" list, so hopefully, this will be resolved for good soon.

This change that you've applied in the database will not revert after you update the plugin.