-
Hello everyone at RankMath Support
Recently, I had experiencing an issue with the aforementioned ‘Custom query parameter not defined in target URL’ on one of my websites.”https://cekaautomotive.com/”
I tried to create a new file “rank-math.php” in my childtheme folder
I typed this code and it didn’t work
<?php
add_filter( ‘rank_math/json_ld/search_url’, function( $url ) {
if ( ‘tr’ === ICL_LANGUAGE_CODE ) {
return ‘https://cekaautomotive.com/?s={search_term_string}’;
}
return $url;
} );Could you please help me solve this problem?
-
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.
I’ve checked your site using Google’s Rich Results test, and it seems that you have a duplicate Sitelinks Searchbox schema added on your homepage by one of your active plugins or theme which generate the error message you have shared.
Assuming you are using the latest version of all the plugins and the themes (please update if not yet), 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.
I hope that helps.
Thank you.
Hello ,
Thank you for your speed reply.
woodmart theme generat sitemap “https://cekaautomotive.com/woodmart_layout-sitemap.xml”
What should I do now?
Hello,
The sitemap does not contain any links, and it is also not included in your main sitemap index so you don’t have to worry about it.
However, to disable that sitemap, head over to Rank Math > Sitemap Settings > [Woodmart_layout] then disable this option:

I hope that helps.
Thank you.
Hello ,
As you can see in the picture, the problem is still there .Hello ,
I also made a file “rank-math.php” in my childtheme folder.
I did not find any benefitHello ,
I found this solution.
But I don’t know where to find the file. Is this solution suitable?
https://ibb.co/8KZvSzDfrom : https://cekaautomotive.com/?s=%7Bsearch_term_string%7D&lang=tr
to : https://cekaautomotive.com/?s={search_term_string}&lang=trHello,
Please try using this filter instead:
add_filter( 'rank_math/json_ld/search_url', function( $url ) { if ( 'tr' === ICL_LANGUAGE_CODE ) { return 'https://cekaautomotive.com/?s={search_term_string}&post_type=product&lang=tr'; } return $url; } );Also, there’s a duplicate Sitelinks Searchbox schema being added by one of your plugins or theme like I’ve mentioned above that’s why you see 2 errors. You can verify that in this link (line
1150).I hope that helps.
Thank you.
Hello ,
Thank you for your amazing help
I got one error instead of two.
How can I get rid of the second and last error pls?Hello ,
I use these Plugin
Rank Math SEO PRO
Rank Math SEO
WPML SEO
WPML Media
WPML Multilingual CMS
WPML String Translation
iThemes Security Pro
Click to Chat
Elementor + pro
Facebook for WordPress
Google Listings and Ads
Hide Admin Bar From Front End
Imagify
Safe SVG
Site Kit by Google
WebP Express
WooCommerce
WooCommerce Multilingual
Woodmart Core
WP Mail SMTP
WP Rocket
and Woodmart as themeHello,
I tested the homepage with Google’s Rich Results testing tool and both the errors are now removed. Here’s the test result: https://search.google.com/test/rich-results/result/r%2Fsitelinks-searchbox?id=_dY9vPPhhHeVWk8UZb8lRQ
However, as previously mentioned by my colleague, there are duplicate Sitelink Searchbox schemas present on your website, out of which, one is added by Rank Math and the other one by some other plugin/theme. Please have a look at this screencast for a quick reference: https://i.rankmath.com/XfyXoH
You should only have a single Sitelink Searchbox schema present on the page. Please follow the troubleshooting guide shared by my colleague to determine the plugin/theme adding the duplicate schema: https://support.rankmath.com/ticket/custom-query-parameter-not-defined-in-target-url-10/?view=all#post-357426
Once found, you can disable the schema feature of that plugin/theme to fix the issue.
If you’re not sure, we can check this for you. In that case, please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Woocommerce is actually adding the extra
SearchActionproperty. Kindly check this one with their support and request to remove it.Let us know how that goes. Looking forward to helping you.
Hello ,
I spoke to Woocommerce support team.
This was the response.Hello,
Thanks for writing back!
I see you shared a system report for a site different from the one you mentioned before or shown on your screenshots, but it might not be needed.
It’s my interpretation that this issue is related to a multilingual plugin you’re using.
After testing your site here, I see that the error only shows up with the Turkish language address.
I would suggest you reach out to that plugin’s support team, as this forum is dedicated to WooCommerce core only.
Hope this helps!
Hello,
Can you please confirm if you already contacted your multilingual plugin support as recommended by WooCommerce supports?
Since they mentioned that the issue might be from your multilingual plugin, it might be best to check this one with them as well.
Let us know how that goes. Looking forward to helping you.
You must be logged in to reply to this ticket.