ancestor_id cannot be null
-
Yoast breadcrumbs are not working properly on WooCommerce product pages. I want to display the category hierarchy.
On some product pages, there are database errors like this:
WordPress database error: [Column 'ancestor_id' cannot be null] INSERT INTO <code>wp_yoast_indexable_hierarchy</code> (<code>indexable_id</code>, <code>ancestor_id</code>, <code>depth</code>, <code>blog_id</code>) VALUES ('1', NULL, '1', '1')
(that table is empty)
The product permalinks are set as: /hire/%product_cat%/
I’ve tried using Yoast Test Helper to reset the tables but it made no difference.
In SEO > Search Appearance > Breadcrumbs “Taxonomy to show in breadcrumbs for content types” is set to “Category” for “Products”.When editing a product, the product is assigned each category in it’s hierarchy with the grandchild category set as the primary.
THanks
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘ancestor_id cannot be null’ is closed to new replies.