I have a file, which works fine, if there is no table of contents, however, while trying to compile this file with added \tableofcontents command, compiler tells me:
myfile.toc 2 LaTeX Error: Something's wrong--perhaps a missing \item.
What's the solution?
edited:
I've just found that \tableofcontents are not in good relations with section's renewing:
\makeatletter
\renewcommand{\section}{
\@startsection
{section}{1}{0mm}
{\baselineskip}%
{\baselineskip}
{\fontsize{14}{14}\centering\bfseries\MakeUppercase}
}%
\makeatother
If I remove this renewing, \tableofcontents makes no problem.
So this probably makes the problem clear?

.tocfile is corrupt. Try removingmyfile.auxandmyfile.tocand see if that gets LaTeX back in sync. – David Carlisle Mar 22 '12 at 19:00