whmcs
whmcs copied to clipboard
Max Players variable and WHMCS quantity slider problem
My max_players variable has rule: required|integer|max:32
, and in Configurable Options i use quantity
(slider), when i try downgrade player slots with existing service lower or higher i received error:
Array
(
[errors] => Array
(
[0] => Array
(
[code] => DataValidationException
[status] => 500
[detail] => Data integrity exception encountered while performing database write operation. {"variable_value":["The variable value must be a string."]}
)
)
[status_code] => 500
)
If change rule to string
, it says error:
Array
(
[errors] => Array
(
[0] => Array
(
[code] => ValidationException
[status] => 422
[detail] => The Max Players variable must be a string.
[meta] => Array
(
[source_field] => environment.MAX_PLAYERS
[rule] => string
)
)
)
[status_code] => 422
)
If i change Configurable Options from quantity
to dropdown
menu, all good. Is it problem with WHMCS module?
Any response?
yes