I have seen many threads about this error, but none seems to help with my particular issue.
This is my code, which including suggestions for the required packages, I intend for it to be the minimum code which yields the problem:
\documentclass[letterpaper,12pt]{book}
\usepackage{lineno}
\title{Teachings on Pythagoras}
\author{Guillermo F. Sanchez M.}
\begin{document}
\setpagewiselinenumbers
\modulolinenumbers[1]
\linenumbers
\frontmatter
\maketitle
\thispagestyle{empty}
\tableofcontents
\listoftables
\mainmatter
\pagenumbering{arabic}
Hello.
\end{document}
The issue is that, when I comment out "\maketitle", the error persists (even tough the error messages points at it), but if "\tableofcontents" is ALSO commented out, the error goes away.
This is the interpreter I am using:
$ pdflatex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.