document type does not allow element %1 here

Cause:

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

Example:

textexample textexample

Bad:
textexample
textexample
Good:
textexample textexample

Solution:

textexample textexample

References: