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);
}
}
}
}
Activity
| Field | Original Value | New Value |
|---|---|---|
| Rank | Ranked higher |
| Sprint | 5.3.0 Sprint 4 [ 145 ] |
| Rank | Ranked lower |
| Assignee | Abdy Franco [ abdy ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Remaining Estimate | 0 minutes [ 0 ] | |
| Time Spent | 19 minutes [ 1140 ] | |
| Worklog Id | 15398 [ 15398 ] |
| Status | In Progress [ 3 ] | In Review [ 5 ] |
| Resolution | Fixed [ 1 ] |
| Status | In Review [ 5 ] | Closed [ 6 ] |