Jump to content

Version 6.3 raises ''InvalidArgumentException'


ilhamrizqi

Recommended Posts

I developed simple provisioning module for WHMCS. This module worked fine on version 6.2.2. But it raises 'InvalidArgumentException' when the module making a call to localAPI() with 'getclientsproducts' as function name.

http://docs.whmcs.com/API:Get_Clients_Products#External_API

 

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Invalid "{"language":"","fullName":" ","countryName":null}" locale.' in /usr/local/www/sandiloka.com/html/members/vendor/symfony/translation/Symfony/Component/Translation/Translator.php:437 Stack trace: #0 /usr/local/www/sandiloka.com/html/members/vendor/symfony/translation/Symfony/Component/Translation/Translator.php(247): Symfony\Component\Translation\Translator->assertValidLocale(Object(WHMCS\User\Client)) #1 /usr/local/www/sandiloka.com/html/members/vendor/symfony/translation/Symfony/Component/Translation/Translator.php(210): Symfony\Component\Translation\Translator->getCatalogue(Object(WHMCS\User\Client)) #2 /usr/local/www/sandiloka.com/html/members/vendor/illuminate/support/Illuminate/Support/Facades/Facade.php(217): Symfony\Component\Translation\Translator->trans('custom_field.72...', Array, 'dynamicMessages', Object(WHMCS\User\Client)) #3 /usr/local/www/sandiloka.com/html/members/includes/classes/WHMCS/CustomField.php(0): Illuminate\Support\F in /usr/local/www/sandiloka.com/html/members/includes/classes/WHMCS/Terminus.php on line 0

 

I have reported this issue to WHMCS via ticket. But those guys still cannot address the problem and blame my code. Please check the stack trace, you will see the exceptions raises by their code.

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

had the same issue, also with own provisioning module.

 

The problem is in getclientsproducts.php shipped in v6.3, not int your code...

Replace that file with the one from v6.2.2, or previous and will be fixed. Also reported to whmcs and they confirmed it.

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

I'm pleased to advise this is resolved in v6.3.1:

 

CORE-9918 - Ensure GetClientsProducts returns product custom fields in client's language

http://docs.whmcs.com/Changelog:WHMCS_V6.3.1

 

So you may apply the v6.3.1 patch set: http://download.whmcs.com

 

My apologies for the inconvenience caused.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated