Skip to content

v2.1.1 — turn off a resource-limits call the server refuses

Choose a tag to compare

@bradleygb bradleygb released this 23 Aug 08:06
· 25 commits to main since this release

Added

apply_resource_limits in config.php (default on).

The product's inode, open-file and process limits are applied through account/udp after a package change, and a refusal there has always been non-fatal — the package still moves. But some servers refuse that call with Account/UPD granted in API Manager, which put a failed call and a warning into the WHMCS Module Log on every package change, for a grant that could not be obtained.

Set it to false on such a server and the call is not made:

'apply_resource_limits' => false,

The three limits then come from the CWP package alone, and must be set in the panel if they matter.

CWP checks that call internally as accout_upd — its own typo, and the same string the API Manager checkbox saves, so the two do agree. The check itself lives in encoded code, so there is no way to see from outside which condition is failing. If your server refuses it, this is the switch.

Upgrading

Replace the directory contents. No configuration changes are required; the default behaviour is unchanged.