Breadcrumb NavXT 7.0.0

Holy under-the-hood improvements Batman! This release feature a heavy reworking of the code that powers the administrative interface. While there isn’t much to show for it right now, the ground work has been laid to revamp how the settings importing/exporting works. Additionally, the core breadcrumb trail class now supports multidimensional breadcrumb trails. Note that this doesn’t mean it generates them, internally, it allows non-hierarchical terms to be handled more gracefully. On top of the under-the-hood changes, several bugs were fixed in this release.

PHP8 compatibility has been improved (the REST controller no longer throws an error). Widget settings not saving/taking effect in WordPress 5.8+ has been fixed as well. Lastly, an error in how the position count worked was fixed for when the output order of the trail is set to reverse.

Internally, the way settings work has changed significantly. Rather than saving the entire set of setting values to the database, only non-default values are now saved. As part of this, a new filter, the bcn_opts_update_to_save filter was added to allow control of the non-default values before saving. The change in what is saved to the database helps with future updates, allowing sites that use the default value for a setting to keep up with the latest settings changes without having to manually make changes.

Lastly, a few notes on potential messages and behaviors that may be seen. Immediately after migrating settings on the Breadcrumb NavXT settings page, you may see a notice about unknown settings. Under normal circumstances, this will disappear after re-loading the page. It is a result of the settings updater removing old settings from the database (since only non-default values are now saved). Additionally, if the labels for the settings tabs are missing, it is likely that you are also running WP Lynx, or some other plugin that uses an old version of adminKit. At this point of time, you’ll have to either update those plugins, or deactivate them. Finally, if you use any of the Breadcrumb NavXT extension plugins, you should update these plugins prior to updating to Breadcrumb NavXT 7.0.

-John Havlik

3 thoughts on “Breadcrumb NavXT 7.0.0

  1. Since the update, whole website doesn’t work anymore:

    Fatal error: Uncaught Error: Call to a member function get_value() on bool in /homepages/20/d811707739/htdocs/app811761751/wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538 Stack trace: #0 /homepages/20/d811707739/htdocs/app811761751/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(603): mtekk\adminKit\adminKit::settings_to_opts(Array) #1 /homepages/20/d811707739/htdocs/app811761751/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(124): breadcrumb_navxt->get_settings() #2 /homepages/20/d811707739/htdocs/app811761751/wp-includes/class-wp-hook.php(303): breadcrumb_navxt->init(”) #3 /homepages/20/d811707739/htdocs/app811761751/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /homepages/20/d811707739/htdocs/app811761751/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /homepages/20/d811707739/htdocs/app811761751/wp-settings.php(578): do_action(‘init’) #6 /homepages/20/d811707739/htdocs/app811761751/wp-config.php(109): require_once(‘/homepages in /homepages/20/d811707739/htdocs/app811761751/wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php on line 538

  2. I have problem with my site. Can somene help me. Thank you.

    Error Details
    =============
    An error of type E_ERROR was caused in line 538 of the file /srv/htdocs/wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php.
    Error message: Uncaught Error: Call to a member function get_value() on string in
    /srv/htdocs/wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538
    Stack trace:
    #0
    /srv/htdocs/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(603):
    mtekk\adminKit\adminKit::settings_to_opts(Array)
    #1
    /srv/htdocs/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(124):
    breadcrumb_navxt->get_settings()
    #2 /wordpress/core/5.8.2/wp-includes/class-wp-hook.php(303):
    breadcrumb_navxt->init(”)
    #3 /wordpress/core/5.8.2/wp-includes/class-wp-hook.php(327):
    WP_Hook->apply_filters(NULL, Array)
    #4 /wordpress/core/5.8.2/wp-includes/plugin.php(470):
    WP_Hook->do_action(Array)
    #5 /wordpress/core/5.8.2/wp-settings.php(578): do_action(‘init’)
    #6 /srv/htdocs/wp-config.php(81): require_once(‘/wordpress/core…’)
    #7 /wordpress/core/5.8.2/wp-load.php(55): require_once(‘/srv/htdocs/wp-…’)
    #8 /wordpress/core/5.8.2/wp-admin/admin.php(34):
    require_once(‘/wordpress/core…’)
    #9 /wordpress/core/5.8.2/wp-admin/index.php(10):
    require_once(‘/wordpress/core…’)
    #10 {main}
    thrown

    • Make sure you’re using Breadcrumb NavXT 7.0.2, it should not have this specific error. The root cause of this is you have old, non-7.x compatible, code hooking into Breadcrumb NavXT’s bcn_settings_init filter that triggered this error. This may be something that is in your theme, an extension plugin, or a site specific plugin.

Leave a Reply

Your email address will not be published.