Warning: Attempt to read property “post_parent” on null in shop page WooCommerce

Warning: Attempt to read property “post_parent”

This warning may occur when no products have been created. Create at least one product in your shop page in WooCommerce or import products. This will solve the problem. Also, this warning may appear in your WordPress breadcrumb when no products have been created.

A page that has a $post->post_parent other than 0, is a child of another page.

Leave a Reply