var_dump shows that you are using taxonomies in WordPress. While I have no experience directly with Wordpress, the documents in Wordpress say:
Prior to 4.5.0, the first get_terms () parameter was a taxonomy or list of taxonomies:
Starting with 4.5.0, taxonomies must go through the "taxonomy" argument in the $ args array:
From the function reference:
$term = get_term( $term_id, $taxonomy );
Gives you the name slug: for example: term-slug-example
$slug = $term->slug;
Gives you the name of the term: for example. Term name example
$name = $term->name;
First make sure that you are using the correct version - you are using the syntax from previous 4.5.0
Secondly, the error suggests that the pa_liquor-types taxonomy is invalid. You need to check where this is defined.
Check your syntax create_initial_taxonomies() and submit it if necessary.
source share