Bobcares

WeSupport

Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

WHMCS error code 1013 – How to fix

by | May 26, 2021

Stuck with WHMCS error code 1013? We can help you.

WHMCS allows setting up servers for Plesk Hosting Accounts in Plesk 11-12. This error is usually seen while doing the setup.

Here at Bobcares, we often handle requests from our customers to fix similar WHMCS errors. Today we will see how our support engineers fix this for our customers as a part of our Server Management Services.

Causes and Fixes for WHMCS error code 1013

We will see some of the common causes along with the methods to fix this issue.

To set up a Plesk package, we have to go do the following steps:

1. First, go to Configuration ()
2. Then take System Settings
3. Now, go to Products/Services (prior to WHMCS 8.0) Setup > Products/Services > Products/Services.

While accessing the Plesk account that is set up using these package, we may get some errors. One of them is shown below:
Error message: Customer with email 'bobwins@example.com' is not found in panel. Please contact your service provider
There are two potential causes of this error message:

1. The product type not set correctly in WHMCS.

This means that a reseller plan is configured as a shared hosting product in WHMCS or vice versa.

Following are the steps to resolve this:

1. Firstly, we have to log in to WHMCS Admin Area

2. Then navigate to Configuration () and take System Settings

3. From there go to Products/Services

4. And we must review the Product Type settings.

5. Here we must ensure to adjust to Shared Hosting or Reseller Hosting to match the Plesk plan type.

6. Finally, we can click Save Changes.

2. Missing data from a table inside Plesk.

The error could also happen due toexternal_id entry missing in psa.clients MySQL table.

Users may also notice that they cannot access Plesk from WHMCS via API as a customer or cannot change passwords. Furthermore, we will get either of the two errors given below:
Error code: 1013. Error message: Customer with external id 'whmcs_plesk_XX' is not found in panel.
or
Error code: 1013. Error message: Customer with email 'bobwins@example.com' is not found in panel. Please contact your service provider.
Following are the steps to fix this:

1. Firstly, log in to the server via SSH

2. Then, create a backup of the psa database.

We can use the following command for this:

# plesk db dump > psa.current.sql

2. Then, access Plesk database from the command line using the following command:

# plesk db

3. After that update the following value:

update clients set external_id='whmcs_plesk_XX' where login='bobwins';

For several accounts

If we are facing this error for multiple accounts we can do the following to fix this.

1. Firstly,  we need to list all orphaned client accounts:

select id,cname,pname,login from clients where parent_id = 1 and (external_id = NULL or external_id = '0' or external_id = '') and clients.type <> 'reseller';

2. Then create a file with all external_id extracted from the WHMCS database.

3. After that log in to the WHMCS database via PHPMyAdmin or via MySQL CLI and list all external_id:

SELECT tblhosting.username, mod_pleskaccounts.panelexternalid FROM mod_pleskaccounts, tblhosting where mod_pleskaccounts.userid = tblhosting.userid and tblhosting.username <> '';

Further steps for Linux

1. We have to back up the Plesk database. For this we can use the following command:

# plesk db dump psa > psa.current.sql

2. Then we have to prepare a file with logins of the customers and external IDs separated by spaces:cat customers.txt
cus1 f8fc8a02-870a-483a-8de7-2f2cf6d16ace
edjhlbrh 1d0fa7bc-ecd8-4689-9931-99146b22a657

3. And take the ID and customer login from the customers.txt file. After that, set IDs for clients with the appropriate logins using the following:

while read i j; do plesk db "update clients set external_id='$j' where login='$i'"; done < customers.txt

4. Finally, check the result in psa.clients the table:

# plesk db “select pname,login,external_id from clients” +——————-+———-+————————————–+ | pname | login | external_id | +——————-+———-+————————————–+ | Administrator | admin | NULL | | SomeCustomer | cus1 | f8fc8a02-870a-483a-8de7-2f2cf6d16ace | | whmcsReseller | res | 1d0fa7bc-ecd8-4689-9931-99146b22a657 | +——————-+———-+————————————–+

Further steps for Windows

1. We must first back up the Plesk database:

C:\> plesk db dump psa > psa_backup.sql

2. After that we must prepare a file with logins of the customers and external IDs separated by spaces:
C:\> more customers.txt
cus1 f8fc8a02-870a-483a-8de7-2f2cf6d16ace
edjhlbrh 1d0fa7bc-ecd8-4689-9931-99146b22a657

3. Then take the ID and customer login from the customers.txt file and set IDs for clients with the appropriate logins:
C:\> for /f "usebackq tokens=1,2" %a in (customers.txt) do plesk db "update clients set external_id='%b' where login='%a'

4. Finally, we can check the result in psa.clients table:

C:\> plesk db “select pname,login,external_id from clients” +——————-+———-+————————————–+ | pname | login | external_id | +——————-+———-+————————————–+ | Administrator | admin | NULL | | SomeCustomer | cus1 | f8fc8a02-870a-483a-8de7-2f2cf6d16ace | | whmcsReseller | res | 1d0fa7bc-ecd8-4689-9931-99146b22a657 | +——————-+———-+————————————–+

[Need assistance? We can help you]

Conclusion

In short, we saw how our Support Engineers fix WHMCS error code 1013 for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF