Cannot create a map file: Call to undefined method PleskRestoreIp::formatIp()

Created:

2016-11-16 12:49:31 UTC

Modified:

2017-04-24 12:10:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot create a map file: Call to undefined method PleskRestoreIp::formatIp()

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Cannot create a map file while moving a backup to a new server and restoring it using pleskrestore utility:

/usr/local/psa/bin/pleskrestore --create-map backup_info_1601180120.xml -map /root/plesk11_map.txt -ignore-sign
PHP Fatal error: Call to undefined method PleskRestoreIp::formatIp() in /opt/psa/admin/plib/backup/RestoreMapping.php on line 2087

Cause

Bug #PPPM-3922 . It is fixed in Plesk Onyx.

Resolution

Upgrade to the latest Plesk version .

If upgrade is not possible:

  1. Back up RestoreMapping.php file:

    # mv /usr/local/psa/admin/plib/backup/RestoreMapping.php /usr/local/psa/admin/plib/backup/RestoreMapping.php_orig
  2. Replace file /usr/local/psa/admin/plib/backup/RestoreMapping.php with the one from attachment .

Have more questions? Submit a request
Please sign in to leave a comment.