Breadcrumb NavXT 3.4.1

This is the first bug fix release for the 3.4 branch of Breadcrumb NavXT. Those with PHP short tags disabled should no longer get the unexpected $end on line 1567 in breadcrumb_navxt_admin.php error. Using the paged option will no longer cause a WP_Error to string conversion error. Finally, flat taxonomies leading up to a post will become linked again. Hopefully this covers all of the bugs in Breadcrumb NavXT 3.4.0, if you are still experiencing problems with 3.4.1, leave a comment below in the comments section.

You can grab the latest version of Breadcrumb NavXT from the Breadcrumb NavXT page.

-John Havlik

[end of transmission, stay tuned]

Trackbacks/Pingbacks

  1. Pingback: Replacement 2004 Volvo C70, Volvo S60r Sold

25 thoughts on “Breadcrumb NavXT 3.4.1

  1. Hi John,

    Just downloaded your your plugins from link above and from SVN on wordpress.org. I am getting this error:

    Plugin could not be activated because it triggered a fatal error.

    Warning: require_once([path-to]/wp-content/plugins/breadcrumb-navxt/mtekk_admin_class.php) [function.require-once]: failed to open stream: No such file or directory in [path-to]/wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 33

    looking at breadcrumb_navxt_admin.php on line 33

    //Include admin base class
    if(!class_exists(‘mtekk_admin’))
    {
    require_once(dirname(__FILE__) . ‘/mtekk_admin_class.php’);
    }

    but there is no mtekk_admin_class.php in the download both on svn and the zip file.

    I wondered if this was mistake and its meant to be breadcrumb_admin_class.php’); which would refer to the class itself?

    • Azizur,

      Don’t use the SVN trunk right now, it is not stable :) . I’m in the middle of modularizing the administrative interface and have not actually tested the SVN trunk yet (It’s almost guaranteed to not work). Anyways, I have added the mtekk_admin_class.php to the trunk now. If you want to play around with the SVN trunk go ahead, it should work by this evening (I’m far enough along that I can start some testing today). For a production environment, use version 3.4.1 (you’ll see the trunk is set to 3.4.90).

      -John Havlik

  2. Hi John,

    Just upgraded to WP 2.9.1 and Breadcrumb NavXT 3.4.1 and I get a strange error. There is no administration panel under my Settings tab anymore. Any ideas or suggestions how to fix this? I have no other plugins installed.

    Thx for a great plugin!

    • Pontus,

      Make sure you are using the 3.4.1 release and not the SVN trunk. Also, when you say there is no administration panel, are you saying that the link the the Breadcrumb NavXT settings page is there, but upon loading it only loads the WordPress dashboard shell? If so, look at the HTML source of the page, see if there are any PHP errors, and let me know what they are.

      -John Havlik

      • Hi again,

        I’m using the 3.4.1 release for sure. The Breadcrumb NavXT settings link is NOT there at all. I tried installing it on another WP blog (version 2.8.4) with no problems at all. The link to NavXT settings page appears under Settings and the settings page itself looks great.

        Any new ideas?

        Pontus

        • Pontus,

          So it is not activating on your WordPress site. Could you try enabling the debug messages in your WP install (make sure define('WP_DEBUG', true); is uncommented and placed before require_once(ABSPATH.'wp-settings.php');) and see if you get any warnings/messages.

          -John Havlik

          • Yes, I get one error and now I think I get the problem:

            Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /path/to/wp/wp-content/plugins/breadcrumb-navxt/breadcrumb_navxt_admin.php on line 45

            The server is using PHP 4.3.x and not PHP5. I guess an upgrade to PHP5 is needed (for many other reasons as well).

            Thank you for the help!

  3. I have just installed the latest Breadcrumb NavXT plugin. The installation & everything just went great. I am on WordPress 2.9 using Breadcrumb NavXT 3.4.1. I am using the WordPress default theme with a small change to the header image. I have made it slightly smaller.

    Here are the changes which I have done for plugin.
    1. Added following to style.css
    .breadcrumb
    {
    font-size: 1.1em;
    color: black;
    margin: 10px 0 0 35px;
    position: relative;
    float: left;
    }

    2. Added following to header.php at the very end

    If you visit my blog you can see a few issues –
    1. On the main page itself (http://blog.ashish-aggarwal.com/), the breadcrumb has pushed the whole page to the right. My sidebar has got squashed. Not sure how to to stop that.
    2. If I am in a parent “category” breadcrumb section (http://blog.ashish-aggarwal.com/category/websphere-bpm/) e.g. Category “WebSphere BPM”, again I see the same problem. Page layout getting disturbed.
    3. If I click on a single post (http://blog.ashish-aggarwal.com/websphere-bpm/wid/wid7-subclipse16/) then my breadcrumb goes out of the page.

    I have basically three questions:
    1. How can I “wrap” the breadcrumb so that it doesn’t the whole page layout?
    2. How can I trim the length of the post breadcrumb so that if the post title is too long then basically it gets truncated to the nearest word & gets replaced by … at the end?
    3. Where can I place the breadcrumb such that it doesn’t disturb the whole layout?

    Any help in this regards will be really appreciated.

    Best Regards
    Ashish

    • Ashish,

      Ashish AggarwalHow can I “wrap” the breadcrumb so that it doesn’t the whole page layout?

      This sentence does not make sense due to a lack of a verb. Anyways this is probably a styling issue, which is out of the scope of this plugin. You could set a max width in CSS, but I really can’t be more specific than that. As I don’t know what will look correct on your theme.

      Ashish AggarwalHow can I trim the length of the post breadcrumb so that if the post title is too long then basically it gets truncated to the nearest word & gets replaced by … at the end?

      Use the “Breadcrumb Max Title Length” setting. It will try to break at spaces near the length specified. Note that it will affect all breadcrumbs in the trail, not just for the current item.

      Ashish Aggarwal: Where can I place the breadcrumb such that it doesn’t disturb the whole layout?

      This is a specific design question, which again is outside the scope of this plugin.

      -John Havlik

        • your editor don’t catch the code, then “” say div id=content class=narrowcolumn role=main

          • Marga,

            That’s because you didn’t use the HTML code tag, so WordPress ate the code, like it should :).

            Anyways, this is yet another styling issue, which is beyond the scope of this plugin. You can restrict the width, using the appropriate CSS style.

            -John Havlik

  4. after update to navxt 3.4.1 on wp 2.7.1, instead of getting what I used to have as a breadcrumb:

    home > articles > food&wine

    i’m getting an empty page below my header and working horizontal menu along with the following error:

    Catchable fatal error: Object of class stdClass could not be converted to string in /web/htdocs/www.keyrome.com/home/wordpress/wp-includes/category-template.php on line 58

    this happens when i choose the lowest subcategory of my articles/blog page that contains my only article (so far).

    ******line 58******, in the category-template.php file, reads (i don’t know php – sorry):

    $catlink = $file . ‘?cat=’ . $category_id;

    and is part of this sequence:

    /**
    * Retrieve category link URL.
    *
    * @since 1.0.0
    * @uses apply_filters() Calls ‘category_link’ filter on category link and category ID.
    *
    * @param int $category_id Category ID.
    * @return string
    */
    function get_category_link( $category_id ) {
    global $wp_rewrite;
    $catlink = $wp_rewrite->get_category_permastruct();

    if ( empty( $catlink ) ) {
    $file = get_option( ‘home’ ) . ‘/’;
    $catlink = $file . ‘?cat=’ . $category_id;******here is line58******

    } else {
    $category = &get_category( $category_id );
    if ( is_wp_error( $category ) )
    return $category;
    $category_nicename = $category->slug;

    if ( $category->parent == $category_id ) // recursive recursion
    $category->parent = 0;
    elseif ($category->parent != 0 )
    $category_nicename = get_category_parents( $category->parent, false, ‘/’, true ) . $category_nicename;

    $catlink = str_replace( ‘%category%’, $category_nicename, $catlink );
    $catlink = get_option( ‘home’ ) . user_trailingslashit( $catlink, ‘category’ );
    }
    return apply_filters( ‘category_link’, $catlink, $category_id );
    }

    /**
    * Retrieve category parents with separator.
    *
    * @since 1.2.0
    *
    * @param int $id Category ID.
    * @param bool $link Optional, default is false. Whether to format with link.
    * @param string $separator Optional, default is ‘/’. How to separate categories.
    * @param bool $nicename Optional, default is false. Whether to use nice name for display.
    * @param array $visited Optional. Already linked to categories to prevent duplicates.
    * @return string
    */

    sorry to bother you with this, but i’m lost and stuck and need this to work of course.

    it also seems that i have lost some settings that had been made. in particular, some links had been turned off in the breadcrumb, now they are click-able again (basically menu items/titles that have pages under them, but themselves don’t have content).

    thanks!

    Marc

    • Marc,

      Somehow, Breadcrumb NavXT is getting an incorrect category ID (which could be caused by many things, usually a WordPress error).

      If you are actually using WordPress 2.7.1, you should think about migrating to 2.9.1 (I don’t have the resources or time to guarantee support much beyond the latest stable WordPress release (2.8 or newer will be an official requirement for 3.5.0)). If that is not possible, for the time being use Breadcrumb NavXT 3.3.0. Settings wise, due to settings added in 3.4.0 the array has to be upgraded on activated, there was a bug in 3.4.1 that would not grab the old settings and migrate like it should have done (it is fixed now, but I can’t do a release solely for it as the damage has already been done).

      -John Havlik

      • Thanks John for the reply and for your efforts in making this useful plugin evolve with the platform.

        I was actually thinking of doing the upgrade to 2.9.1 these days as our site is finally ready (well, big word) to go online. I’m a bit afraid of making this step, as even updating ‘smaller’ things, like plugins and widgets, often causes such havoc that I wish I hadn’t done it.

        I do have backed up files in the Breadcrumb NavXT folder in the wordpress plugin directory, would my old configuration settings be in these anywhere?

        Marc

        • marc,

          Breadcrumb NavXT keeps its settings in a single wp_options table entry, so it’s not in any files, unless you have database backups. However, there is the inport/export form that you can use for backing up your settings (probably a recommended thing to do).

          -John Havlik

  5. Hello John,

    I have the Breadcrumb NavXT3.4.1 installed and I have noticed that under Firefox it works fine, but when I use IE8, the links for each page on the breadcrumb always point to the HOME page of the blog. Could you please help???

    Thanks

    • Paulo,

      Breadcrumb NavXT’s operation is not affected by which browser you use (the markup result for gnu links2 is the same as in Google Chrome is the same as in Mozilla Firefox). Either you have a styling issue (beyond the scope of the plugin), or an odd plugin conflict.

      -John Havlik

  6. Hi, this is really a great plugin, but im having one problem.

    I’m using wordpress 2.9.2 and your plugin NavXT 3.4.1.
    The breadcrumbs on site works perfect, but i’m having difficulties in admin. Pages and dashboard in admin can’t display. The rest of the admin works fine.

    In the error log there is the following messages:
    PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 58368 bytes) in /wp-admin/admin-header.php on line 110, referer: /wp-admin/
    PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 58368 bytes) in /wp-admin/menu-header.php on line 84

    Kind regards,
    Rian

Comments are closed.