CLI (PHP): configQuotas() call returns false

Hi, I’m facing a problem with API CLI (PHP: Axigen CLI API Documentation). I’m trying to get quotas info for account but calling configQuotas() always results false, configFilters() and configLimits() return false too.

Calling registryInformation() or configContactInfo() returns proper object.

Script looks like this:

require_once('./cli/10.4.0.0/AxigenCliApi/Axigen.php');

define('DEBUGPRINT', true);

$session = new Axigen();

$session->connect('x.x.x.x', '7000', 'xxx', 'xxx');

$domain = $session->updateDomain('my.local.domain.com');

$acc = $domain->updateAccount('accountName');

var_dump($session->axigenVersion());

var_dump($acc->name);

var_dump($acc->registryInformation()['mboxSize']);

var_dump($acc->configQuotas());

and output result is:

string(20) "10.4.36|Linux|x86_64"
string(7) "accountName"
int(1264325)
<pre>Backtrace:
823924/GrN8T7 >> Debug::generateMessage(823924/GrN8T7) - .\cli\10.4.0.0\AxigenCliApi\axi_Debug.php:66
823924/GrN8T7 >> Debug::makeError(1,Unable to load account quotas) - .\cli\10.4.0.0\AxigenCliApi\axi_Debug.php:58
823924/GrN8T7 >> Debug::checkError(null,_p_quotas,1,99) - .\cli\10.4.0.0\AxigenCliApi\axi_Account.php:185
823924/GrN8T7 >> Account->configQuotas() - .\axi\axi.php:25
</pre>bool(false)

Calling config quotas through CLI (telnet) works fine.

Tested on Windows 11 (64bit), PHP 8.2.16, Axigen API CLI 10.4.0.0.

Hello,

Could you please post:
1/ the PHP script that is generating the error
2/ the associated error backtrace
3/ the associated CLI logs (please set CLI service Log level to Protocol Communication)

so we could have a consistent set of data?

BR,
Ioan

Cli log shows that execution of CONFIG QUOTAS and SHOW was succesfull:

2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: << <domain-account#> CONFIG QUOTAS
2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: >> +OK: command successful
2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: << <domain-account-quotas#> SHOW
2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: >> general parameters for the quotas context:

2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: >> totalMessageSize = 2097152 [explicit, overrides inherited value: 1048576]
2024-08-27 11:34:52 +0200 16 poczta CLI:000EEA74: >> +OK: command successful
debug.log (563 Bytes)
cli.log (11.2 KB)

Coulnd’t add 3 attachments in prev post, attaching script now

script.txt (453 Bytes)

Managed to check behaviour on Axigen Server v10.5.25 and Axigen CLI API v10.5.2.0 on the same platform as mentioned earlier and configQuotas() returns proper result (object not false). Unfortunately CLI API v10.5.2.0 isn’t compatible with Axigen Server v10.4.36 so I can’t switch to newer api to check if it is working fine with Axigen Server v10.4.36.

Is there any newer version of CLI API in 10.4 branch? CLI API v10.4 is missing here Download Additional Modules | Axigen only v10.5.2 and v10.3.2 appear.

1 Like

Hello Pawel,

Thank you for your response and for the provided information.

Please find the Axigen CLI Api 10.4.9 that fixes this behavior on our website at:

by clicking on “Show Previous Versions” button.

Thank you.

Best regards,
Bogdan Maxim

Updated version works perfectly, thanks.