General Troubleshooting
If you encounter errors or issues while working with WHMCS, see the sections below to start troubleshooting and resolve the issue.
- For general steps to troubleshoot problems in WHMCS, see Start Troubleshooting.
- For steps for additional Client Area-specific issues, see Troubleshooting the Client Area.
General Errors
You may encounter the following common issues:
Error or Issue | Cause | Next Steps |
404 Not Found: The requested URL was not found on this server. | There is a problem in your Friendly URLs configuration or your .htaccess file is out-of-date. | 404 Page Not Found Errors |
You are attempting to access the admin area via a directory that is not configured. or You are attempting to access the admin area via a directory that is different from the one configured. or You are attempting to access the admin area via a custom directory, but we have detected the presence of a default "admin" directory too. or The request path cannot be resolved. | You are attempting to access the wrong directory, there is a problem in your admin path configuration, or your admin directory is out-of-date. | Admin Directory Errors |
InvalidArgumentException: Dataset must be an array in /path/to/whmcs/vendor/whmcs/whmcs-foundation/lib/TableQuery.php:0 Stack trace: #0 /path/to/whmcs/vendor/whmcs/whmcs-foundation/lib/TableModel.php(0): WHMCS\TableQuery->setData(NULL) | The $mysql_charset value is incorrect in the configuration.php file. | Dataset Must Be Array Errors |
Down for Maintenance (Err2) | There is a mismatch between the database version and WHMCS version or PHP version. | Down for Maintenance Errors |
You created a custom /resources/country/countries.json file, but the expected changes do not occur. | The file contains an invalid syntax. The file must contain valid JSON syntax. | Missing Country Customizations |
An unknown error occurred | A third-party system or module provided a response that WHMCS cannot recognize or interpret. | Module Command Unknown Errors |
InvalidArgumentException: Query string must not include a URI fragment in /path/to/whmcs/vendor/zendframework/zend-diactoros/src/Uri.php:386 | A bot is crawling your website and trying to access an invalid URL. | Query String URI Errors |
You experience redirect loops while attempting to use WHMCS. | Your server or website is misconfigured. | Redirect Loops |
An error occurred while communicating with the server. Please try again | A problem is preventing communication with the WHMCS server. | Server Communication Errors |
The final column in your system’s log entries contains the server IP address instead of the admin’s or client’s IP address. | The IP address that the server configuration is supplying to PHP is incorrect. | Server IP Address in Logs |
Display Issues
You may encounter the following common issues:
Error or Issue | Cause | Next Steps |
The Admin Dashboard appears blank and widgets will not load. | There may be a problem with your system’s table collation values. | Blank Admin Dashboard |
The Choose a Domain page is blank in the Client Area. | You have not enabled any domain registration options. | Blank Choose a Domain Page |
A domain search returns no results and renders a blank page. | The system encountered an incorrect response type. | Blank Domain Search Results |
You encounter a blank or partially-rendered page. | There is a fatal PHP error. | Blank or Partially-Rendered Pages |
Pages in WHMCS are empty or content is missing. | A template file is missing or contains a syntax error. | Empty Pages |
Files and ionCube Encoding Errors
You may encounter the following common issues:
Error or Issue | Cause | Next Steps |
The file /path/to/whmcs/index.php is corrupted. | You are not using the required minimum version of ionCube Loader® or the file is unreadable. | Corrupt File Errors |
Oops! main(): Failed opening required '/path/to/whmcs/filename.php'... | A required file is missing. | Failed Opening Errors |
The file /home/username/public_html/path/to/whmcs/filename.php encoded as type [1/71] cannot be decoded by this version of the ionCube Loader. in Unknown on line 0 | A file is not compatible with your version of ionCube Loader®. | File Cannot Be Decoded Errors |
File Not Found | A file is not present or is not accessible at the expected location. | File Not Found Errors |
League\Flysystem\Exception: Impossible to create the root directory "/folder/path". in /path/to/whmcs/vendor/league/flysystem/src/Adapter/Local.php:106 | The system cannot read or write to the storage location for email attachments. | Impossible root Errors |
Fatal error: The file /home/username/public_html/whmcs/modules/gateways/ewayuk.php was encoded by the ionCube Encoder for PHP 5.3 and cannot run under PHP 7.0. Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 5.6. in Unknown on line 0 | There is a PHP version encoding error due to outdated file for a previous WHMCS version. | ionCube Fatal Decoding Errors |
Site error: the ionCube PHP Loader needs to be installed. This is a widely used PHP extension for running ionCube protected PHP code, website security and malware blocking. Please visit get-loader.ioncube.com for install assistance. or Site error: the file /path/cron.php requires the ionCube PHP Loader loader to be installed. | There is a configuration problem with ionCube Loader®. | ionCube Loader Site Errors |
Last modified: January 15, 2025