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

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

Last modified: November 12, 2024