SOLVED: Query Filter indexing not working / stuck

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

My Query Filter indexing is stuck.

Bricks > Settings > Query Filter > Regenerate filter index

I’m not using HTPP authentication and I tried with WP Cron enabled and disabled (cron job at server level). Nothing works.

None all my Filters work.

@Lucian ,

As per my email reply, we can replicate this bug when a filter element’s job already queued but removed before the completion of the job.

Working on a fix now.

Anyone encountering a similar issue can send admin credentials to help@bricksbuilder.io and include this forum thread URL as a reference.

I will apply a potential fix on your site.

Regards,
Jenn

1 Like

Hi guys,

We’ve fixed this issue in Bricks 1.10.2, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.10.2 Changelog – Bricks

Best regards,
M

@Matej
Doesn’t seem solved, stuck on my wordpress instance, using local wp on my desktop.


Hi @davig ,

Please place this PHP code on a Code element in a new blank page.

Enable Execute code and let use know what you see.

<?php
$url = add_query_arg(
	[
		'action' => 'bricks_background_index_job',
		'nonce'  => wp_create_nonce( 'bricks-nonce-indexer' ) 
	],
	admin_url( 'admin-ajax.php' )
);

$args = [
	'sslverify' => false,
	'body'      => '',
	'timeout'   => 10,
	'cookies'   => $_COOKIE,
];

$response = \Bricks\Helpers::remote_post( $url, $args );
if( is_wp_error( $response ) ) {
	echo '<pre>';
	var_dump( $response->get_error_message() );
	echo '</pre>';
} else {
	// Get the body of the response
  if ( isset( $response['response'] ) ) {
    echo '<pre>';
    var_dump( $response['response'] );
    echo '</pre>';
  } else {
     echo '<pre>';
    var_dump( $response );
    echo '</pre>';
  }
	
}

?>

Can you see something like this?
image

If not, your Local WP might have some settings causing wp_remote_post not to work.

Regards,
Jenn

@itchycode

image

And now working
image

Hi @davig ,

If the code returns message “OK”, means your local WP is not blocking the background task / wp_remote_post().
Your filter indexing not running should be able to solve by clicking the “Continue index job” button.

Regards,
Jenn