Guides & TutorialsTroubleshootingTroubleshooting Support ToolsTroubleshooting a TypeError: Return value of convertIniSize() must be of the type int Error

Troubleshooting a TypeError: Return value of convertIniSize() must be of the type int Error

Symptom

When accessing support tickets or areas of WHMCS with file attachments, you may encounter a TypeError: Return value of convertIniSize() must be of the type int Error, float returned error message:

TypeError: Return value of convertIniSize() must be of the type int Error, float returned in /path/to/whmcs/includes/functions.php

Cause

The PHP configuration that WHMCS uses contains an invalid post_max_size value.

You may be able to review the current value within WHMCS at Utilities > PHP Information.

Solution

Edit the applicable php.ini file on your server to specify a valid post_max_size value. For more information, see PHP's configuration documentation.

After you configure a valid value, the error will resolve immediately.

You may need to contact your system administrator or hosting provider for help making this server PHP configuration change.