centralnicgroup-opensource / rtldev-middleware-whmcs

CentralNic's WHMCS Software Bundle
https://centralnicreseller.com
Other
40 stars 15 forks source link

Transfersync failing #168

Closed mhmuc1 closed 3 years ago

mhmuc1 commented 3 years ago

I updated to the latest version today. The domainsync doesn't work anymore since I updated.

Failure-Message: [WHMCS Application] ERROR: Error: Object of class WHMCS\Domains\Domain could not be converted to string in /MYPATHTOWHMCS/modules/registrars/ispapi/lib/sdk/src/APIClient.php:406 Stack trace: #0 /MYPATHTOWHMCS/modules/registrars/ispapi/lib/sdk/src/APIClient.php(406): preg_replace() #1 /MYPATHTOWHMCS/modules/registrars/ispapi/lib/sdk/src/APIClient.php(472): HEXONET\APIClient->flattenCommand() #2 /MYPATHTOWHMCS/modules/registrars/ispapi/lib/Ispapi.php(416): HEXONET\APIClient->request() #3 /MYPATHTOWHMCS/modules/registrars/ispapi/lib/DomainTransfer.php(76): WHMCS\Module\Registrar\Ispapi\Ispapi::call() #4 /MYPATHTOWHMCS/modules/registrars/ispapi/ispapi.php(3109): WHMCS\Module\Registrar\Ispapi\DomainTransfer::getSuccessLog() #5 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Module/AbstractModule.php(0): ispapi_TransferSync() #6 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Module/Registrar.php(0): WHMCS\Module\AbstractModule->call() #7 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Cron/Task/DomainTransferSync.php(0): WHMCS\Module\Registrar->call() #8 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Cron\Task\DomainTransferSync->__invoke() #9 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Scheduling/Task/AbstractTask.php(0): WHMCS\Scheduling\Task\AbstractTask->execute() #10 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Scheduling\Task\AbstractTask->run() #11 /MYPATHTOWHMCS/vendor/whmcs/whmcs-foundation/lib/Cron/Console/Command/AbstractCronCommand.php(0): WHMCS\Cron\Console\Command\AbstractCronCommand->executeCollection() #12 /MYPATHTOWHMCS/vendor/symfony/console/Command/Command.php(255): WHMCS\Cron\Console\Command\AbstractCronCommand->execute() #13 /MYPATHTOWHMCS/vendor/symfony/console/Application.php(912): Symfony\Component\Console\Command\Command->run() #14 /MYPATHTOWHMCS/vendor/symfony/console/Application.php(264): Symfony\Component\Console\Application->doRunCommand() #15 /MYPATHTOWHMCS/vendor/symfony/console/Application.php(140): Symfony\Component\Console\Application->doRun() #16 /MYPATHTOWHMCS/crons123456/cron.php(0): Symfony\Component\Console\Application->run() #17 {main} {"exception":"[object] (Error(code: 0): Object of class WHMCS\Domains\Domain could not be converted to string at /MYPATHTOWHMCS/modules/registrars/ispapi/lib/sdk/src/APIClient.php:406)"} []

KaiSchwarz-cnic commented 3 years ago

Please update to the latest version of our ISPAPI Registrar Module. We fixed this in the meanwhile. If it still persists, follow-up please - I'll then reopen your issue.

Find the latest version for download here (v4.6.4).

mhmuc1 commented 3 years ago

Hi Papakai,

thank you for the quick reply. I have the latest WHMCS and the latest version of the ISPAPI installed. However the API-calls seem to be working (Module Debug Log), but not transfered into WHMCS. Transfers are still pending even though they were transfered days ago....

Let me know if you need further details. Thank you very much

KaiSchwarz-cnic commented 3 years ago

Have things changed since then? WHMCS just covers 50 domains per Sync Run, that's why it leaves maybe the impression of things might not be working.

mhmuc1 commented 3 years ago

There are successful "normal" syncs, but the issue comes up every time the transfers are synced. The sucessfully transfered domain are still labled with "transfer pending" and the dates aren't updated.

KaiSchwarz-cnic commented 3 years ago

That's really strange tbh. Is there a chance to get access to your WHMCS Admin Area and Server (cPanel / SSH)? If so, please create a new support ticket here for further processing and share your credentials there.

If not, please provide screenshots - ISPAPI Registrar Module Setting (as entry point!).

mhmuc1 commented 3 years ago

I can't give you the access, because you'll be able to access client data. I checked the WHMCS module logs. It's definitly the transfer-sync, becuase there are no other module-actions at the time where the email with the error-message was sent.

There are 3 transfer-sync actions in the log for a single domain. All completed sucessfully as it seems with code 200. There should be 2 more domains with pending transfer, but they don't appear in the logs. I guess the module stops due to the error.

Thank you for your help

temp_whmcs1

KaiSchwarz-cnic commented 3 years ago

ty, can you also provide the affected domain names?

KaiSchwarz-cnic commented 3 years ago

Never mind, I found the issue. Patch is currently rolling out.

KaiSchwarz-cnic commented 3 years ago

:tada: This issue has been resolved in version 4.6.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

KaiSchwarz-cnic commented 3 years ago

Find the direct download link here.

Sorry for the inconveniences caused + many thanks for reporting.

HTH!