Weird wordpress error

Every time I publish a blog post I keep getting the following error:

object(DOMNodeList)#45 (0) { }

Why does this error happen? How to fix this?

Doesn’t look to be an error, but rather the output of var_dump(). I’d scan any plugins you have for the function var_dump and comment it out.