sandermangel / rkvatfallback

Adds free fallback VAT check services to the default Mage 1.7+ VAT check
9 stars 3 forks source link

Loads of error in log file. #16

Open marcwales opened 3 years ago

marcwales commented 3 years ago

Hi,

I'm a very happy user of the VAT fallback systme you've created for many years, but i'm facing a lot of error today. In my log i gat this : 2020-11-23T12:42:48+00:00 ERR (3): Recoverable Error: Argument 1 passed to Redkiwi_Rkvatfallback_Model_Service_Regex::getRegexMapping() must be an instance of string, string given, called in /chroot/home/directory/mydomain.fr/html/app/code/community/Redkiwi/Rkvatfallback/Model/Service/Regex.php on line 12 and defined in /chroot/home/directory/mydomain.fr/html/app/code/community/Redkiwi/Rkvatfallback/Model/Service/Regex.php on line 26 2020-11-23T12:42:48+00:00 ERR (3): Recoverable Error: Argument 2 passed to Redkiwi_Rkvatfallback_Model_Service_Regex::validateVATNumber() must be an instance of string, string given, called in /chroot/home/directory/mydomain.frhtml/app/code/community/Redkiwi/Rkvatfallback/Model/Validator.php on line 66 and defined in /chroot/home/directory/mydomain.fr/html/app/code/community/Redkiwi/Rkvatfallback/Model/Service/Regex.php on line 10 2020-11-23T12:42:48+00:00 ERR (3): Recoverable Error: Argument 2 passed to Redkiwi_Rkvatfallback_Model_Validator::cleanVatNumber() must be an instance of string, string given, called in /chroot/home/directory/mydomain.fr/html/app/code/community/Redkiwi/Rkvatfallback/Model/Validator.php on line 38 and defined in /chroot/home/directory/mydomain.fr/html/app/code/community/Redkiwi/Rkvatfallback/Model/Validator.php on line 80

I've tried to change the setting back to "Use built in VIES validation" but no luck, i keep getting 20 errors per minute.

Hope you can help me. Rgds, Marc

peterjaap commented 3 years ago

I guess you're running PHP 5.6 or 5.7? The type hinting is only for PHP 7. Also see https://stackoverflow.com/questions/4103480/how-to-resolve-must-be-an-instance-of-string-string-given-prior-to-php-7

Maybe upgrade to PHP 7?

marcwales commented 3 years ago

Hi Peter,

Thank you for your fast response. Yes i'm using php 5.6 for the magento 1.8, php 7 not being compatible. By using the setting "Use built in VIES validation" i was hoping this would override the module and re-use the VIES default system ? Or do i need to disable the module entirely ?

Rgds, Sidney

peterjaap commented 3 years ago

Easiest to disable it entirely.

On Mon, 23 Nov 2020 at 15:35, marcwales notifications@github.com wrote:

Hi Peter,

Thank you for your fast response. Yes i'm using php 5.6 for the magento 1.8, php 7 not being compatible. By using the setting "Use built in VIES validation" i was hoping this would override the module and re-use the VIES default system ? Or do i need to disable the module entirely ?

Rgds, Sidney

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sandermangel/rkvatfallback/issues/16#issuecomment-732201067, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADJKAESMVBFMEZC3DEWGBLSRJXMHANCNFSM4T7P3OKA .

marcwales commented 3 years ago

Thanks ;)