We log search terms to improve our documentation. For more information, read our Privacy Policy.


TypeError covertIniSize Errors

Problem

When accessing support tickets or areas of WHMCS with file attachments, you see the following error:

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 > System > PHP Info.

Solution

This troubleshooting information only applies to self-hosted WHMCS installations.

Edit the applicable php.ini file on your server to specify a valid post_max_size value.

Last modified: 2025 November 27