-
Hi,
I have Rank Math free version on this website https://www.fotodigitalipisa.it/.I have a Woocommerce shop here https://www.fotodigitalipisa.it/store/ and I got a fatal error when searching for a product in the “search product” widget. I’m not using a plugin for this, it’s the native “search product widget”.
In debug mode it talks about /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 273
(see whole code below).
I understand the issue is caused on line 273, and lines from 272 to 274 are as follow but I dont’t know how to correct the issueprivate function add_crumbs_search() {
$this->add_crumb( sprintf( $this->strings[‘search_format’], get_search_query() ), Security::remove_query_arg_raw( ‘paged’ ) );
}What do you suggest?
ThanksFatal error: Uncaught ValueError: Missing format specifier at end of string in /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php:273 Stack trace: #0 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(273): sprintf(‘Risultati per %’, ‘tazza’) #1 [internal function]: RankMathFrontendBreadcrumbs->add_crumbs_search() #2 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(231): call_user_func(Array) #3 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(174): RankMathFrontendBreadcrumbs->generate() #4 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-breadcrumbs.php(34): RankMathFrontendBreadcrumbs->get_crumbs() #5 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(248): RankMathSchemaBreadcrumbs->process(Array, Object(RankMathSchemaJsonLD)) #6 /home/nfotodik/public_html/wp-includes/class-wp-hook.php(309): RankMathSchemaJsonLD->add_context_data(Array) #7 /home/nfotodik/public_html/wp-includes/plugin.php(233): WP_Hook->apply_filters(Array, Array) #8 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array(‘rank_math/json_…’, Array) #9 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(150): RankMathSchemaJsonLD->do_filter(‘json_ld’, Array, Object(RankMathSchemaJsonLD)) #10 /home/nfotodik/public_html/wp-includes/class-wp-hook.php(307): RankMathSchemaJsonLD->json_ld() #11 /home/nfotodik/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #12 /home/nfotodik/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #13 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array(‘rank_math/head’, Array) #14 /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(157): RankMathFrontendHead->do_action(‘head’) #15 /home/nfotodik/public_html/wp-includes/class-wp-hook.php(307): RankMathFrontendHead->head(”) #16 /home/nfotodik/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #17 /home/nfotodik/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #18 /home/nfotodik/public_html/wp-includes/general-template.php(3042): do_action(‘wp_head’) #19 /home/nfotodik/public_html/wp-content/themes/astra/header.php(26): wp_head() #20 /home/nfotodik/public_html/wp-includes/template.php(770): require_once(‘/home/nfotodik/…’) #21 /home/nfotodik/public_html/wp-includes/template.php(716): load_template(‘/home/nfotodik/…’, true, Array) #22 /home/nfotodik/public_html/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #23 /home/nfotodik/public_html/wp-content/plugins/woocommerce/templates/archive-product.php(20): get_header(‘shop’) #24 /home/nfotodik/public_html/wp-includes/template-loader.php(106): include(‘/home/nfotodik/…’) #25 /home/nfotodik/public_html/wp-blog-header.php(19): require_once(‘/home/nfotodik/…’) #26 /home/nfotodik/public_html/index.php(17): require(‘/home/nfotodik/…’) #27 {main} thrown in /home/nfotodik/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 273
You must be logged in to reply to this ticket.