Jono Posted July 8, 2021 Report Posted July 8, 2021 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'; } } Michael 1 Quote
5 Star Plugins Posted July 9, 2021 Report Posted July 9, 2021 Please add this page link to the Release Notes: 5.1.0 - Support - Confluence (blesta.com) I had to go on Discord to learn about this issue. Quote
Paul Posted July 9, 2021 Report Posted July 9, 2021 1 hour ago, PressWizards said: Please add this page link to the Release Notes: 5.1.0 - Support - Confluence (blesta.com) I had to go on Discord to learn about this issue. Done, thanks! Quote
Kurogane Posted July 9, 2021 Report Posted July 9, 2021 How to install Domain Manager Plugin? at least version 4 not exist not sure if version 5.0 you add it. How is suppose to install 4.x to 5.1.0. Quote
Paul Posted July 9, 2021 Report Posted July 9, 2021 26 minutes ago, Kurogane said: How to install Domain Manager Plugin? at least version 4 not exist not sure if version 5.0 you add it. How is suppose to install 4.x to 5.1.0. If you install 5.1 fresh you'll have the domain manager. If you upgrade to 5.1, then you need to install the domain manager under Settings > Company > Plugins > Available. If upgrading to 5.1.0 you should install the domain manager or you'll experience the above mentioned bug. That will be resolved in 5.1.1 so that it's not required to be installed. Quote
Kurogane Posted July 9, 2021 Report Posted July 9, 2021 So is not pre-requisite to install before to install 5.1 and i can install after upgraded. Quote
Jono Posted July 12, 2021 Author Report Posted July 12, 2021 Just want to note here that if you don't sell domains you can remove the client card and nav links for the Domain Manager under Settings > Company > Look and Feel > Layout/Navigation. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.