'Object of class Ip_Address could not be converted to string' error when updating DNS records

Created:

2016-11-16 13:17:57 UTC

Modified:

2017-04-24 11:40:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

'Object of class Ip_Address could not be converted to string' error when updating DNS records

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

The following error is shown in Parallels Plesk when attempting to set an IP address that is not registered in Plesk's IP Adresses menu for any A record on a domain:

PHP Catchable Fatal Error: Object of class Ip_Address could not be converted to string
Line: 1054
File: /usr/local/psa/admin/plib/Dns/Manager/Common.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(4096, Object of class Ip_Address could not be converted to string, /usr/local/psa/admin/plib/Dns/Manager/Common.php, 1054
...
#13 DNSSyncUIPointer->accessItem(GET, ) called at [/usr/local/psa/admin/plib/UIPointer.php:619]
#14 UIPointer->access(GET) called at [/usr/local/psa/admin/htdocs/plesk.php:36]

Cause

Such behavior is considered a software issue and is planed to be fixed in future releases. The internal ID regarding the matter is PPPM-1879 .

Resolution

The issue is caused by excessive entries in Plesk database related to domain aliases. In order to work around the issue, domain aliases should be re-created on the domain that is affected. You may use the attached script to automate the process:

cd /root
wget http://kb.plesk.com/Attachments/kcs-35883/recreate_aliases.sh
chmod +x ./recreate_aliases.sh;sed -i 's/\\r//' ./recreate_aliases.sh
./recreate_aliases.sh domain.com

Please replace domain.com with the actual domain name.

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