Hyperref: Hyper Reference Undefined
Package hyperref Warning: Hyper reference '...' on page N undefined.
What this error means
The hyperref package found a \hyperref[key]{text} or \autoref{key} reference to an anchor that doesn't exist in the document. The link will point nowhere in the PDF.
Common causes
- Using \hyperref[key]{} with a key that has no matching \label{key}
- Cross-referencing a label in a chapter excluded with \includeonly{}
- Labels in \input files that were not processed in the current run
- Compiling only once without allowing cross-references to resolve
How to fix it
Ensure every \hyperref[key]{} or \autoref{key} has a matching \label{key} in the document. Compile twice to resolve cross-references. Check that no \includeonly{} is excluding the file with the label.
Code examples
\documentclass{article}
\usepackage{hyperref}
\begin{document}
See \autoref{fig:result} for the result.
% But there is no \label{fig:result} anywhere!
\end{document}\documentclass{article}
\usepackage{hyperref}
\begin{document}
\begin{figure}[h]
\centering
% ... figure content ...
\caption{Results}\label{fig:result}
\end{figure}
See \autoref{fig:result} for the result.
\end{document}Related errors
File Not Found
! LaTeX Error: File 'XXX' not found.
Unknown Graphics Extension
! LaTeX Error: Unknown graphics extension: .XXX.
Unicode Character Not Supported (pdfLaTeX)
! Package inputenc Error: Unicode char U+XXXX not set up for use with LaTeX.
Cannot Determine Size of Graphic (No BoundingBox)
! LaTeX Error: Cannot determine size of graphic (no BoundingBox).
Test the fix live
Paste your LaTeX into the playground and compile instantly.

