ilhamrizqi Posted April 1, 2016 Share Posted April 1, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
dEbo Posted April 11, 2016 Share Posted April 11, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 15, 2016 WHMCS Support Manager Share Posted April 15, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.