hyperref: Height of page (\paperheight) is invalid (0.0pt)
Okay, I found the solution. It it is broken in the thesis.cls
that I'm using. But just setting it manually fixed it:
\setlength{\paperheight}{11in}
With this minimal example, containing all information of your post, the error cannot be produced:
\documentclass{thesis}
\usepackage{fancyhdr}
\usepackage{hyperref}
\begin{document}
text
\end{document}
So, there may be information missing. I also assume you mean the thesis
class that we can find on CTAN.
Instead of manually adjusting lengths, I strongly recommand to use the geometry
package for that purpose:
\usepackage[papersize={8.5in,11in}]{geometry}
You may also specify margins and various other page dimensions using the key=value
option interface. geometry calculates missing dimensions. Otherwise the user has to ensure that text width, left margin, right margin, binding offset and perhaps margin note width all sum up to the correct page width.
geometry autodetects the driver like pdftex or dvips.