PHP Error when using search

#510269
  • Resolved Nico Eileen Pahl
    Rank Math free

    Hello,

    when opening attached Link or any Search on my Site, a critical Error is ensuing with the Following Error Message:

    [09-Jan-2023 20:23:59 UTC] PHP Fatal error: Uncaught ArgumentCountError: 7 arguments are required, 2 given in /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php:273Stack trace:#0 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(273): sprintf()#1 [internal function]: RankMath\Frontend\Breadcrumbs->add_crumbs_search()#2 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(231): call_user_func()#3 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php(174): RankMath\Frontend\Breadcrumbs->generate()#4 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/snippets/class-breadcrumbs.php(34): RankMath\Frontend\Breadcrumbs->get_crumbs()#5 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(248): RankMath\Schema\Breadcrumbs->process()#6 /home/gooloode/public_html/wp-includes/class-wp-hook.php(310): RankMath\Schema\JsonLD->add_context_data()#7 /home/gooloode/public_html/wp-includes/plugin.php(256): WP_Hook->apply_filters()#8 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(102): apply_filters_ref_array()#9 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/modules/schema/class-jsonld.php(150): RankMath\Schema\JsonLD->do_filter()#10 /home/gooloode/public_html/wp-includes/class-wp-hook.php(308): RankMath\Schema\JsonLD->json_ld()#11 /home/gooloode/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#12 /home/gooloode/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()#13 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/traits/class-hooker.php(88): do_action_ref_array()#14 /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-head.php(156): RankMath\Frontend\Head->do_action()#15 /home/gooloode/public_html/wp-includes/class-wp-hook.php(308): RankMath\Frontend\Head->head()#16 /home/gooloode/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#17 /home/gooloode/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()#18 /home/gooloode/public_html/wp-includes/general-template.php(3043): do_action()#19 /home/gooloode/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-header-template.php(11): wp_head()#20 /home/gooloode/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(216): require_once(‘/home/gooloode/…’)#21 /home/gooloode/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend.php(247): et_theme_builder_frontend_override_partial()#22 /home/gooloode/public_html/wp-includes/class-wp-hook.php(310): et_theme_builder_frontend_override_header()#23 /home/gooloode/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()#24 /home/gooloode/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()#25 /home/gooloode/public_html/wp-includes/general-template.php(38): do_action()#26 /home/gooloode/public_html/wp-content/themes/Divi/includes/builder/frontend-builder/theme-builder/frontend-body-template.php(4): get_header()#27 /home/gooloode/public_html/wp-includes/template-loader.php(106): include(‘/home/gooloode/…’)#28 /home/gooloode/public_html/wp-blog-header.php(19): require_once(‘/home/gooloode/…’)#29 /home/gooloode/public_html/index.php(17): require(‘/home/gooloode/…’)#30 {main} thrown in /home/gooloode/public_html/wp-content/plugins/seo-by-rank-math/includes/frontend/class-breadcrumbs.php on line 273

    From: https://wordpress.org/support/topic/php-error-when-using-search/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thank you for contacting the support and we regret the inconvenience caused.

    Please head over to WordPress Dashboard > Rank Math > General Settings > Breadcrumbs and change the “Search Results Format” to: Search for %s

    Once done, clear your website’s cache and see if that fixes the issue.

    Let us know how that goes. Looking forward to helping you.

    Thank you.

    Nico Eileen Pahl
    Rank Math free

    Hi Sakib, thank you very much, that fixed it! 🙂

    Md. Sakib Khandaker
    Rank Math agency

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘PHP Error when using search’ is closed to new replies.