wc_get_related_products error log in woocommerce logs
-
Hi! I’m found a strange error line (lots of lines…) in wc_get_related_products log. It is make a new log file every day.
The error message is:
2025-07-08T00:19:03+00:00 ERROR Invalid limit type passed to wc_get_related_products. Expected integer, got string with value: “6”
I asked Ai what is this error and how can I fix it. Its answered I have to fix it in the theme files.
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Kind Regards
I’m so-sorry, I cant, because I dont have server side account, and its an LIVE site. So I mustn’t change the theme or others.
So what I can do it for you, make a full “backup” pack with all-in-one export plugin and share this link, so you can make a test site with it.
Hello,
Please apply the 675661
patch to fix that problem.
Then recheck the issue and let me know.
Kind Regards
Thank Luke!
I will check this, and come back if the problem is stay.
Okay, I will wait for your response.
Thank you for your time.
Kind Regards