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

  • Jmasked
    Participant
    1 year, 4 months ago #27765

    the 502 only happens when I attempt to access a front end page

    wpsolr
    Keymaster
    1 year, 4 months ago #27766

    #1
    So, you save the option “Replace sort” in the backend, and then frontend pages are 502?

    All pages are 502, or just archives?

    • This reply was modified 1 year, 4 months ago by wpsolr.
    Jmasked
    Participant
    1 year, 4 months ago #27768

    all pages, including home

    wpsolr
    Keymaster
    1 year, 4 months ago #27769

    #1
    You must have some trace on the server, php or debug.log?

    Jmasked
    Participant
    1 year, 4 months ago #27770

    nowhere, I turned on all debug modes and found nothing. I asked my host and they said they didn’t see anything either.

    wpsolr
    Keymaster
    1 year, 4 months ago #27771

    #1
    Can you try to access a non-archive page, like a product detail page?

    Jmasked
    Participant
    1 year, 4 months ago #27772

    I found this…

    
                var parameters = $.extend(!0, {}, default_options, custom_options);
                $(this).find("." + localized_data.data.js_layout_class).ionRangeSlider(parameters)
            })

    Uncaught TypeError: Cannot read properties of undefined (reading ‘data’)

    Jmasked
    Participant
    1 year, 4 months ago #27773

    single product page also gives 502

    wpsolr
    Keymaster
    1 year, 4 months ago #27774

    #1
    Is it a js console error?
    Try to deactive the rangeslider layout from your WPSOLR facets.

    But I can’t see how a js error would trigger a 502 backend error.

    • This reply was modified 1 year, 4 months ago by wpsolr.
    Jmasked
    Participant
    1 year, 4 months ago #27776

    yes, that’s a console error. I noticed it doesn’t always display, depends on how you generated the results.
    deactivated rangeslider, console error is gone.
    Checked off and saved option for “Replace WooCommerce drop-down list sort content with WPSOLR’s.”
    Still getting 502

    wpsolr
    Keymaster
    1 year, 4 months ago #27777

    #1
    Here is the code that could trigger the 502:

    function wc_get_template( $located, $template_name, $args, $template_path, $default_path ) {
    
      if ( WPSOLR_Service_Container::getOption()->get_option_plugin_woocommerce_is_replace_sort_items() ) {
      // Replace template to prevent insertion of default 'Relevance'
      switch ( $template_name ) {
        case 'loop/orderby.php':
    	$located = sprintf( '%s%s%s', plugin_dir_path( __FILE__ ), 'templates/', $template_name );
    	break;
          }
      }
      return $located;
    }

    In /wpsolr/pro/extensions/woocommerce/class-wpsolr-plugin-woocommerce.php

    Jmasked
    Participant
    1 year, 4 months ago #27778

    Should I comment it out?

    wpsolr
    Keymaster
    1 year, 4 months ago #27779

    #1
    Please

    wpsolr
    Keymaster
    1 year, 4 months ago #27780

    #1
    Try also the 2 other get_option_plugin_woocommerce_is_replace_sort_items() in the same file if necessary.

    Jmasked
    Participant
    1 year, 4 months ago #27781

    [17-Sep-2021 18:53:45 UTC] PHP Notice: Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
    [17-Sep-2021 18:53:45 UTC] PHP Notice: Trying to get property ‘post_title’ of non-object in /wp-includes/class-wp-query.php on line 4046
    [17-Sep-2021 18:53:45 UTC] PHP Notice: Trying to get property ‘post_name’ of non-object in /wp-includes/class-wp-query.php on line 4048
    [17-Sep-2021 18:53:45 UTC] PHP Notice: Trying to get property ‘post_type’ of non-object in /wp-includes/class-wp-query.php on line 4196

    they are all commented out, saw this in debug

Viewing 15 posts - 16 through 30 (of 63 total)

You must be logged in to reply to this topic.