rankmath / seo-by-rank-math

Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
https://rankmath.com
107 stars 52 forks source link

"Fatal error: Uncaught ValueError:" on seach page #287

Open yduke opened 2 months ago

yduke commented 2 months ago

Describe the bug Latest version of Rank Math Latest version of WordPress PHP 8.2 Nginx 1.24

To Reproduce Steps to reproduce the behavior:

  1. With rank math actived
  2. Visite any search page(https://domain.com/?s=somekeyword)
  3. Fatal error shown

Expected behavior No error on any search.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Error log: `Fatal error: Uncaught ValueError: Missing padding character in /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php:273 Stack trace:

0 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(273): sprintf()

1 [internal function]: RankMath\Frontend\Breadcrumbs->add_crumbs_search()

2 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(231): call_user_func()

3 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(174): RankMath\Frontend\Breadcrumbs->generate()

4 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-breadcrumbs.php(34): RankMath\Frontend\Breadcrumbs->get_crumbs()

5 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(247): RankMath\Schema\Breadcrumbs->process()

6 /www/wwwroot/siteroot/wp-includes/class-wp-hook.php(326): RankMath\Schema\JsonLD->add_context_data()

7 /www/wwwroot/siteroot/wp-includes/plugin.php(256): WP_Hook->apply_filters()

8 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(106): apply_filters_ref_array()

9 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(149): RankMath\Schema\JsonLD->do_filter()

10 /www/wwwroot/siteroot/wp-includes/class-wp-hook.php(324): RankMath\Schema\JsonLD->json_ld()

11 /www/wwwroot/siteroot/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

12 /www/wwwroot/siteroot/wp-includes/plugin.php(565): WP_Hook->do_action()

13 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(90): do_action_ref_array()

14 /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(180): RankMath\Frontend\Head->do_action()

15 /www/wwwroot/siteroot/wp-includes/class-wp-hook.php(324): RankMath\Frontend\Head->head()

16 /www/wwwroot/siteroot/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()

17 /www/wwwroot/siteroot/wp-includes/plugin.php(517): WP_Hook->do_action()

18 /www/wwwroot/siteroot/wp-includes/general-template.php(3065): do_action()

19 /www/wwwroot/siteroot/wp-content/themes/dukeyin/header.php(56): wp_head()

20 /www/wwwroot/siteroot/wp-includes/template.php(810): require_once('...')

21 /www/wwwroot/siteroot/wp-includes/template.php(745): load_template()

22 /www/wwwroot/siteroot/wp-includes/general-template.php(48): locate_template()

23 /www/wwwroot/siteroot/wp-content/themes/dukeyin/search.php(7): get_header()

24 /www/wwwroot/siteroot/wp-includes/template-loader.php(106): include('...')

25 /www/wwwroot/siteroot/wp-blog-header.php(19): require_once('...')

26 /www/wwwroot/siteroot/index.php(17): require('...')

27 {main} thrown in /www/wwwroot/siteroot/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 273`