• Resolved webreturn10

    (@webreturn10)


    When trying to add a bundle to my product at the Frequently Bought Together tab, I get a javascript error when clicking the bundle: “Uncaught TypeError: Cannot read properties of undefined (reading ‘includes’)”. And the bundle will not be added to the product. How can I fix this?

    https://prnt.sc/k7-fU-GjkzfO

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @webreturn10,

    Thanks for getting in touch. I understand how frustrating this kind of issue can be, especially when it affects how your site appears to customers.

    To help you better, I’d like to first understand your setup. Could you let me know which plugin you’re using to add the Frequently Bought Together bundle feature? This functionality isn’t included in WooCommerce by default, so identifying the plugin will help us troubleshoot more effectively.

    Hi @webreturn10,

    As there’s been no follow-up, I’ll consider this resolved for the time being. We’re happy to jump back in if anything comes up!

    If you have a few minutes, we’d love if you could leave us a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

    Thread Starter webreturn10

    (@webreturn10)

    Hi,

    Apologies for the delay, the frequently bought together is added by Woodmart. But I found out that this error is also occuring at the related products, which is a woocommerce feature.

    https://prnt.sc/LIqj_VWEYUks

    It looks like it is correct, but it won’t save correctly. When typing in the searchbox, the error occurs.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    I’ve tried to replicate the issue on my test site, but I’m not seeing any errors in the browser console when adding related products. The product search and save functionality appears to be working as expected.

    To assist you further, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    In the meantime, I would suggest running a conflict test by following the instructions in this guide:
    https://woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter webreturn10

    (@webreturn10)

    Thank you for your help,

    System Status Report: https://pastebin.com/YFgCdQqG

    I have no logs in the fatal error logs.

    Hi @webreturn10 ,

    Thanks for the system status report. The error you’re seeing, Cannot read properties of undefined (reading 'includes') , typically happens when some JavaScript tries to access a value that doesn’t exist yet. In this case, it’s likely related to a plugin that’s modifying the WooCommerce product edit screen.

    From your plugin list, a few potential candidates might be:

    • Woodmart Core
    • Advanced Coupons for WooCommerce
    • Premmerce Permalink Manager
    • WooCommerce Flexible Pricing
    • Abandoned Cart Pro
    • Or any plugin that extends the admin product interface

    To troubleshoot, I recommend:

    1. Temporarily deactivating these plugins one by one, then reloading the product edit screen to see when the error disappears.
    2. Opening your browser’s developer console (usually right-click → Inspect → Console tab) to get more detail on the error and what file it’s coming from.
    3. If you can pinpoint the plugin causing this, their support team may be able to help further or provide a fix.

    Let us know how it goes or if you’d like help reviewing the error log output, happy to take a look!

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

The topic ‘Frequently brought together Uncaught TypeError undefined includes’ is closed to new replies.