# Beamer - undefined control sequence

I have been using beamer for some time now with TexnicCenter. Recently I updated operating system to Windows 7, TexnicCenter and also MikTeX (I try to run the code with both MikTex 2.8 and MikTeX 2.9). Every presentation (even the old ones, which were working perfectly before updates) gives me an error warning and the created pdf file has extra slides with just numbers in the top left corner.

The basic TeX file:

%%%%%%%%%%%%%%%%%%
\documentclass{beamer}
\usetheme{Warsaw}
%\mode<presentation>
\begin{document}
\begin{frame}{A frame}
abc
\end{frame}
\end{document}
%%%%%%%%%%%%%%%%%%


And the error message:

Undefined control sequence:
\beamer@frameslide ...duration=}\thispdfpagelabel


Any ideas what is wrong?

The log file can be found here. The code written above produce just on error message.

• Work for me (TeX Live 2010). Try deleting any .aux file in the directory. – Caramdir Oct 23 '10 at 0:22
• Caramdir, thanks, but your solution doesn't work for me – Anja Oct 23 '10 at 7:35
• Could you post (include in the question or link to it if it's too big) the complete log file? Try to compile, and hit 's' at the first error so it will run without pausing at each error. I have a suspicion that because of your recent upgrade you are loading parts of beamer from different distributions/releases. – Matthew Leingang Oct 23 '10 at 11:25
• The link to log file is added below the question. I also suspect that something is wrong because of updates but I'm not able to figure it out where is the problem. I reinstall both Miktex (complete version) and TexnicCenter. – Anja Oct 23 '10 at 12:31
• What does the second option on the \begin{frame}{?} do? – Seamus Oct 23 '10 at 12:47

The error message itself is a bug in beamer. I have seen a posting about it 2 or 3 ago. \thispdfpagelabel is defined by hyperref only if pagelabels=true, but beamer used it also in dvi-mode. The problem has been obviously corrected. I don't get an error.
\providecommand\thispdfpagelabel[1]{}

• Umm ... "2 or three" what "ago"? :) (You're missing a word, probably months or years.) – doncherry Apr 4 '12 at 23:26
• Great! The \providecommand\thispdfpagelabel[1]{} workaround worked for me! Needed the hyperref={pdfpagelabels=false} document class option to prevent warnings on a machine using Beamer 3.07 and TeXworks 0.2.3 (using pdfLaTeX to typeset). Then, because of said option, I needed said workaround to prevent an error on a machine using Beamer 3.10 and TeXworks 0.5 (again using pdfLaTex to typeset). – Digger Mar 5 '16 at 0:00
I had the same issue, but solved it by removing hyperref={pdfpagelabels=false} from the options to the document class.