Incompatible method warnings and an undefined constant

You really need to turn WP_DEBUG on.