Troubleshooting a The template could not be found Error

Symptom

When accessing certain pages in WHMCS, you may encounter the following error, where $filename is the missing filename.

LogicException: The template "$filename" could not be found at  "/path/to/whmcs/resources/views/$filename.php"
Click to copy

Cause

If you see this error, the system could not find the corresponding file that contains the layout information for this page. This could indicate that something deleted the file.

Solution

To resolve this, upload the missing file to the appropriate subdirectory at /path/to/whmcs/resources/views/.

We also recommend ensuring that any other files that may be missing from the directory are present and correct on your server.