• Resolved Pierre

    (@ierpe)


    Hi,

    I’ve updated WordPress to v6 and breadcrumb-navxt to its current latest version (7.0.2) and using PHP 7.3 and I’ve received this critical error :

    Une erreur de type E_ERROR a été causée dans la ligne 179 du fichier /web/app/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit_form.php. Message d’erreur : Uncaught TypeError: Argument 1 passed to mtekk\adminKit\form::textbox() must implement interface mtekk\adminKit\setting\setting, null given, called in /web/app/plugins/breadcrumb-navxt/class.bcn_admin.php on line 429 and defined in /web/app/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit_form.php:179
    Stack trace:
    #0 /web/app/plugins/breadcrumb-navxt/class.bcn_admin.php(429): mtekk\adminKit\form->textbox(NULL, ‘6’, false, ‘The template fo…’)
    #1 /web/wp/wp-includes/class-wp-hook.php(307): bcn_admin->admin_page(”)
    #2 /web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
    #3 /web/wp/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
    #4 /web/wp/wp-admin/admin.php(259): do_action(‘settings_page_b…’)
    #5 /web/wp/wp-admin/optio

    It’s working on the website frontend but not in the admin, I cannot set and save your plugins’s settings. Is there a way to fix this ? Even a quickfix by editing a file while you fix the issue in a future release ?

    For info it’s working fine on my local machine (using PHP 8.1), I’ve got the problem only in production. Is it linked with the PHP version ?

    Kind regards

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

    (@mtekk)

    This is likely due to some code adding a custom post type at a time that is too late for Breadcrumb NavXT to pick up on (after init level 9000). The next version of Breadcrumb NavXT (7.1) will warn you about the offending post type (and not attempt to generate settings for it).

    Thread Starter Pierre

    (@ierpe)

    Hi and thanks for your answer.

    I did not declare any CPT myself for this project, so I guess it’s coming from a plugin if that’s the problem.

    I’ve made a full search on the register_post_type function and had a look at the files that are registering CPTs, so far I can see that they do not specify an init level, or when they do it’s 5 or less.

    Do you have a release date planned for the 7.1 version ? Or is there a beta already I could test ?

    Cheers

    Plugin Author John Havlik

    (@mtekk)

    The goal is to get 7.1 released around 2022/7/5. For the time being, the development branch can be tried (available on GitHub: https://github.com/mtekk/Breadcrumb-NavXT/tree/swimmer), it’s more of an alpha than beta, but as long as you aren’t trying to use the import/export feature (where things are currently being worked on), things should work fine.

    Thread Starter Pierre

    (@ierpe)

    Thanks, it seems to work with the beta version I do not have the error anymore

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘E_ERROR after update’ is closed to new replies.