• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

I can not remove one domain

kaesar

Basic Pleskian
Hello,

When I try remove one domain, I get this error:

Dashboard preset used by user failed: DashboardPreset: unable to select: no such row in the table

0: /opt/psa/admin/plib/class.PhDomain.php:431
PhDomain->reset(integer '0', boolean true, boolean false)
1: /opt/psa/admin/plib/class.BsDomain.php:307
BsDomain->reset(integer '0')
2: /opt/psa/admin/plib/class.BsDomain.php:301
BsDomain->delete(integer '0')
3: /opt/psa/admin/plib/class.BsDomain.php:541
mdeleteDomains(array)
4: /opt/psa/admin/plib/class.Manager.php:352
Manager->removeDomains(array)
5: /opt/psa/admin/htdocs/domains/removeDomains.php3:44

I try the suggets in:

http://kb.odin.com/en/1360

But I have the same problem.
 
Hi,

this can happen due if a domain has reference to custom dashboard presets that really does not exist.

To find such domain the following command can be used:

mysql -uadmin -p`cat /etc/psa/.psa.shadow ` -D psa -e "select d.name,d.id, dp.param, dp.val, P.id from domains d, dom_param dp left join DashboardPreset P on P.id=dp.val where dp.param='custom_preset_id' and d.id=dp.dom_id and P.id is NULL"

let's say you got:

+----------------+---------------+----------------------+------+------+
| name | id | param | val | id |
+----------------+---------------+----------------------+------+------+
| domain.tld | 7 | custom_preset_id | 81 | NULL |
+----------------+---------------+----------------------+------+------+

remember "id" value from here
next you remove references to non-existing presets from dom_param, for example:

mysql> delete from dom_param where dom_id=7 and param='custom_preset_id'

I would also recommend to backup psa database before doing this.
 
Back
Top