Breadcrumb NavXT not showing page path in WP 2.9.2
-
I have twin sites running on different servers. They are configured almost identically, including Breadcrumb NavXT. I updated one to WordPress 2.9.2.
Using the Breadcrumb NavXT widget, under WP 2.9.1, the path was previously showing properly in both. However with the 2.9.2 update, although category paths work, anything below a parent page isn’t displayed, and the path reverts to the home page.
Can anyone confirm this behavior? Or is it something else I’m overlooking?
Thanks,
Michael Madison
-
Michael,
Well, from the two sites I have running WP 2.9.2, I am not experiencing any abnormal behavior in Breadcrumb NavXT. Then again, I don’t use the widget, so it could be related to that, but I doubt it (if it is I’d just have you use the SVN trunk version as that uses the new widget system).
I’m guessing the update did not complete properly, causing issues. The fix in that case is to reupload the WordPress files.
One thing you can try is enabling debugging messages in your wp-config.php file and see if any warnings are spewed on the problematic pages. To do this, make sure
define('WP_DEBUG', true);
is uncommented and placed beforerequire_once(ABSPATH.'wp-settings.php');
in your wp-config.php file.-John Havlik
Thanks for the quick response.
I’ll continue testing — and include your recommendations — and report back if I get it fixed.
Great to know your page path is working correctly under 2.9.2.
It’s definitely not related to the WP 2.9.2 update, because I now have that installed on both mirror sites. One shows the page path, the other doesn’t.
BlueHost (used for experimenting — poker1-new.com) works.
StormOnDemand (actual site being built — pokerstorm.com) doesn’t work the same way. (It works with everything except the page paths. As soon as I click on any subpage in the menu, it reverts to just the home page and nothing else is in the path.)
I can sort of fix the issue by including the normal code at the top of the theme’s page.php. This makes the widget work as intended, but also puts the path (non-clickable links) at upper left above my header.
The code is:
<div class=”breadcrumb”>
<?php
if(function_exists(‘bcn_display’))
{
bcn_display();
}
?>
</div>Are there any parameters for bcn_display()? I tried commenting out that only, but of course that kept the path from displaying in the widget, too.
Any thoughts greatly appreciated.
— Michael Madison`
I’ve enabled WP_DEBUG, as you recommended and get the following error codes:
Notice: Undefined index: page in /home/pokeron4/public_html/wp-content/plugins/azindex/az-index-admin.php on line 68
Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in /home/pokeron4/public_html/wp-includes/functions.php on line 2970
Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in /home/pokeron4/public_html/wp-includes/functions.php on line 2970
Notice: Undefined index: action in /home/pokeron4/public_html/wp-content/plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 38
Notice: Undefined index: addQuote in /home/pokeron4/public_html/wp-content/plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 43
Notice: Undefined index: editQuote in /home/pokeron4/public_html/wp-content/plugins/flexi-quote-rotator/flexi-quote-rotator.php on line 48
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home/pokeron4/public_html/wp-content/plugins/azindex/az-index-admin.php:68) in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 22
Notice: Undefined index: merchant_return_link in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 59
Notice: Undefined index: mc_gross in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 64
Notice: Undefined index: addcart in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 81
Notice: Undefined index: cquantity in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 118
Notice: Undefined index: delcart in /home/pokeron4/public_html/wp-content/plugins/wordpress-simple-paypal-shopping-cart/wp_shopping_cart.php on line 135
Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in /home/pokeron4/public_html/wp-includes/functions.php on line 2970
Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in /home/pokeron4/public_html/wp-includes/functions.php on line 2970
Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in /home/pokeron4/public_html/wp-includes/functions.php on line 2970
I fixed the missing full-page path in the widget this way.
At the very top of the theme’s header.php, I added…
<div class=”breadcrumb”>
<?php
if(function_exists(‘bcn_display’))
{
bcn_display(true,true);
}
?>
</div>Changing “bcn_display()” to “bcn_display(true,ture)” somehow kept the path from display above and to the left of the WordPress header, and it allowed the widget to function normally. Note that this was a site-specific issue (StormOnDemand) and the widget was working without this modification at BlueHost.
I’m still vague about why this works, but it does.
By the way, I’m now using the “PHP Code” widget, instead of the one that comes with Breadcrumb NavXT (either works fine). The only reason you might consider doing that is if you want to have a header appear on the widget in the sidebar, to be consistent with other widgets. The default widget lacks this header.
Anyway, I’m very happy now. And Breadcrumb NavXT is indespensible!
— Michael Madison
Michael,
Yeah, what you did there was basically ‘cache’ the results and the second call is just grabbing the cached results (and your parameters told breadcrumb NavXT to return the breadcrumb string, so that’s why it’s not outputting it at that location). For the weekend could you remove that extra code so that I can see what it look like in the “broken state”.
I never thought about having the title in the widget (never thought it would be needed for a breadcrumb trail). In the next release it will have that option (it’s in the SVN trunk at the moment).
-John Havlik
I’m removing the code from theme header.php right now. At pokerstorm.com, you’ll see that the “You are here:” widget at the top of the left sidebar doesn’t follow subpage paths and reverts to just the home page (which I’ve called “Poker1”).
(Note: This isn’t the regular Breadcrumb NavXT widget, but yours functions the same way. I’ll put yours up, if you need me to.)
Hope that helps you see what I’m describing.
Thanks for your help and suggestions. Great plug-in! Let me know when you’re done looking at it, and I’ll put the code back into header.php.
— Michael Madison
Michael,
Ok, I see it, I think I’ve run into this before. I’ll have to dig through the comments on my blog to see if I can find a thread on something like this. Keep it that way at least through noon on the 20th of February.
-John Havlik
Will do. Let me know if you need more time.
Michael,
Do you notice any change of behavior if you are logged in or not? Also, what other plugins are you running? Have you tried disabling them all except Breadcrunb NavXT to see if it works then (and if it does, enable the plugins one by one until Breadcrumb NavXT stops working again)?
-John Havlik
Michael,
I’ve read all of the comments on my blog relating to Breadcrumb NavXT going back about a year. The similar situation was due to a conflict with another plugin, which has since been updated. So definitely try what I said in my previous comment, and let me the results.
-John Havlik
I did try deactivating all other plug-ins the first time I encountered the behavior. The page path issue has existed since I migrated the site. It works fine at the other host.
I have visited the site from another computer (nobody logged in), and the problem exists there, too. I’m going to put the code that fixed the problem back into the theme’s header.php.
Is there any reason doing that should cause problems, until I find a better solution?
Again, thanks for your assistance and all the great work you’ve done with this plug-in. Should I leave this thread open or close it?
— Michael Madison
Michael,
Prerunning it should not cause any problems, just make sure that you don’t keep any HTML tags in the calling code (e.g. the
<div>
elements).Honestly, I’m not sure what is causing this (except maybe a corrupted WP file or something) since you are still experiencing it when all other plugins are deactivated. You can close this one at your discretion. It is now working for you (through a workaround), but the root cause is unknown at the moment.
-John Havlik
I marked it resolved and will be looking forward to your next Breadcrumb NavXT release.
— Michael Madison
I just had the same issue!!! Deleted the plugin, deleted the db entries uploaded the plugin again, no change. Uploaded the entire WP files again, now it works again! Strangely enough….
- The topic ‘Breadcrumb NavXT not showing page path in WP 2.9.2’ is closed to new replies.