Search Divi Cart Pro Documentation
Search for answers or browse our knowledge base.
Why do I see a “There has been a critical error on this website” message when trying to edit the homepage with Divi Visual Builder in the Divi Cart Pro child theme?
You may encounter the error:"PHP Fatal error: Uncaught Error: Call to undefined function WC() in /www/wp-content/themes/divi-cart-pro/functions.php:21"
This occurs when the required WooCommerce plugin is not installed and activated.
Solution:
To resolve this issue, follow these steps:
- Install WooCommerce:
- Navigate to your WordPress dashboard.
- Go to Plugins > Add New and search for “WooCommerce.”
- Install and activate the WooCommerce plugin.
- Verify the Installation:
- Ensure that WooCommerce is properly activated by checking for the new “WooCommerce” menu in your WordPress dashboard.
- Edit the Homepage Again:
- Try editing the homepage with Divi Visual Builder. The error should no longer occur.
Why is WooCommerce Required?
The Divi Cart Pro child theme is built specifically for WooCommerce-based websites. It depends on the core WooCommerce functions to work correctly. Without WooCommerce, certain features in the child theme may not function as expected.
If the issue persists after installing WooCommerce, please contact our support team for further assistance via our support portal.