Seo yoast
-
Hi, I have a problem. I want to create a new product. I will see a white page. I turned on the debug. it told me:
Notice:Trying to get property “count” on no object in /wp-includes/class-wp-term-query.php on line 758
I watched the code:
// Make sure we show empty categories that have children. if ( $hierarchical && $args['hide_empty'] && is_array( $terms ) ) { foreach ( $terms as $k => $term ) { if ( ! $term->count ) { $children = get_term_children( $term->term_id, $term->taxonomy ); if ( is_array( $children ) ) { foreach ( $children as $child_id ) { $child = get_term( $child_id, $term->taxonomy ); if ( $child->count ) { continue 2; } } } // It really is empty. unset( $terms[ $k ] ); } } }
Finally I found out that yoast plugin does it. If it is turned on then adding the product does not work but when it is turned off everything works.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Seo yoast’ is closed to new replies.