1. Saulius
  2. EU VAT Compliant
  3. Wednesday, August 28 2024, 09:22 AM
  4.  Subscribe via email
When I edit user data and try to save, I get an error:

Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /path/to/your/system/library/owc/owceuvat.php(194) : eval()'d code(1) : eval()'d code:685
Stack trace:
#0 /path/to/your/system/library/owc/owceuvat.php(194) : eval()'d code(1) : eval()'d code(685): in_array()
#1 /path/to/your/storage/modification/admin/controller/customer/customer.php(1168): OwcEUVat->checkEUVatCountry()
#2 /path/to/your/storage/modification/admin/controller/customer/customer.php(82): ControllerCustomerCustomer->validateForm()
#3 /path/to/your/storage/modification/system/engine/action.php(79): ControllerCustomerCustomer->edit()
#4 /path/to/your/admin/controller/startup/router.php(26): Action->execute()
#5 /path/to/your/storage/modification/system/engine/action.php(79): ControllerStartupRouter->index()
#6 /path/to/your/system/engine/router.php(67): Action->execute()
#7 /path/to/your/system/engine/router.php(56): Router->execute()
#8 /path/to/your/system/framework.php(179): Router->dispatch()
#9 /path/to/your/system/startup.php(104): require_once('...')
#10 /path/to/your/admin/index.php(19): start()
#11 {main} thrown in /path/to/your/system/library/owc/owceuvat.php(194) : eval()'d code(1) : eval()'d code on line 685
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Please go to extension page in the admin and save again the settings.
Will made a fix later.
Comment
There are no comments made yet.
Add Comment
Saulius Accepted Answer
0
Votes
Undo
Hi,
after updating to V3.17, the autofill data from VIES stopped working.
Now, it returns blank data and shows the following error: 'PHP Warning: Undefined array key "vatnumber" in ../system/library/owc/owceuvat.php(194) : eval()'d code(1) : eval()'d code on line 3292.
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Please donwload the latest 3.17 version from shop.openwebcreations.eu!
Comment
There are no comments made yet.
Add Comment
Saulius Accepted Answer
0
Votes
Undo
Hi,
I downloaded the latest 3.17 OCMOD version from shop.openwebcreations.eu, performed a fresh installation of OpenCart 3.0.4.0, and encountered the same error in the log:

PHP Warning: Undefined array key 'vatnumber' in ../system/library/owc/owceuvat.php(194) : eval()'d code(1) : eval()'d code on line 3292

https://www.restoranu.eu/test/admin/

Login: demo
Password: demo
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 4
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Is autofill data from VIES working in 3.17?

I uploaded a smal fix with same 3.17 version, for the log warning, it was only a logging issue, not a functionality issue.
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 5
Saulius Accepted Answer
0
Votes
Undo
Hello, Dennis,

I have discovered an issue that has been troubling me for a while. When the postal code requirement is enabled, the extension doesn't work properly – the received data is not displayed in the fields. When I disable the postal code requirement, everything works perfectly. I am using OC 3.0.4.0.

Please help resolve this issue so that the postal code requirement works together with the data autofill function.

Thank you!
Attachments (1)
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 6
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

I change the postcode validation and now it is not base on 'Postcode Required' field.

Please download 3.18 version.
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 7
Saulius Accepted Answer
0
Votes
Undo
Hi, Dennis,
after the account registration, all data is saved - OK, but address_2 and postal code are not visible/displayed in the Account (Front end)
Everything is fine in the Admin.
Attachments (2)
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 8
Dennis Buijs Accepted Answer
0
Votes
Undo
Check version 3.19.

Sorry for the issues :(
Comment
There are no comments made yet.
Add Comment
  1. one week ago
  2. EU VAT Compliant
  3. # 9
Saulius Accepted Answer
0
Votes
Undo
Hi, Dennis,
When a customer (front end) tries to save edited information, the following error occurs: 'Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given...' It seems that an array is being passed to the trim() function instead of a string, causing this issue.
Additionally, when the customer tries to update to the New the VAT code, nothing happens. :(
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Grr, PHP 8 issues, redownload version 3.19.
Comment
There are no comments made yet.
Add Comment
Saulius Accepted Answer
0
Votes
Undo
Hi, Dennis,

When the customer (front end) changes the VAT code, the data from VIES is retrieved and displayed correctly, but the other fields such as address_2 and post_code are not cleared and still show the previous company's data. In the admin - everything works perfectly :)
Comment
There are no comments made yet.
Add Comment
Dennis Buijs Accepted Answer
0
Votes
Undo
Hi

Yes, when you switch between vat numbers, it is not clearing address_2 and postcode fields. This will not happy very much.
I tested everything with different vat numbers, and saw this issue also, but the fix that I made was also that it clearing both fields when same vat number is used :-(, so I changed it back.

In the backend when you do a recheck of the same vatnumber, address_2 and postcode are cleared. So this is different then the frontend but I think ok.

I will check later to find a solution for both situations in the frontend, that switching beteen vat numbers WILL reset address_2 and postcode.
Comment
There are no comments made yet.
Add Comment
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Welcome

Categories

OpenCart Free Extension
  1. 1 post
  2. 2 subcategories
OpenCart Commercial Extension
  1. 71 posts
  2. 17 subcategories
Sales & Billing
  1. 0 posts
  2. 2 subcategories
Welcome
  1. 6 posts
  2. 2 subcategories

Recent Discussions

OWC EU VAT Compliant v3.15 - ocmod bug
When I edit user data and try to save, I get an error: Fatal error: Uncaught ...
173 Hits
0 Votes
Posted on Wednesday, August 28 2024, 09:22 AM
Very Critical BUG: Swiss VAT IDs are accepted as V
Hello, the Extensions incorrectly accepts Swiss Tax numbers as valid VAT numb...
166 Hits
0 Votes
Posted on Tuesday, August 27 2024, 12:55 PM
The buyer does not see second address and postal c
The buyer does not see the Administrator's modified second address and postal co...
204 Hits
0 Votes
Posted on Tuesday, August 20 2024, 11:06 AM
the extension incorrectly displays the company nam
For example, VIES correctly displays the company name as MB "Restoranų įran...
235 Hits
0 Votes
Posted on Saturday, August 17 2024, 03:06 PM
  • Resolved
  • Does not enter automatically and does not allow yo
    Hello, When registering an account (on checkout) - it doesn't allow me to conf...
    210 Hits
    0 Votes
    Posted on Saturday, August 17 2024, 01:42 PM
  • Resolved