[Skip to main content](#vessel-content)

#   Block registration with VAT number not valid

##

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

2 years 3 months ago [\#362814](#362814) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362814 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")* was created by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")*

-- url of the page with the problem -- : [ dev.shangshungpublications.com/](https://dev.shangshungpublications.com/)
-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.2
-- PHP version -- : 8.2
-- Browser(s) name and version -- : All

Hi,
I've set the Hikashop configuration with "Online check" on "VAT number check" option.
if I make a registration with a fake VAT generated with this site [ www.generate-vat-number.com/](https://www.generate-vat-number.com/) , Hikashop permits my registration with this error message:

**The VAT number you entered is not valid
Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.**

Is it possible to block the registration if the VAT number is not valid?
Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

2 years 3 months ago [\#362817](#362817) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362817 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,

Note that it seems that you're using HikaShop 5.0.4, not the 5.1.0

I was able to reproduce the issue on your website, however, when I try on my local test website with HikaShop 5.1.0, I'm not able to reproduce the problem. I do get blocked when the VAT number is invalid.

So the first thing I would recommend is updating your HikaShop. And if that still doesn't help, we'll need a backend and a FTP access in order to check things out.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

2 years 3 months ago [\#362849](#362849) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  Replied by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362849 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,
I've update the Hikashop version to 5.1.0. I've the same problem. I've made a registration with a fake VAT and I've received the same error message.

The VAT number you entered is not valid
Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

2 years 3 months ago [\#362850](#362850) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362850 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,

As I said, I'm not able to reproduce the issue on my local website with HikaShop 5.1.0.
We'll need to investigate directly on your website.
Please provide a backend access and a FTP access via our contact form:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

2 years 3 months ago [\#362852](#362852) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362852 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,

Thanks for the accesses.

So the "VAT number not valid" message is displayed by 4 pieces of code in HikaShop. Two in the administrator/components/com_hikashop/classes/user.php and two in administrator/components/com_hikashop/helpers/vat.php
You can search for them with the translation key "VAT_NUMBER_NOT_VALID".
With the FTP access you provided, I've added a writeToLog call in each of these places. This is supposed to add some debug information in the "payment log file" of HikaShop, available in the "Files" section of the HikaShop configuration page in the backend.
I've run a test after this, and nothing came up in the log.
I made sure that I was editing the files of the correct website by temporarily adding an echo to the main index.php file.
So either this "VAT number not valid" message is not displayed by HikaShop but something else on your website, like a custom plugin, or the PHP files are cached and the code changes are not yet taken into account (which shouldn't be the case, since the change in the index.php was taken into account directly ).
I saw a coopweb plugin installed which isn't something standard. I wanted to look at its code but it seems I got banned from the FTP server for some reason. So I had to stop my debugging.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

2 years 3 months ago [\#362858](#362858) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  Replied by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362858 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,
you are not yet banned, now you can login in via FTP. Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

2 years 3 months ago [\#362866](#362866) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  Replied by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#362866 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi,
I've tried in a test site with only installed Joomla 5.1.4 and Hikashop 5.1.0 and I've got the same issue. I can register a user with a fake VAT number generated with this site [ www.generate-vat-number.com/](https://www.generate-vat-number.com/)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")**
- [![nico1979's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31330-nico1979 "View nico1979's Profile") Topic Author
- [ Offline](/forum/user/31330-nico1979)

Less More

- Posts: 78
- Thank you received: 6
-
-

2 years 2 months ago [\#363235](#363235) by [nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")  Replied by *[nico1979](/forum/user/31330-nico1979 "View nico1979's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#363235 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hi, any news about this issue. It's very urgent!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

2 years 2 months ago -  2 years 2 months ago [\#363244](#363244) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Block registration with VAT number not valid](/forum/33-customers/908530-block-registration-with-vat-number-not-valid#363244 "-- url of the page with the problem -- :   dev.shangshungpublications.com/  -- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.1.2 -- PHP version -- : 8.2 -- Browser(s) name and version -- : All  Hi, I've set the Hikashop configuration with &quot;Online check&quot; on &quot;VAT number check&quot; option. if I make a registration with a fake VAT generated with this site   www.generate-vat-number.com/  , Hikashop permits my registration with this error message:  The VAT number you entered is not valid Your account has been created and an activation link has been sent to the e-mail address you entered. Note that you must activate the account by clicking on the activation link in the e-mail that you receive before you can login.  Is it possible to block the registration if the VAT number is not valid? Thank you")*

Hello,

There are something that blocking us in many ways, first the debbuging is very difficult and even maybe impossible, maybe due to the "**coopweb**" plugin.
And now, when I try to reach your plugins manager I get this :
[ ![alt](https://i.ibb.co/FVJw0fr/image.png) ](https://i.ibb.co/FVJw0fr/image.png "alt")

Coopweb or another plugin, so far we don't know... But we're still stuck with something really unusual

All this means that progress on your problem is really not easy, see perhaps this has a link with the very cause of the problem?
Please, desactivate **coopweb** plugin and any any uneceeseray plugin that can impact the whole backend process or we will obviously achieve nothing...

Sorry for this late returns.
Regards

Last edit: 2 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2N1c3RvbWVycy85MDg1MzAtYmxvY2stcmVnaXN0cmF0aW9uLXdpdGgtdmF0LW51bWJlci1ub3QtdmFsaWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.068 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
