Please consider replacing the array with the following:
array(
'current_page_url' => preg_replace( "~paged?/[0-9]+/?~", "", home_url( $wp->request ) ),
'ajaxurl' => admin_url( 'admin-ajax.php' ),
'product_cat' => $wp_query_product_cat,
'products_holder_id' => (array_key_exists('products_holder_id', $br_options) ? $br_options['products_holder_id'] : null),
'control_sorting' => (array_key_exists('control_sorting', $br_options) ? $br_options['control_sorting'] : null),
'seo_friendly_urls' => (array_key_exists('seo_friendly_urls', $br_options) ? $br_options['seo_friendly_urls'] : null),
'berocket_aapf_widget_product_filters' => $post_temrs,
'user_func' => (array_key_exists('user_func', $br_options) ? $br_options['user_func'] : function () {}),
)
Always check to make sure variables or arrays exist before using them. ?? I’ll be happy to submit any changes to your code repository.
Thanks!