WPSolr logo
Search
Close this search box.

Forum Replies Created

  • pridigital
    Participant
    1 month, 1 week ago in reply to: Reactivate license #41062

    I was told before you’ll need to remove it from your database so I can reactivate.

    pridigital
    Participant

    Do you plan to make this work with select2.js as well?

    pridigital
    Participant

    Also, are you adding the single products to the “Men’s Hats” term only or to “Clothing”, “Men’s Clothing” and “Men’s Hats” terms?

    pridigital
    Participant

    Would you mind changing the “layout settings” for the facet from “checkbox” to “select2.js” and check if you experience the same behavior? Because I’m still having this issue on my site and that seems to be the only difference.

    pridigital
    Participant

    Please visit the demo link you provided. Once there select the “Men’s Hat” and the “Men’s Shoes” filters. Both filters show products from the “Men’s Clothing” term, right?

    Visit the same link in another tab but this time select only the “Men’s Clothing” term. In the demo the products don’t seem to be connected directly to the “Men’s Clothing” term. Therefore you see a message that says “No products were found matching your selection.”, right?

    Our current issue arises from our products being associated with both “Men’s Clothing” and either “Men’s Hat” or “Men’s Shoes.” This causes an error when employing the OR filter logic. When all three terms are chosen simultaneously (parent + child 1 + child 2), the results are the same as selecting only two terms (parent + child x).

    We believe a more logical solution would involve disregarding the parent term when selecting child terms. Does this clarification make sense?

    • This reply was modified 3 months, 2 weeks ago by pridigital.
    pridigital
    Participant

    The license I bought says it can be used it in 4 different sites, but I keep getting the following error.

    The license is already activated on site “LIVE SITE URL”, while your current site is “DEV SITE URL”. Deactivate your license before trying activating it again.

    Please help

    pridigital
    Participant

    Here’s a better example

    
    $transient = 'some_unique_key';
    
    if ( false === ( $results = get_transient( $transient ) ) ) {
      $sql = $wpdb->prepare( "SELECT distinct meta_key, meta_value
    			  FROM $wpdb->postmeta
    			  WHERE meta_key LIKE %s
    			  AND meta_value like %s", array( '_%', 'field_%' ) );
      $results = $wpdb->get_results( $sql );
    
      set_transient( $transient, $results, DAY_IN_SECONDS );
    }
    
    • This reply was modified 5 months, 2 weeks ago by pridigital. Reason: format
    pridigital
    Participant

    Would adding something like this to the class-wpsolr-plugin-acf.php:219 file help?

    `

    if ( false === ( $results = get_transient( ‘some_unique_key’ ) ) ) {
    $sql = $wpdb->prepare( “SELECT distinct meta_key, meta_value
    FROM $wpdb->postmeta
    WHERE meta_key LIKE %s
    AND meta_value like %s”, ‘_%’, ‘field_%’ );
    $results = $wpdb->get_results( $sql );

    set_transient( ‘some_unique_key’, $results, 864000 );
    }
    `

    • This reply was modified 5 months, 2 weeks ago by pridigital.
    pridigital
    Participant

    It’s quite strange. I’ve applied the settings you provided to my website, and they function correctly in the demo. However, I’m encountering a problem where, upon selecting the “Men’s Hat” filter, it displays items marked as both “Men’s Clothing” and “Clothing” instead of narrowing down the results. Just wanted to mention that I’m using Opensolr and select2js, although I’m not sure if that’s relevant. Any ideas?

    Demo site works!

    • This reply was modified 5 months, 2 weeks ago by pridigital.
    pridigital
    Participant

    Can you please share a screenshot of how the facets are configured in the example you shared? Thanks

    pridigital
    Participant

    No, OpenSolr said to me the only support Solr 8 at the moment.

    pridigital
    Participant
    5 months, 3 weeks ago in reply to: Persistent Error and Indexing Process #37481

    They did and this is what they said.

    This is not an Opensolr issue unfortunately.

    For your reference, we have had other sudden WP Solr related issues, where everything was working OK, and suddenly there are all types of indexing issues.
    This has to do with the Solr configuration files that WP Solr provides.
    More to the point, you should perhaps report this field (below) to WP Solr and others like that, where it uses parameters as useDocValuesAsStored docValues, etc, for string fields.
    This most likely makes no sense to you, but we have reported this and other configuration flaws to WP Solr, however there was no fix.
    Unfortunately, there is nothing we can do to fix those as those are provisioned and provided by WP Solr, Drupal and any other provider of such Solr plugins.
    We only provide the Solr platform as it is, so we have no control over those configuration files.

    <dynamicField name=”*_str” type=”strings” stored=”false” docValues=”true” indexed=”false”
    useDocValuesAsStored=”false”/>

    To try to tell what would fix this for you, would be guess work, as we did fix this before by removing docValues and useDocValuesAsStored from your schema.xml in your Opensolr index, but that might lead to other regression issues, since, again, we do not control the way WP Solr works and integrates with Solr.

    Hope this helps.

    pridigital
    Participant
    5 months, 3 weeks ago in reply to: Indexing Process #37479
    pridigital
    Participant
    5 months, 3 weeks ago in reply to: Persistent Error and Indexing Process #37476

    I’m already using opensolr.com. Shouldn’t WPSolr render the WP_Query as a fallback or something instead of stoping the rendering of the entire page?

    pridigital
    Participant
    5 months, 3 weeks ago in reply to: Persistent Error and Indexing Process #37472

    We followed the same process as before. Is there a way to prevent a recurrence of this issue? It effectively disrupts the site’s functionality and fails to render the HTML template. Additionally, any insights into why the entries aren’t indexing automatically?

Viewing 15 posts - 1 through 15 (of 51 total)