Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-4535

Plesk: Provision error after upgrade to 2.14

    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

        There are no comments yet on this issue.

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              14/Dec/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 19 minutes
              19m

                Agile