Title: Undefined index: apost__root
Last modified: August 31, 2016

---

# Undefined index: apost__root

 *  [pinkhare](https://wordpress.org/support/users/pinkhare/)
 * (@pinkhare)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-apost_root/)
 * The notice found on my WooCommerce products archive page(page title is ‘shop’)
   suddenly from when I updated WooCommerce version 5.3.1.
 *     ```
       Notice: Undefined index: apost__root in /home/pinkhare/public_html/wordpress/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 964
       string(0) "" 
   
       Notice: Undefined index: apost__root in /home/pinkhare/public_html/wordpress/wp-content/plugins/breadcrumb-navxt/class.bcn_breadcrumb_trail.php on line 777
       ```
   
 * So I had inserted `var_dump($type);` on line 957, then I got this value:
 * `object(WP_Post)#261 (24) { ["ID"]=> int(7199) ["post_author"]=> string(1) "1"["
   post_date"]=> string(19) "2015-03-26 18:20:43" ["post_date_gmt"]=> string(19)"
   2015-03-26 18:20:43" ["post_content"]=> string(0) "" ["post_title"]=> string(
   4) "Shop" ["post_excerpt"]=> string(0) "" ["post_status"]=> string(7) "publish"["
   comment_status"]=> string(6) "closed" ["ping_status"]=> string(6) "closed" ["
   post_password"]=> string(0) "" ["post_name"]=> string(4) "shop" ["to_ping"]=>
   string(0) "" ["pinged"]=> string(0) "" ["post_modified"]=> string(19) "2015-06-
   12 16:50:32" ["post_modified_gmt"]=> string(19) "2015-06-12 16:50:32" ["post_content_filtered"]
   => string(0) "" ["post_parent"]=> int(0) ["guid"]=> string(33) "http://xeepress.
   com/?page_id=7199" ["menu_order"]=> int(0) ["post_type"]=> string(4) "page" ["
   post_mime_type"]=> string(0) "" ["comment_count"]=> string(1) "0" ["filter"]=
   > string(3) "raw" }`
 * => There’s no ‘name’ attribute found in the object $type.
 * And, var_dump($type_str); on line 776, but I got nothing or null.
 * Please help me!
 * [https://wordpress.org/plugins/breadcrumb-navxt/](https://wordpress.org/plugins/breadcrumb-navxt/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [John Havlik](https://wordpress.org/support/users/mtekk/)
 * (@mtekk)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-apost_root/#post-6935004)
 * Thanks for reporting this. It looks like the actual page object for the products
   archive was returned rather than the post_type object. I think I have a fix in
   mind. A potential quick fix is available on the hurdler branch on GitHub. I will
   be testing it more later this week (still need to reproduce this issue locally).
 * This is being tracked by this GitHub issue: [https://github.com/mtekk/Breadcrumb-NavXT/issues/140](https://github.com/mtekk/Breadcrumb-NavXT/issues/140)

Viewing 1 replies (of 1 total)

The topic ‘Undefined index: apost__root’ is closed to new replies.

 * ![](https://ps.w.org/breadcrumb-navxt/assets/icon.svg?rev=1927103)
 * [Breadcrumb NavXT](https://wordpress.org/plugins/breadcrumb-navxt/)
 * [Support Threads](https://wordpress.org/support/plugin/breadcrumb-navxt/)
 * [Active Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breadcrumb-navxt/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breadcrumb-navxt/reviews/)

## Tags

 * [name](https://wordpress.org/support/topic-tag/name/)
 * [var_dump](https://wordpress.org/support/topic-tag/var_dump/)

 * 1 reply
 * 2 participants
 * Last reply from: [John Havlik](https://wordpress.org/support/users/mtekk/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/undefined-index-apost_root/#post-6935004)
 * Status: not resolved