Forum Replies Created

  • wpsolr
    Keymaster
    7 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.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11992

    Replace
    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.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11989

    Please copy the error message here.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11987

    replace line with
    if ( $term_parent && property_exists( $term_parent, 'name' ) ) {

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11985

    Copy here line 313

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11983

    It looks ok.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11981

    remove 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 );
    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11979

    Replace the previous workaround code.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11977

    My 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 ) ) );
    }
    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11974

    Use
    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 error

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11972

    All you screenshots are broken.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11970

    Broken image.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11968

    Can I see a screenshot of term 8680?

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11966

    Add a name to each taxonomy terms manually, or by sql, or with a tool, or reimport with names.

    wpsolr
    Keymaster
    7 years, 5 months ago in reply to: WPSOLR: error on term #11964

    Open your term 8680 in category ‘packing’. It probably has no name.

    It can come from imports that forgot to load names.

Viewing 15 posts - 2,971 through 2,985 (of 3,679 total)