• Resolved LinMcHugh

    (@linmchugh)


    I am getting this error constantly. 2026-09-13T00:00:01+00:00 Error Invalid limit type passed to wc_get_related_products. Expected integer, got string with value: “4”

    In fact today, I got it 2151 times? I have the most current version of WordPress, Woocommerce and all the relevant plug-ins. How can I fix this issue?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there!

    This kind of problem is usually caused by a conflict with your theme or with another plugin.
     
    The best way to determine this is to:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated.

    Be sure to perform a backup of your site before doing so just in case.

    To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Let me know how it goes!

    Plugin Support thelmachido a11n

    (@thelmachido)

    Hi @LinMcHugh,

    We haven’t heard back, so I’ll close this one for now.

    Worth knowing it’s a logged notice rather than anything breaking — something on your site is passing "4" as text where WooCommerce expects the number 4, usually a theme or page builder setting for how many related products to show. The conflict test will pinpoint which one, and the fix belongs with that theme or plugin’s developer.

    Just open a new topic if you’d like us to pick it back up.

    If the info here was helpful, a review would be much appreciated: https://wordpress.org/support/plugin/woocommerce/reviews/

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

You must be logged in to reply to this topic.