• Resolved noibn

    (@noibn)


    The title basically says it. After upgrading to plugin version 6.0.1, the results of the bcn_display() function no longer include the parent pages of a selected sub-page as part of the hierarchy in the breadcrumb output for that sub-page.

    For example, it should be “Parent page -> Child page 1 -> Child page 2“, but now it is only showing as “Child page 2“.

    Oddly, it does still work like it used to when I initially tested the upgrade on my localhost (on Windows). But it does not work when I updated the plugin on my production server. The main differences are that on my localhost I only have php 5.6, and the production host uses php 7. Maybe that has something to do with it? I compared all of the available settings for Breadcrumb NavXT in both environments and they are identical.

    Any ideas? Please help, I have no idea why this isn’t working anymore and I really need to get those parent pages showing again in my breadcrumb lists ASAP…

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

    (@mtekk)

    I am running PHP7 on my testbed and 7.1 on my production server (for mtekk.us). I’m not seeing this issue on either of those sites. Just for clarification, did this worked correctly with 5.7.1 on the production site?

    Thread Starter noibn

    (@noibn)

    Yes, it worked as expected with the previous version. I can’t think of anything else that may have changed. Very strange.

    Plugin Author John Havlik

    (@mtekk)

    Try exporting your settings (via the help tab), in the resulting XML document, look at what the value of bpost_page_hierarchy_display make sure it’s 1 and Spost_page_hierarchy_type is BCN_POST_PARENT.

    Note that on my testbed this is the case, on my live site neither option is showing up, but things appear to be working.

    Thread Starter noibn

    (@noibn)

    OK, so on the live site, the “BCN_POST_PARENT” value is missing (the “Spost_page_hierarchy_type” setting is there, but value is blank). The “bpost_page_hierarchy_display” value is 1 on both.

    Should I try editing the “BCN_POST_PARENT” value back in manually via phpAdmin (in the “bcn_options” row in the WordPress option table, I assume)? Or could that have unanticipated consequences?

    Plugin Author John Havlik

    (@mtekk)

    You can try that, just note that things are stored in the database as a serilized string, so there will be some character counts to update. The other thing you can try doing is a settings reset on the live site (same form as the export).

    Plugin Author John Havlik

    (@mtekk)

    I’m going to consider this a bug of sorts. Those two settings should either be missing, or known good values. Somehow, the one is corrupt on your live site (which is a problem). I’m tracking this under the following issue on GitHub: https://github.com/mtekk/Breadcrumb-NavXT/issues/182

    • This reply was modified 6 years, 11 months ago by John Havlik.
    Thread Starter noibn

    (@noibn)

    I edited the option table value, and everything is back to normal on the live site. Thanks so much for your quick response and suggestions! For the record, what I did was edit the WordPress options table row “bcn_options”, and changed:

    s:25:”Spost_page_hierarchy_type”;s:0:””;

    to

    s:25:”Spost_page_hierarchy_type”;s:15:”BCN_POST_PARENT”;

    Thanks again!

    I just experienced the exact same problem. So, is the solution to go in to the table via phpMyadmin and reset that value?

    Plugin Author John Havlik

    (@mtekk)

    That seems to work. I’m going to change something in the plugin to hopefully fix this (in a 6.0.2 release). If you don’t mind, could you answer a couple of questions (I’m trying to figure out how it is losing the post_page_hierarchy_type setting, it should never be blank):

    What version did you upgrade from?
    Did you run the “migrate now” action for the settings?
    Did it work before running “migrate now”?
    Did you modify any of your settings and press “Save Changes” since updating?

    Thread Starter noibn

    (@noibn)

    My answers, if this also helps:

    What version did you upgrade from?
    5.7.1 (missed 6.0.0)

    Did you run the “migrate now” action for the settings?
    Yes.

    Did it work before running “migrate now”?
    Unfortunately, I didn’t check this. I went straight to the settings page after upgrading and clicked migrate, since I recall that was something that needed to be done in previous releases.

    Did you modify any of your settings and press “Save Changes” since updating?
    I think so, but not 100% sure. I was pretty sure that the “Breadcrumb Separator” value I had been using before was “»” (the html entity code for the double right bracket), but after migrating, it got changed to just show the native character “?” instead. I tried changing it back to the html entity, but that doesn’t seem to work anymore (it keeps getting changed back to “?”). Though oddly, all the other setting boxes I have edited on other tabs do retain the “raquo” code values. But that did involve a save operation. Also, I think I may have un-checked the “Post Hierarchy Display” box on the Post Types tab, but not sure on that.

    Hope this helps.

    • This reply was modified 6 years, 11 months ago by noibn.
    Plugin Author John Havlik

    (@mtekk)

    Thanks for the additional information. The change for how &raquo; behaves in the separator box is likely due to moving to a new escaping function (adminKit, which handles the settings page had a major overhaul in this version). I did some testing of this in my testbed and the good news is the correct entity is used. Additionally, things like <img src="" alt="separator"> appear to still work. It doesn’t appear that the value breaks after repeated savings (the real danger here). However, I’m not sure I exactly like the behavior (just showing the “raw” HTML would be better as it would be less confusing.

    Plugin Author John Havlik

    (@mtekk)

    I think the real solution here is to switch to the proper textarea rather than a text input for the separator, it will restore the “raw” HTML look and should clear up any confusion. This will make the next release (6.0.2). I’m tracking this in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/184

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Parent pages missing from breadcrumb after 6.0.1 update’ is closed to new replies.