Difference between revisions of "License Troubleshooting"
Line 9: | Line 9: | ||
*The directory you are using has changed<br /> | *The directory you are using has changed<br /> | ||
Following any changes to the location of your WHMCS installation, the licence must be updated accordingly. Please refer to [[Licensing#Moving_WHMCS|Moving WHMCS]] for instructions on doing so. | Following any changes to the location of your WHMCS installation, the licence must be updated accordingly. Please refer to [[Licensing#Moving_WHMCS|Moving WHMCS]] for instructions on doing so. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Caveat for Shared and Reseller Hosted Customers=== | ===Caveat for Shared and Reseller Hosted Customers=== |
Revision as of 23:31, 21 February 2018
If you are encountering a licensing error when accessing your WHMCS installation's administration area, this could indicate that the license needs updating or a server configuration issue is preventing a connection to our license server. This page details the most common errors and provides some suggested resolutions.
Contents
- 1 License Invalid
- 2 Specific Errors
- 2.1 Required function base64_decode is not available
- 2.2 Required function is not available
- 2.3 Curl Error: Couldn't resolve host (6)
- 2.4 Curl Error: Couldn't connect to host (7)
- 2.5 Curl Error: Problem with the SSL CA cert (path? access rights?) - 77
- 2.6 Curl Error: error setting certificate verify locations
- 2.7 Other Curl Error Codes
License Invalid
A Licence Invalid error on the admin login page can be caused by one of the following changes:
- The license key has been entered incorrectly
Please ensure the full key is entered, this includes the prefix eg. "Leased-", "Owned-", "WebHost-" and "Dev-".
- The domain being used to access your install has changed
- The IP address your install is located on has changed
- The directory you are using has changed
Following any changes to the location of your WHMCS installation, the licence must be updated accordingly. Please refer to Moving WHMCS for instructions on doing so.
Some hosting providers may operate very restrictive environments, which results in a No Connection error despite the aforementioned test returning a successful result.
In this situation, we have found that changing the PHP version to 7 resolves the error. Instructions for doing this are located here: https://www.hostgator.com/help/article/php-configuration-plugin
Specific Errors
Required function base64_decode is not available
This error indicates that your server has the required base64_decode function disabled in your PHP configuration. Please adjust your website's PHP configuration so as to enable the base64_decode function.
It may be necessary for the function to be added at the server level, in which could contacting your server admin/hosting provider may be required:
- https://documentation.cpanel.net/display/EA4/EasyApache+4+Home
- https://docs.plesk.com/en-US/onyx/administrator-guide/web-hosting/php-management.70668/
Required function is not available
This error will appear when a necessary CURL function has not been installed on your server or is disabled in the configuration. The error message will specify the required function which has been disabled, eg:
- curl_init
- curl_setopt
- curl_exec
- curl_getinfo
- curl_error
- curl_close
All of these functions must be installed and enabled on your server in order to properly validate your license:
You may need to reach out to your web host or systems administrator to resolve this.
Curl Error: Couldn't resolve host (6)
A CURL code 6 error indicates an inability for your DNS to resolve the WHMCS licensing server. This could indicate a temporary issue with your DNS provider, or a longer-term misconfiguration.
If these points have been eliminated, check your Zone files for the presence of an entry for whmcs.com and remove it if found.
Curl Error: Couldn't connect to host (7)
A CURL code 7 error indicates an inability to connect to the WHMCS licensing server. This is typically caused by a firewall configuration. CURL uses port 443 for secure connections, so ensure that connections are permitted on this port.
Curl Error: Problem with the SSL CA cert (path? access rights?) - 77
Curl Error: error setting certificate verify locations
Outdated Root CA Bundles
The license validation is made via an SSL connection. This helps to ensure the security and integrity of your license.
Errors can occur when placing the CURL call using the "curlopt_ssl_verifypeer" function if your server does not have the appropriate root certificate authority (CA) bundles to validate the SSL connection to our licensing server. This can be caused by the CA bundle files being missing or outdated.
Note: This error does not relate to the validity or existence of an SSL certificate on your own website. The CA bundles referred to here are located on the server side at root level.
Frequently updated CA Root Certificates are available from your Operating System's repository or the cURL website at https://curl.haxx.se/docs/caextract.html
If you are unsure how to check for these certificates or update them, it is best to contact your web host or systems administrator for assistance.
Other Curl Error Codes
Other CURL error codes are detailed in the official documentation at https://curl.haxx.se/libcurl/c/libcurl-errors.html