Forum Replies Created
-
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11994
It indexes all products, but excludes product terms that seem to be malformed somehow.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11992Replace
throw new \Exception( sprintf( "WPSOLR: term %s for taxonomy %s has no name: %s", $term_parent_id, $parent, print_r( $term_parent, true ) ) );with
continue;It will simply ignore the faulty category.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11989Please copy the error message here.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11987replace line with
if ( $term_parent && property_exists( $term_parent, 'name' ) ) {wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11985Copy here line 313
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11983It looks ok.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11981remove the last:
// Add the term to the flat hierarchy array_push( $taxonomy_flat_hierarchies, implode( WpSolrSchema::FACET_HIERARCHY_SEPARATOR, $term_parents_names ) ); // Add the term to the taxonomy array_push( $nm1_array, $term->name );wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11979Replace the previous workaround code.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11977My mistake, my work around should test properties, not methods:
if ( property_exists( $term_parent, 'name' ) ) { array_push( $term_parents_names, $term_parent->name ); // Add the term to the non-flat hierarchy (for filter queries on all the hierarchy levels) array_push( $taxonomy_non_flat_hierarchies, $term_parent->name ); } else { // Some taxonomies do not have the property name. Probably due to bad imports. throw new \Exception( sprintf( "WPSOLR: term %s for taxonomy %s has no name: %s", $term_parent_id, $parent, print_r( $term_parent, true ) ) ); }wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11974Use
throw new \Exception( sprintf( "WPSOLR: term %s for taxonomy %s has no name: %s", $term_parent_id, $parent, print_r( $term_parent, true ) ) );
to display the term content on errorwpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11972All you screenshots are broken.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11970Broken image.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11968Can I see a screenshot of term 8680?
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11966Add a name to each taxonomy terms manually, or by sql, or with a tool, or reimport with names.
wpsolrKeymaster7 years, 5 months ago in reply to: WPSOLR: error on term #11964Open your term 8680 in category ‘packing’. It probably has no name.
It can come from imports that forgot to load names.