Jump to content

ERROR: TypeError: round(): after update to PHP 8.1


LukePVD

Recommended Posts

  

Hi all

after the update, the daily cron  stopped executing, an error began to appear in the logs

The problem seems to be in the directadmin module

We are working on WHMCS ver.8.6.0  and PHP Version 8.1.12   (ionCube  12.0.1 )

please help 🙂

 

Link to comment
Share on other sites

error 

22/34 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░] 64% 13 mins/21 mins 24.0 MiB[WHMCS Application] ERROR: TypeError: round(): Argument #1 ($num) must be of type int|float, string given in /usr/share/nginx/html/whmcs/modules/servers/directadmin/directadmin.php:0 Stack trace: #0 /usr/share/nginx/html/whmcs/modules/servers/directadmin/directadmin.php(0): round('') #1 [internal function]: directadmin_UsageUpdate(Array) #2 /usr/share/nginx/html/whmcs/vendor/whmcs/whmcs-foundation/lib/Module/A

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