[WHM API 1] createacct, invalid value “fr” for the “language”

Delmore

Member
Nov 24, 2021
15
2
3
France
cPanel Access Level
Root Administrator
Hello guys,

My company have been using the WHM API 1 for a while now, working like a charm :-D. However since today, we are facing an issue when we want to create new cPanel accounts. It appears that the 'fr' code language given in query params is no longer recognized.

At first, I thought the API entrypoint changed but the documentation about it is the same as before :

languagestring
The account's default locale.
Note:
  • This value is case-sensitive.
  • For region-specific locales, use the ISO 639-1 code, an underscore (_), and the ISO 3166-1 code.

Example: language=en

And this is what we get under $apiResponse['metadata']['reason'] :
'Invalid value “fr” for the “language” setting.

Thanks.

EDIT: I'm using 'cpmod' => 'paper_lantern', maybe it has something to do with that considering this theme is deprecated (need to test)
EDIT2: Tested with 'cpmod' => 'jupiter', issue is still the same
 
Last edited:

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
131
20
93
Houston
cPanel Access Level
Root Administrator
  • Like
Reactions: Delmore