Errors with Woocommerce Subscriptions and Child Theme

I am noticing some strange problems with my Woocommerce Subscriptions plugin. I see to have isolated the issue to the Pro Child theme. If I switch to the regular Pro theme, I don’t have this issue, but if I use the Child theme, I get JSON errors when sending myself a test message, and the email previews aren’t working properly.

I am trying to set up the Woocommerce > Settings > Emails and unable to render the previews, nor send myself a test message in many cases. One specific example is the “New Renewal Order” on this list.

Can you help me fix this? I will send you the staging site information in a secure note. Ultimately, I need the live site to work, but we can figure this out on the staging site first, please?

Hello @capodanno,

Thanks for writing in!

Thank you for the detailed report and for providing staging site access. Based on your description—specifically that the issue disappears when switching to the parent Pro theme but reappears with the child theme active—this strongly indicates that the problem is related to custom code present in your child theme .

The JSON errors and email rendering problems with WooCommerce Subscriptions are likely being caused by conflicts between the child theme’s custom code and the third-party plugin. Since the parent theme works correctly, we can isolate the cause to modifications within your child theme.

For troubleshooting, you can take these steps:

  1. Review Your Child Theme’s Custom Code:
  • Check your child theme’s functions.php file and any other custom PHP/JS files you’ve added.
  • Temporarily comment out sections of custom code to identify which specific code block is causing the conflict with WooCommerce Subscriptions.
  1. Contact Your Developer:
  • If you are not the developer who wrote the custom code, it is best to reach out to the person who created it. They will have the necessary context to debug and resolve conflicts with third-party plugins like WooCommerce Subscriptions.

Be advised that:

  • Standard Support: Custom coding and troubleshooting custom modifications are beyond the scope of our standard product support . Our team can assist with the core Pro theme and Cornerstone builder, but we cannot debug custom code written by you or another developer.

  • Third-Party Plugins: WooCommerce Subscriptions is a third-party plugin . For issues specific to its functionality (like email previews and test messages), it is best to contact the plugin’s developer directly for specialized assistance.

If you would like our team to assist with debugging this custom code conflict, we encourage you to consider our One service. One provides priority email-based support, including help with custom code and third-party plugin integrations. This would allow our team to dive into your child theme’s code and work with you to resolve the issue.

Best Regards.