Problems using get_the_terms in a plugin

Problems using get_the_terms in a plugin