• 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) "https://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://www.ads-software.com/plugins/breadcrumb-navxt/

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: apost__root’ is closed to new replies.