OK, I think I’ve made progress on this bug…
In my particular setup (& it’s a site with many plugins etc.) I can at least reproduce the problem.
Create a Page in WP – we’ll call it ‘Daughter Page’ – It has a page URL of domain/daughter-page
(I’m making the visibility private because I’m testing on a live site, but I don’t think it matters if Private or Public)
Create a Product in WooCommerce – we’ll also call it ‘Daughter Page’ – It has a permalink of domain/product/daughter-page
(I’m setting catalog visibility to Hidden again because it’s a live site. But I don’t think visibility matters)
Create a ‘Mother page’ (call it Mother Page, URL domain/mother-page)) and include an Insert Pages code [insert page=’daughter-page’ display-‘content’]
(I set visibility to Private, but again I don’t think this matters)
View (with admin rights because the pages are private) domain/mother-page – the Daughter Page doesn’t show…
Edit the product permalink of product ‘Daughter Page’ to domain/daughter-page-2
View again domain/mother-page – the Daughter Page now shows.
So, the error/bug seems to be caused by having a WP Page & WC Product of the same name.
OK, it seems easy to say make sure the names are different, but we have thousands of products with Page & Product named the same & life would get very confusing if we started naming the pages/products differently!
Hopefully, the above explains how I can at least reproduce the problem and helps track down the cause!
Thanks
-
This reply was modified 2 years, 3 months ago by bandit99.