Error on tax rules

  • artax
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #150428 by artax
Error on tax rules was created by artax
Hi there,
I've done what explained in the documentation on tax rules (EU).
I noticed that if I do what told at point 3:

Go to Membership Pro => Configuration, look at EU VAT Number field config option (at the right) and select the custom field which you setup in step #2 above

when I try to process the subscription I get this error:
Code:
Argument 2 passed to Joomla\Http\Http::get() must be of the type array, null given, called in /var/www/html/my_site/components/com_osmembership/helper/euvat.php on line 304
and this prevents the transaction to get processed.

If I leave the EU VAT field blank, everything seems to work fine.

Could it be a bug?
Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150441 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error on tax rules
Hello

That looks strange to me. Could you please submit a support ticket sending us super admin account and link to subscription form so that I can check to see what's causing the error and get it sorted?

Tuan

Please Log in or Create an account to join the conversation.

  • artax
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #150447 by artax
Replied by artax on topic Error on tax rules
Thanks Tuan,
my site is still on my local server though.
You don't get the same error message?

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150458 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error on tax rules
No, I don't. Could you check and let me know what's the PHP version which you are using?

And try to get this attached file, upload it to components/com_osmembership/helper folder to see if it helps ?

Tuan

Please Log in or Create an account to join the conversation.

  • artax
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 5 months ago #150459 by artax
Replied by artax on topic Error on tax rules
Hi Tuan,
I am using php 7.3...coming to think of it I know I should upgrade to 7.4...
Yes, your file fixed that issue for now, I will keep testing and I'll let you know in case of other issues.
Thank you very much,
Have a good day.

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #150460 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Error on tax rules
Strange I don't see the issue, even on PHP 8. However, from code point of view, I think the error could happens, so I will include this fix in next release of the extension

Tuan
The following user(s) said Thank You: artax

Please Log in or Create an account to join the conversation.