integration issues – custom fields, speed, drop down list sort etc

  • Jmasked
    Participant
    2 years, 7 months ago #27782

    commenting them out, worked

    wpsolr
    Keymaster
    2 years, 7 months ago #27783

    #1
    Now I wonder if your custom indexing code is not the culprit.

    Please remove your custom code, delete your index content, and reindex.

    Jmasked
    Participant
    2 years, 7 months ago #27784

    It’s been removed the whole time we’ve been troubleshooting.

    Jmasked
    Participant
    2 years, 7 months ago #27785

    What I did notice is that in the instructions it has you go into woocommerce settings to change the sort to default. Whereas in my theme it has me change it in customize.

    wpsolr
    Keymaster
    2 years, 7 months ago #27786

    #1
    What is your theme?
    Can you try with another theme?

    wpsolr
    Keymaster
    2 years, 7 months ago #27787

    #1

    It’s been removed the whole time we’ve been troubleshooting.

    But did you delete the index content and reindex after that? Or even with en empty index.

    Jmasked
    Participant
    2 years, 7 months ago #27788

    Hello theme, I changed themes and its still a 502

    wpsolr
    Keymaster
    2 years, 7 months ago #27789
    wpsolr
    Keymaster
    2 years, 7 months ago #27790

    #1

    commenting them out, worked

    What did you mean?

    Jmasked
    Participant
    2 years, 7 months ago #27791

    With all of the indexes deleted, still 502

    Jmasked
    Participant
    2 years, 7 months ago #27792

    commenting out every reference to get_option_plugin_woocommerce_is_replace_sort_items() in that files removed the 502

    wpsolr
    Keymaster
    2 years, 7 months ago #27793

    #1
    And with the index empty? (you can create a new index eventually, and select it on screen 2.1)

    Jmasked
    Participant
    2 years, 7 months ago #27794

    with the index empty I get a 502
    with commenting out every reference to get_option_plugin_woocommerce_is_replace_sort_items() in that file no 502

    wpsolr
    Keymaster
    2 years, 7 months ago #27795

    #1

    with commenting out every reference to get_option_plugin_woocommerce_is_replace_sort_items() in that file no 502

    Try to identify which of the 3 references is crashing

    Jmasked
    Participant
    2 years, 7 months ago #27796
    public
    	function wpsolr_filter_url_parameters(
    		WPSOLR_Query $wpsolr_query, $url_parameters
    	) {
    
    		if ( WPSOLR_Service_Container::getOption()->get_option_plugin_woocommerce_is_replace_sort_items() ) {
    			// Get WooCommerce order by value from url, or use the default one set in settings->products->display.
    
    			$order_by_value = isset( $url_parameters[ self::WOOCOMERCE_URL_PARAMETER_SORT_BY ] )
    				? wc_clean( $url_parameters[ self::WOOCOMERCE_URL_PARAMETER_SORT_BY ] )
    				: apply_filters( 'woocommerce_default_catalog_orderby', WPSOLR_Service_Container::getOption()->get_option( true, 'woocommerce_default_catalog_orderby' ) );
    
    			if ( ! empty( $order_by_value ) ) {
    				//$wpsolr_query->set_wpsolr_sort( $order_by_value );
    			}
    		}
    	}
    

    is the culprit

Viewing 15 posts - 31 through 45 (of 63 total)

You must be logged in to reply to this topic.