Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yduke opened this issue Aug 13, 2024 · 0 comments
Open

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

yduke opened this issue Aug 13, 2024 · 0 comments

Comments

@yduke
Copy link

yduke commented Aug 13, 2024

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):

  • OS: not relevent
  • Browser: any broswer
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: not relevent
  • OS: any
  • Browser any
  • Version any

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`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant