openprovider / Openprovider-WHMCS-domains

Openprovider WHMCS Domain Module
43 stars 31 forks source link

[BUG] "Country Code must be a string" #320

Closed BrowserApi closed 4 months ago

BrowserApi commented 4 months ago

Describe the bug

I completed all the steps as instructed in the README, but I'm receiving this error when I click Openprovider logo to import TLD lists.

To Reproduce

Utilities > Regisitrar TLD Sync > OpenProvider

Expected behavior Instead of Importing TLD, it is showing "Country Code must be a string"

1) I tried rebooting server 2) Tried with SandBox Credential and Live account credential 3) I tried adding 6+ Currencies in WHMCS with latest exchange rate (USD, EUR, INR etc..)

Screenshots Error: Screenshot 2024-06-19 192213 OpenProvider Module Log: Screenshot 2024-06-19 192324 System Module Log when this Error Occurs: Screenshot 2024-06-19 194715

Server info:

Additional context I already have some experience of installing OpenProvider for some client's WHMCS and it was working fine till this day.

BrowserApi commented 4 months ago

update: ISSUE SOLVED ✅

What i did to solve:

1) 'Deactivated' and 'Activated' OpenProvider again in 'System settings > Domain Registrars > OpenProvider'

2) Ran the cron "/modules/registrars/openprovider/cron/DomainSync.php" manually via url https:// { WHMCS URL } /modules/registrars/openprovider/cron/DomainSync.php

3) Then I ran the TLD Import cron via ssh 15 13 * php -d max_execution_time=0 modules/registrars/openprovider/cron/DownloadTldPrices.php 4) Tried Importing Again Utilities > Registrar TLD Sync > OpenProvider

Thats all.. Have a nice day!