Jump to content

PHP 8.1 error with WHMCS 8.7.3


netwood

Recommended Posts

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

 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated