Jump to content

Plesk links not working anymore (Customer with external id 'whmcs_plesk_123' is not found in panel)


Recommended Posts

WHMCS creates a customer in Plesk and then adds subscriptions to the same customer. Which is cool but also creates confusion, but this is another story.

 

Anyway, I noticed that when a customer views its service in WHMCS, instead of showing the login button to the panel, he now gets an error message: Customer with external id 'whmcs_plesk_123' is not found in panel.

So I checked the WHMCS database and there is the mod_pleskaccounts table... It is full of whmcs_plesk_xyz entries, they all don't work. Weirdly enough, the newest customer to signup actually has a GUID instead of whmcs_plesk_xyz, and that one works.

 

I noticed that in the plesk table "clients", te "external_id" column is actually empty, except for the newer couple of customers, which have a GUID in there. Did Plesk change something on its side? If I put whmcs_plesk_xyz in the external_id field manually in the Plesk database, the links work again.

But what should I do to fix the issue for all customers? Generate GUIDs? Or just put the whmcs_plesk_xyz style values instead?

 

Anyone had this issue?

Edited by Hal9000
Link to comment
Share on other sites

  • WHMCS Support Manager

Hi,

Activating the Plesk module creates a table in the WHMCS database called mod_pleskaccounts. This table contains the WHMCS client ID, the account type (shared, reseller etc) and a 'panelexternalid' value.

This panelexternalid value needs to match up with the "External ID" value stored on the customer record on the Plesk server, and if it does, the hosting account will be added to the existing account on the server.

If there is no entry for the client, or there is no match, it will be provisioned under a new customer within Plesk.

 

As for the message which is displayed to client's second accounts, that is something implemented by Plesk at their end. I'm sure their development team will welcome your feedback on how that behaviour can be changed in future: https://github.com/plesk/whmcs-plugin

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...

The external-id is actually the uuid returned by GetClientsDetails API call...

$client = localAPI('GetClientsDetails', ['clientid' => $userid, 'stats' => true ], 'admin-username');
$external_id = $client['uuid'];

You can use that value to ask plesk for the login details and build a auto-login button.

Hope this helps someone.

Link to comment
Share on other sites

  • 2 weeks later...
On 1/5/2018 at 10:07 AM, yabdab said:

The external-id is actually the uuid returned by GetClientsDetails API call...


$client = localAPI('GetClientsDetails', ['clientid' => $userid, 'stats' => true ], 'admin-username');
$external_id = $client['uuid'];

You can use that value to ask plesk for the login details and build a auto-login button.

Hope this helps someone.

To follow up,  only new accounts created in WHMCS use the uuid value. All account created previously still use the whmcs_plesk_# naming convention.

Only the devs seem to know this, since all support techs have no idea.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated