There is no such think as 'popup-mode-menu' in any version of Emacs,
it is part of the XEmacs support:
;;; Special support for XEmacs
(when (featurep 'xemacs)
(defadvice popup-mode-menu (before LaTeX-update activate)
"Run `LaTeX-menu-update' before showing menu."
(and (fboundp 'LaTeX-menu-update)
(LaTeX-menu-update)))
The code should obviously be rewritten to use :filter to be cleaner,
but I don't know why Thomas Witzel gets these errors.