After changing the WHM theme sometimes you can deal with following error while trying to revert the changed theme.
This error is generally occurs when the theme is not set properly.
The file that stores the WHM theme is located as follows: For root the path is: /root/.whmtheme
Login to the server as the root user.
You can view the current theme of the server with the following command:
cd /root/.whmtheme
To set the WHM theme back to the default, you an use the following:
echo “x” > /root/.whmtheme
Now login to your WHM again. Error Resolved!