WooCommerce (Checkout and Cart page) not working. (Fatal Error, Warning)

A1WEBSITEPRO QuestionsCategory: WordPressWooCommerce (Checkout and Cart page) not working. (Fatal Error, Warning)
ElReco Ramon asked 7 years ago

Hello, Maximus
Thank you for helping me on this issue.
When I go to my website(http://www.elrecoramon.com) and click on the shop page, everything seems to be working fine.
But when I click on the “cart” or “checkout”, I seem to be getting a “Fatal error” & “Warning”. I’ve tried to look up assistance everywhere and nothing seems to be working.
Please let me know you thoughts on this circustance.

WooCommerce (Checkout and Cart page) not working. (Fatal Error, Warning) was last modified: August 23rd, 2017 by ElReco Ramon
1 Answers
Best Answer
Maximus Mccullough Staff answered 7 years ago

You are getting 2 errors. Warning: preg_match() expects parameter 2 to be string, object given in /home/mental1/public_html/wp-includes/post-template.php on line 288

Catchable fatal error: Object of class WP_Post could not be converted to string in /home/mental1/public_html/wp-includes/post-template.php on line 306 . 
 
First thing to do is look in your woocommerce configuration file. Go to WooCommerce > Status and make sure all the areas are a green checkbox or OK beside them. Scroll down to the wc-pages make sure they are in green as well. 
The one thing  you should be doing is making a child theme for your wooocommerce and use the templates from the plugin to create your woocommerce pages. 
Let me know if everything’s green on your configuration page. 

Answer for WooCommerce (Checkout and Cart page) not working. (Fatal Error, Warning) was last modified: August 23rd, 2017 by Maximus Mccullough