Really really need help debugging this dpm(). It's an error from trying to create a new Message | Fixed by reinstalling Reply module
Exception EntityMalformedException is triggered, because (as you mentioned) your $entity is empty, and based on $info['entity keys']['bundle'] Entity module expects to have $entity-&gt;type property, but it doesn't exist.

You should check the backtrace and find which module is responsible for this invalid call, e.g. by adding this line instead of dpm:

var_dump(debug_backtrace()); exit; // Show the backtrace and exit.


in order to identify and fix the broken code. The most relevant part from the backtrace is function which is called, so starting from the top [0]=&gt;, then [1]=&gt;, so once you find the custom code or contrib module responsible for this exception. If there is no custom module apart of messages module, you should report this bug to the maintainer of this module.

Here is the related bug: Fatal errors when content types are deleted before messages are.



For further explanation, check: How to debug EntityMalformedException?