This happens if there is problem with your theme.

Changing the theme will fix this error.