Upgraded PHP to 8.1.
I searched the community but did not find an answer.
When I try to edit anything on a clients profile page - in the admin section - I get the following PHP errors:
TypeError: array_map(): Argument #2 ($array) must be of type array, null given in /home/XXXXX/includes/hooks/prevent_aes_encrypt.php:21
Stack trace:
#0 /home/XXXX/includes/hooks/prevent_aes_encrypt.php(21): array_map('strtolower', NULL)
#1 [internal function]: prevent_AES_ENCRYPT(Array)
#2 /home/XXXXX/vendor/whmcs/whmcs-foundation/lib/Hook/Manager.php(0): call_user_func('prevent_AES_ENC...', Array)
#3 /home/XXXXX/vendor/whmcs/whmcs-foundation/lib/Hook/Manager.php(0): WHMCS\Hook\Manager->run('ClientDetailsVa...', Array)
#4 /home/XXXXX/vendor/illuminate/support/Facades/Facade.php(261): WHMCS\Hook\Manager->validate(Object(WHMCS\Validate), 'ClientDetailsVa...', Array)
#5 /home/XXXXX/includes/functions.php(0): Illuminate\Support\Facades\Facade::__callStatic('validate', Array)
#6 /home/XXXXX/admin/clientsprofile.php(0): run_validate_hook(Object(WHMCS\Validate), 'ClientDetailsVa...', Array)
#7 {main}
It works fine with PHP 7.4
Please advice.
Jonas