You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Openprovider cron sync feature is deprecated since version 5.3 of the Openprovider domain module, and is not recommended for versions WHMCS 8+. We suggest that you use the WHMCS native domain sync and do not use the Openprovider custom sync for WHMCS 8 and higher.
Thats ok, but the Configuration::getOrDefault is used on more locations than only in the deprecated domain sync.
So the bug also applies to all the other Configuration::getOrDefault that provide a default value and have a false setting.
I have re-opened this issue and will have our developers check this.
We use the domain sync cronjob:
modules/registrars/openprovider/cron/DomainSync.php
And this uses the
process_domains
method where it loads the configuration settingshttps://github.com/openprovider/Openprovider-WHMCS-domains/blob/master/modules/registrars/openprovider/src/DomainSync.php#L149
However this method contains a bug
https://github.com/openprovider/Openprovider-WHMCS-domains/blob/master/modules/registrars/openprovider/src/Configuration.php#L51
If the setting is false the default value is returned because of these lines:
So our configuration contained
false
forsyncExpiryDate
But the default value in the process_domains code is
true
.So now all our expirydates are updated which we didn't want.
So the correct code should be something like:
The text was updated successfully, but these errors were encountered: