I am getting the following annoying warning from hyperref:

hyperref.sty: [hyperref] Height of page (\paperheight) is invalid (0.0pt), usi
ng 11in. (page 1)

I am using a thesis class (thesis.cls) and some packages like fancyhdr etc. I compile using pdflatex.

I tried to fix the warning with this:


but it didn't help. Any suggestions? Thanks!

closed as too localized by Stefan Kottwitz Feb 21 '12 at 10:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Perhaps post a small compilable code example (reduce a copy), see minimalbeispiel.de/mini-en.html it would make helping easier. – Stefan Kottwitz Aug 25 '10 at 23:47
  • 1
    Where did you get thesis.cls from? – Charles Stewart Aug 26 '10 at 10:00
  • 2
    Since the OP hasn't returned since Aug '11 and the thesis class used doesn't seem to be the one on CTAN, I voted to close as too localized. – doncherry Jan 8 '12 at 18:32
  • I had the same error from a custom beamer style I tried to make (not using thesis.cls). This question was the first thing that came up on google. It would be useful to have general tips on resolving this type of error. – EL_DON Jul 5 '18 at 20:15

With this minimal example, containing all information of your post, the error cannot be produced:


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:


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.


Okay, I found the solution. It it is broken in the thesis.cls that I'm using. But just setting it manually fixed it:


Not the answer you're looking for? Browse other questions tagged or ask your own question.