VatCheck checkVies() fail + log fail because of 'Undefined variable'

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
sacha_smz
Posts: 41
Joined: 05 Jul 2019, 18:00

VatCheck checkVies() fail + log fail because of 'Undefined variable'

Post by sacha_smz » 11 Jul 2019, 13:22

Aimeos 2019.07.x-dev
ai-vatcheck 2019.07.x-dev
Laravel 5.5
PHP 7.2

Hello,

When using the vatcheck extension, I get an 'Unable to check the VAT ID against the VIES service' error and unfortunatly I can't get more information about this VIES error from the log because the variable $response is unknown on line 259 in VatCheck.php

Best regards

EDIT : removing the undefined variable allowed me to find this in the logs : 'VIES error: Sending CURL request failed'.
(It didn't work from here http://ec.europa.eu/taxation_customs/vi ... ponse.html either, so I guess the service is currently down)

nos3
Posts: 53
Joined: 01 Sep 2015, 13:26
Contact:

Re: VatCheck checkVies() fail + log fail because of 'Undefined variable'

Post by nos3 » 11 Jul 2019, 14:25

Hallo Sacha

We've initialized the variable in case of an error but as you've already seen, the problem is that the EU VIES service isn't available 24/7 and to be more precise, its far away from that. Therefore, the ai-vatcheck extension contains a configuration setting to allow orders even if the VIES system is down:

client/html/checkout/standard/address/vatcheck/strict = false

Best regards,


Norbert

Post Reply