-
Hello, I activated your plugin on my website and when using the search bar on the site it drops the fatal error below.
I have installed Woocommerce Version 6.4.1 and Storefront Theme
Please help.
BR,
Matthias
-
Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
From the error message, it seems that it is coming from the Breadcrumbs.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.
To determine that, please follow this troubleshooting guide:
https://rankmath.com/kb/check-plugin-conflicts/Here is a video you can follow as well: https://www.youtube.com/watch?v=FcIWRhcUP2c
Only the site admin would know and your users won’t be affected by this troubleshooting.
Let us know how this goes.
Thank you.
Thank you.
I followed the instructions.
I enabled only Theme Twenty Twenty and Rank Math. Same error on site search:Fatal error: Uncaught ValueError: Missing padding character in /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php:273 Stack trace: #0 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(273): sprintf(‘Search for ‘%”, ‘a’) #1 [internal function]: RankMath\Frontend\Breadcrumbs->add_crumbs_search() #2 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(231): call_user_func(Array) #3 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(174): RankMath\Frontend\Breadcrumbs->generate() #4 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-breadcrumbs.php(34): RankMath\Frontend\Breadcrumbs->get_crumbs() #5 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(248): RankMath\Schema\Breadcrumbs->process(Array, Object(RankMath\Schema\JsonLD)) #6 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/class-wp-hook.php(309): RankMath\Schema\JsonLD->add_context_data(Array) #7 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/plugin.php(233): WP_Hook->apply_filters(Array, Array) #8 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array(‘rank_math/json_…’, Array) #9 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(150): RankMath\Schema\JsonLD->do_filter(‘json_ld’, Array, Object(RankMath\Schema\JsonLD)) #10 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/class-wp-hook.php(307): RankMath\Schema\JsonLD->json_ld() #11 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #12 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #13 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array(‘rank_math/head’, Array) #14 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(157): RankMath\Frontend\Head->do_action(‘head’) #15 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/class-wp-hook.php(307): RankMath\Frontend\Head->head(”) #16 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #17 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #18 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/general-template.php(3042): do_action(‘wp_head’) #19 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/themes/twentytwenty/header.php(23): wp_head() #20 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/template.php(770): require_once(‘/www/htdocs/w01…’) #21 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/template.php(716): load_template(‘/www/htdocs/w01…’, true, Array) #22 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #23 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/themes/twentytwenty/index.php(17): get_header() #24 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-includes/template-loader.php(106): include(‘/www/htdocs/w01…’) #25 /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-blog-header.php(19): require_once(‘/www/htdocs/w01…’) #26 /www/htdocs/w0120a67/olioepasta.com/wordpress/index.php(17): require(‘/www/htdocs/w01…’) #27 {main} thrown in /www/htdocs/w0120a67/olioepasta.com/wordpress/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 273
Please help.
Thank you.
I found the issue. It is related to PHP versions. If PHP 7.4 then okay. If >= PHP8.0 then it drops the fatal error. Please fix this. I currently run the website on 7.4 again, then it is fine…
Hello,
This is not an issue with the PHP versions but rather with the settings for your breadcrumbs.
Please head over to WordPress Dashboard > Rank Math > General Settings > Breadcrumbs and change the “Search Results Format” option to the following:
Search for %sHope this helps solve your issues.
Don’t hesitate to get in touch if you have any other questions.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.
The ticket ‘Fatal error on search bar’ is closed to new replies.