Problem
You enter your credit card encryption hash to upgrade an existing database. The upgrade does not start and you see one of the following messages:
The system could not verify this request.
The system could not verify this request because a previous submission already used it. Restart the installation process to continue.
The system could not confirm that the configuration.php file contains your credit card encryption hash.
The system could not save your credit card encryption hash automatically, and you cannot use this request again.
Cause
WHMCS only accepts a change to the $cc_encryption_hash value from the Existing WHMCS Database Found page. That page creates a single request. The request works for one hour, only once, so a direct link no longer changes the hash.
When you submit the form, the installation process replaces only the $cc_encryption_hash line in the configuration.php file and keeps the rest of the file. After it saves the hash, the page shows the message The system saved your credit card encryption hash to the configuration.php file.
Each message has its own cause:
The system could not verify this request.— The hash form expired after one hour, you submitted it twice, or you reached the upgrade page from a direct link.The system could not confirm that the configuration.php file contains your credit card encryption hash.— You left the hash form (for example, by using your browser’s back button). Theconfiguration.phpfile still contains the random hash that the installation process generated, so WHMCS prevents the upgrade. An upgrade on that hash would encrypt your data with a key that your installation never uses.The system could not save your credit card encryption hash automatically, and you cannot use this request again.— The installation process could not replace the$cc_encryption_hashline in theconfiguration.phpfile. This happens when:- The file does not contain a
$cc_encryption_hashline. - The file assigns
$cc_encryption_hashmore than once. - The file assigns something other than a plain text value.
- The installation process cannot read the file.
- The installation process cannot write to the file.
- The file does not contain a
Solution
To resolve this issue:
Open the
configuration.phpfile in the root WHMCS directory.Set the
$cc_encryption_hashvalue to the credit card encryption hash from your backup. For example:$cc_encryption_hash = 'xxxxxxxxxxxxxxxxxxxxxxxxxx';Check that the file assigns
$cc_encryption_hashexactly once.Check that the web server can write to the file.
Save the file.
Restart the installation process.
configuration.php file. WHMCS cannot decrypt your stored data with any other value.To use the form instead, go back to the database details page. Enter the details for your existing database again. Then, submit the Credit Card Encryption Hash value within one hour.
Last modified: 2026 October 20