Forum Replies Created

  • f.schatz
    Participant

    SORRY, i missed copying all files. Now everything is fine. Thanks a lot for your great support.

    f.schatz
    Participant

    Sadly its not. Thats why the question what exactly you changed than i could debug on our side too?

    f.schatz
    Participant

    Thanks a lot. But i think its still executed?

    Stack is

    WP_Query->get_posts
    WP_Query->query
    WP->query_posts
    wpsolr\core\classes\services\WPSOLR_Service_Container::get_is_replace_by_wpsolr_query
    wpsolr\core\classes\services\WPSOLR_Service_Container::action_wp_loaded
    do_action(‘wp_loaded’)
    require_once(‘wp-settings.php’)
    require_once(‘/var/www/clients/client2/web2/web/www/web/wp-config.php’)
    require_once(‘wp-load.php’)
    require(‘wp-blog-header.php’)

    What did you changed? Maybe i can have a look to?

    f.schatz
    Participant

    Could you already check this? Its a pretty huge issue as the search is really slow due to that.

    f.schatz
    Participant

    No. But as you see the stack

    WPSOLR_Service_Container::get_is_replace_by_wpsolr_query()
    if ( ! is_admin() ) {
    $wp->parse_request();
    add_filter( ‘posts_pre_query’, [ self::class, ‘posts_pre_query’ ], 10, 2 );
    $wp->query_posts();
    remove_filter( ‘posts_pre_query’, [ self::class, ‘posts_pre_query’ ], 10 );
    do_action( WPSOLR_Events::WPSOLR_ACTION_IS_REPLACE_BY_WPSOLR_QUERY_AFTER_POST_PRE_QUERY );
    }

    and

    static function posts_pre_query( $retval, $query ) {
    // Prevent executing SQL before deciding replacing the query
    return null;
    }

    posts_pre_query is empty an does not prevent anything?

Viewing 5 posts - 1 through 5 (of 5 total)