whmcs icon indicating copy to clipboard operation
whmcs copied to clipboard

Max Players variable and WHMCS quantity slider problem

Open mouse1121 opened this issue 3 years ago • 2 comments

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?

mouse1121 avatar Sep 06 '21 21:09 mouse1121

Any response?

mouse1121 avatar Sep 12 '21 18:09 mouse1121

yes

threezix avatar Mar 23 '23 17:03 threezix