When create subscription for admin user, the follwoing error appears: Internal error: wrong client id: 0

Created:

2016-11-16 13:03:08 UTC

Modified:

2017-08-16 17:34:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

When create subscription for admin user, the follwoing error appears: Internal error: wrong client id: 0

Applicable to:

  • Plesk 11.x for Linux

Symptoms

When create subscription for admin user, the follwoing error appears in the Plesk GUI:

Internal error: wrong client id: 0

Message wrong client id: 0
File UserClient.php
Line 18
Type PleskFatalException

Cause

Wrong OwnerId for "admin" user is set in Plesk database.

Resolution

  1. Find Id of "admin" user:

    mysql> select id,login from clients where type='admin';
    +----+-------+
    | id | login |
    +----+-------+
    | 1 | admin |
    +----+-------+
    1 row in set (0.00 sec)
  2. Check the "smb_users" table, make sure that "ownerId" corresponds to admin ID:

    mysql> select id,login,ownerId from smb_users where login='admin';
    +----+-------+---------+
    | id | login | ownerId |
    +----+-------+---------+
    | 1 | admin | 1 |
    +----+-------+---------+
    1 row in set (0.17 sec)

If it is set to NULL as below:

mysql> select id,login,ownerId from smb_users where id=1;
+----+-------+---------+
| id | login | ownerId |
+----+-------+---------+
| 1 | admin | NULL |
+----+-------+---------+
1 row in set (0.00 sec)

Set to the proper owner ID, for example, for admin user:

mysql> update smb_users set ownerId=1 where id=1;
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0

mysql> select id,login,ownerId from smb_users where id=1;
+----+-------+---------+
| id | login | ownerId |
+----+-------+---------+
| 1 | admin | 1 |
+----+-------+---------+
1 row in set (0.00 sec)
Have more questions? Submit a request
Please sign in to leave a comment.