• Resolved manu225

    (@manu225)


    Hi,

    I just open this topic to share an issue i had and how to solve it.

    I have many customers are’nt able to complete their order both with Paypal and Stripe.
    There was an error on checkout page like “Internal server error” or “Error processing checkout. Please try again”.
    After checking the logs on my server, i found that the issue come from a division by zero:
    [15-Oct-2022 10:37:08 UTC] PHP Fatal error: Uncaught DivisionByZeroError: Division by zero in /home/xxxx/wp-content/plugins/woocommerce-eu-vat-assistant/src/plugin-main.php:804
    And i found why this error is thrown: in the settings of the plugin, in Currency tab, the field “Exchange rate” for my second currency was empty. I m not using the exchange rate option of the plugin, but just by puting “1” in the field and saving settings, the error disappear and payment working again.

    So hope this topic will help people with the same issue 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    The issue occurred because you’re using a multi-currency plugin that is not supported by the EU VAT Assistant. Due to that, the plugin can’t fetch the list of enabled currencies from it, and it can’t fetch the exchange rate for them. This issue is discussed in more detail here, together with a possible solution: https://wordpress.org/support/topic/faq-eu-vat-assistant-and-multiple-currencies/

    Adding a manual exchange rate to the settings is a possible workaround, but please keep in mind that the rate should be an official one, as the EU VAT Assistant will use it to produce VAT reports. We don’t recommend entering “1”, unless that’s actually the correct rate.

    Important
    The EU VAT Assistant reached its end of life in June 2022 and we can no longer provide support for it. We are keeping it available for users who still use it, and might need to access its code, but we would recommend to contact your developers if you need assistance tweaking it.

    Thread Starter manu225

    (@manu225)

    Okay thanks for the information. I didn’t know that this plugin isn’t updated anymore.

    Plugin Author Diego

    (@daigo75)

    We announced the retirement of te EU VAT Assistant in January 2022. The plugin also displayed several notices, between January and today, to inform shop administrators about its end of life. Unfortunately, we had to do that, due to the lack of funding and resources for its development.

    At the moment, we keep the EU VAT Assist available for the convenience of the existing users, who might want to keep using it. Someone with a skilled developer could also maintain the plugin by themselves. From our side, we simply check if the plugin still works with the latest WooCommerce, but we can’t implement new features or provide support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error on checkout page’ is closed to new replies.