[Tex/LaTex] Year not showing up in APA-style citations


I'm writing a paper in LaTeX at the moment. I'm using the \usepackage{apacite}, but for some reason, the years will not show up in my in-text citations. The entry in the References section is fine, however. The entry in the BibTeX file is perfect; I'm reasonably positive that that isn't the problem.

My citation should look like this: (Binney & Tremaine, 2011). However, it just comes up as (Binney & Tremaine, ) and gives me a whole bunch of error messages. Here is my code. I would appreciate any answers.

\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}



\section{Measures of distance}
    \subsection{Part (a)}
    ... the parsec is now defined as exactly $648,000/\pi$ AU \cite{bintrem}...


Best Answer

To quote the documentation of apacite:

apacite is compatible with hyperref, provided that apacite is loaded after hyperref.

So move \usepackage{apacite} behind \usepackage{hyperref}.

(It would be easier to help you if you had mentioned the exact error text instead simply writing that you get a vage "whole bunch of error messages"