Plesk DNSZone.php error

If you get the following error while managing a domain in parallels plesk control panel

=====

0: /usr/local/psa/admin/plib/dns/DNSZone.php:49
DNSZone->DNSZone(string ‘1′)
1: /usr/local/psa/admin/plib/common_func.php3:2875
objectMaker(string ‘DNSZone’, string ‘1′)
2: /usr/local/psa/admin/plib/dns/DNSManager.php:39
DNSManager::getDNSZone(string ‘1′)
3: /usr/local/psa/admin/plib/dns/DNSManager.php:75
DNSManager::getDefaultDNSZone()
4: /usr/local/psa/admin/plib/dns/DNSManager.php:104
DNSManager::syncDNSZoneAdminEmail(string ‘plesk@white.nl’, string ‘plesk2@white.nl’)
5: /usr/local/psa/admin/htdocs/server/admin_ed.php3:88
admin_ed(array, array, array)
6: /usr/local/psa/admin/htdocs/server/admin_ed.php3:171

====

chances are that you have manually removed some entry from the psa database

Please insert the following into the psa database dns_zone table

mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa

and exacute

INSERT INTO `dns_zone` (`id`, `name`, `displayName`, `status`, `email`, `type`, `ttl`, `ttl_unit`, `refresh`, `refresh_unit`, `retry`, `retry_unit`, `expire`, `expire_unit`, `minimum`, `minimum_unit`) VALUES (1, ‘yourserver.domain.com’, ‘yourserver.domain.com’, 1, ‘plesk@white.nl’, ‘master’, 86400, 1, 10800, 1, 3600, 1, 604800, 1, 10800, 1);

Please note that the field id has to be replaced by whatever is shown in DNSZone->DNSZone(string ‘id’) in the error report

You can also find the bad domain name by executing the following command

select * from domains where dns_zone_id=’id’;

where id has to be replaced by the id you get in error report

Posted under plesk

This post was written by Anoop Alias on May 13, 2008

Tags: ,

Leave a Comment

Name (required)

Email (required)

Website

Comments

More Blog Post