Articles in this section

Some operations in Acronis Backup extension in Plesk fail: Declaration of Modules_AcronisBackup_OperationsListAdapter::count() must be compatible with CommonPanel_View_List_Paginator_Array::count(): int

Plesk for Linux kb: technical

Symptoms

On a Plesk server with Plesk Obsidian 18.0.51 Update 1, some operations in the extension Acronis Backup fail:

PLESK_ERROR: ERROR: Declaration of Modules_AcronisBackup_OperationsListAdapter::count() must be compatible with CommonPanel_View_List_Paginator_Array::count(): int (OperationsListAdapter.php:120)

Cause

Bug in the Acronis Backup extension CI-22922.

Previously, it was written like this:

Bug in the Acronis Backup extension CI-22922 which is planned to be fixed in the upcoming version 1.8.

However, Acronis Backup is already 1.8.7 but the bug CI-22922 is not mentioned in the change log of that extension.

Resolution

Until the bug is fixed, apply the following workaround:

  1. Connect to the server via SSH.

  2. Back up the original file OperationsListAdapter.php:

    # cp /usr/local/psa/admin/plib/modules/acronis-backup/library/OperationsListAdapter.php{,.backup}

  3. Download the patched file attached to this article:

    # wget https://support.plesk.com/hc/en-us/article_attachments/13753279190167/OperationsListAdapter.php

  4. Replace the current file with the downloaded one:

    # mv -f OperationsListAdapter.php /usr/local/psa/admin/plib/modules/acronis-backup/library/OperationsListAdapter.php

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.