Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.2.2
-
Component/s: None
-
Labels:None
Description
An error occurs when provisioning a service after upgrading Plesk to 2.14.0.
An internal error occurred. The module row is unavailable.
This happens because the module row has no account limit set.
To resolve
if (version_compare($current_version, '2.14.1', '<')) { if (!isset($this->ModuleManager)) { Loader::loadModels($this, ['ModuleManager']); } // Update all module rows to set limits $modules = $this->ModuleManager->getByClass('plesk'); foreach ($modules as $module) { $rows = $this->ModuleManager->getRows($module->id); foreach ($rows as $row) { $meta = (array)$row->meta; if (empty($meta[$this->module_row_field_limit])) { $meta[$this->module_row_field_limit] = ''; $meta[$this->module_row_field_total] = 0; $this->ModuleManager->editRow($row->id, $meta); } } } }