netwood Posted September 1, 2023 Share Posted September 1, 2023 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 0 Quote Link to comment Share on other sites More sharing options...
wsa Posted September 1, 2023 Share Posted September 1, 2023 Your developer need to fix this prevent_aes_encrypt.php to work with PHP 8.1 0 Quote Link to comment Share on other sites More sharing options...
netwood Posted September 1, 2023 Author Share Posted September 1, 2023 Thanks for your reply. WHMCS is the developer I guess. Have not done any modifications to any scripts. Any suggestions what I can do to fix it? Jonas 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 1, 2023 Share Posted September 1, 2023 1 hour ago, netwood said: WHMCS is the developer I guess. Have not done any modifications to any scripts. That is not a script created by WHMCS so you must have made a modification. 1 Quote Link to comment Share on other sites More sharing options...
netwood Posted September 3, 2023 Author Share Posted September 3, 2023 Most have been some old plugin that was enabled at some point. I disabled it and now PHP 8.1 works fine. Thanks for the help. Jonas 0 Quote Link to comment Share on other sites More sharing options...
bear Posted September 3, 2023 Share Posted September 3, 2023 9 hours ago, netwood said: Most have been some old plugin that was enabled at some point. Likely. That AES issue was the major flaw from back in 2013, if memory serves. By changing user details to a specific string WHMCS could be tricked into revealing admin details. Nasty business, that. 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.