I use pdflatex (TeX Live 2013). I try to make a book that contains 27 parts. It's in Russian. Only the last part has \section and \subsection. Also I need to have the title of the book on top page header in the odd pages and the name of books parts on top page header in the even pages. For compiling \tableofcontents* (without numbers, only parts names) I tried to use this solution. But it doesn't work fine in my case. The first page turns out to be blank page and numbered with '1', and the table of contents overlaps the bottom margin on the second page. Also it doesn't continue on the third page. It's just "gone".
.
I used this code:
\documentclass[a4paper,twoside]{memoir}
\usepackage{tocloft}
\usepackage{tocvsec2}
\begin{document}
\setsecnumdepth{none}
\addtocontents{toc}{\protect\renewcommand{\protect\cftpartpresnum}{}}
\tableofcontents*
\part*{Name of the part 1}
\addcontentsline{toc}{part}{Name of the part 1}
\markboth{Name of book}{Name of the part}
\part*{Name of the part 2}
\addcontentsline{toc}{part}{Name of the part 2}
\markboth{Name of book}{Name of the part}
%-----------
\part*{Name of the part 27}
\addcontentsline{toc}{part}{Name of the part 27}
\markboth{Name of book}{Name of the part}
\section{Name of Section}
\subsection{Name of Subsection}
\end{document}
What am I doing wrong? Could somebody help me, please?

\sectionand\subsectionalso in Parts3-26. – Nov 15 '13 at 20:58LaTeXhas only headings and nothing else to typeset, it simply does not obey pagebreaks. You can reproduce this by just repeating many times\section{A section}with only white space in-between. Inserting a\nullcreates in this context an empty line which gives toTeXa legal break point, the\kern-\baselineskipcompensates for the added vertical space created by the empty line. As for learning very goodLaTeX, all my encouragements! :) – Nov 15 '13 at 23:05