This error occurs when the new Domain Manager plugin is not install. To resolve, install the Domain Manager or perform the following code changes:
In core/Pricing/Modifier/Type/Description/Type/Domain/Domains.php around line 232 replace:
try {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($package_id);
$package = (isset($tld->tld) ? $tld->tld : $package);
} catch (Throwable $e) {
// Nothing to do
}
With
Loader::loadModels($this, ['PluginManager']);
if ($this->PluginManager->isInstalled('domains', \Configure::get('Blesta.company_id'))) {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($package_id);
$package = (isset($tld->tld) ? $tld->tld : $package);
}
In core/Pricing/Presenter/Items/Service/ServiceDataItems.php around line 139 replace:
try {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($packageId);
if (isset($tld->tld)) {
$fields['_data']['item_type'] = 'domain';
}
} catch (Throwable $e) {
// Nothing to do
}
With
Loader::loadModels($this, ['PluginManager']);
if ($this->PluginManager->isInstalled('domains', \Configure::get('Blesta.company_id'))) {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($packageId);
if (isset($tld->tld)) {
$fields['_data']['item_type'] = 'domain';
}
}
In core/Pricing/Presenter/Items/Service/ServiceItems.php around line 118 replace:
try {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($packageId);
if (isset($tld->tld)) {
$fields['_data']['item_type'] = 'domain';
}
} catch (Throwable $e) {
// Nothing to do
}
With
Loader::loadModels($this, ['PluginManager']);
if ($this->PluginManager->isInstalled('domains', \Configure::get('Blesta.company_id'))) {
Loader::loadModels($this, ['Domains.DomainsTlds']);
$tld = $this->DomainsTlds->getByPackage($packageId);
if (isset($tld->tld)) {
$fields['_data']['item_type'] = 'domain';
}
}