Forum Replies Created

  • 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 3 years 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 3 years 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 3 years 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

    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
    3 years ago in reply to: Indexing Process #37479
    pridigital
    Participant

    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

    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?

    pridigital
    Participant

    Is there a way you could give us early access to this feature? Our live website is crashing because of this. Thanks!

    pridigital
    Participant

    Thanks! That solved the issue.

    pridigital
    Participant

    PS: The same issue occurs if the word “and” is used.

    pridigital
    Participant
    3 years, 1 month ago in reply to: Custom sorting facet values #35892

    Yeap, that did the trick. Thanks!

    pridigital
    Participant

    You were right! I’m sorry for the confusion. The Yoast SEO has a new experimental feature called “Remove unregistered URL parameters”. That was causing the bug. Thanks for your support anyway!

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