• Resolved emanuelcelano

    (@emanuelcelano)


    Breadcrumb NavXT LAST UPDATE give a critical error
    breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538
    please solve soon
    thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter emanuelcelano

    (@emanuelcelano)

    Uncaught Error: Call to a member function get_value() on string
    not a php version problem

    Plugin Author John Havlik

    (@mtekk)

    This looks to be the same issue described in this thread: https://wordpress.org/support/topic/error-on-new-version-7/ please see my reply in that thread and see if my suggestion helps.

    Thread Starter emanuelcelano

    (@emanuelcelano)

    waiting for your fix I applied this solution and the plugin is back to working correctly

    On this file
    path : root plugin
    file : breadcrumb-navxt.php
    line 177
    //'hseparator' => $this->settings['hseparator']->get_value()
    
    path : breadcrumb-navxt/includes/adminKit
    file : class-mtekk_adminkit.php
    line 538
    //else
    //{
    //	$opts[$key] = $setting->get_value();
    //}
    • This reply was modified 3 years, 12 months ago by emanuelcelano.
    Plugin Author John Havlik

    (@mtekk)

    Can you check to see if there is anything hooked into thebcn_settings_init filter? The only way the error should be possible is when the settings array contains something that is not compliant with the mtekk\adminKit\setting\setting interface, in this case a string. Given you had to comment out the hseparator setting, it looks like that is what is getting set as a string (as to why, that is the question).

    Plugin Author John Havlik

    (@mtekk)

    Looking at the codebase, given you had to comment out line 177, this is not a Breadcrumb NavXT issue, per-say. I’m very confident you have something that is changing the hseparator to a string, likely though the bcn_settings_init filter. My guess is that either your theme, or some functions.php or site specific plugin is using the bcn_settings_init filter to manually set the breadcrumb separator (not really the intent of that filter, and to ‘fix’ this issue it’s location will be moving so it can not override the defaults, see https://github.com/mtekk/Breadcrumb-NavXT/issues/264).

    The way to check if this is the case is to undo your previous changes and comment out line 571 in breadcrumb-navxt.php.

    To see what may be hooked into bcn_settings_init you can try adding something like:

    var_dump($GLOBALS['wp_filter']['bcn_settings_init']);

    to a test plugin and see the results (what functions are registered).

    Thread Starter emanuelcelano

    (@emanuelcelano)

    Thanks a lot for the advice. I appreciate it.
    However, I don’t have the time to do these checks
    good day and wishes for happy holidays

    Plugin Author John Havlik

    (@mtekk)

    As a heads up, while I’ll make a change that will prevent the overriding of the defaults by others (moving the filter location), it will result in whatever extra code you have that was performing the setting override no longer functioning (otherwise it won’t fix the issue).

    Thread Starter emanuelcelano

    (@emanuelcelano)

    Very kind! thanks

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Critical ERROR’ is closed to new replies.