Error after changing WHM theme

After changing the WHM theme sometimes you can deal with following error while trying to revert the changed theme.

Error: [a fatal error or timeout occurred while processing this directive]file error – /usr/local/cpanel/whostmgr/docroot/themes/canarias/templates/setmytheme.tmpl: not found

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!