Error thrown

Call to undefined function get_favorites_count()