idunno whether line 37 is the line being parsed within the ob menu file or line number in the calling script but
"not well-formed (invalid token)" means a stray character exists withing the menu file.
Could be a misspelling <cate gory> or <categor;>
or <!-- a comment tag containing -- an inline dash character can choke the parser -->
If "line 37" isn't an accurate pointer, try diffing a backup copy of the menufile against the current file.