Finishing my twosided article, I want to generate the LOF and LOT.

The following error occurs over and over for a lot of figures (the first being: "Undefined control sequence" and the second being: "Missing number treated as zero":

```
! Undefined control sequence.
\l@figure #1#2->\ifnum \c@lofdepth 
                                   >\z@ \vskip \cftbeforefigskip {\leftskip ...
l.10 ...DPJIP2009}\relax }}{11}{figure.caption.14}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Missing number, treated as zero.
<to be read again> 
                   >
l.10 ...DPJIP2009}\relax }}{11}{figure.caption.14}

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

```

I use PDFLATEX via texstudio (MAC OSX) and \documentclass[11pt,a4paper,twoside,openany]{book}. I also just updated all packages, no difference (did not reboot computer).

I hope someone can help.