Critical ERROR
-
Breadcrumb NavXT LAST UPDATE give a critical error
breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538
please solve soon
thanks
-
Uncaught Error: Call to a member function get_value() on string
not a php version problemThis 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.
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.
Can you check to see if there is anything hooked into the
bcn_settings_initfilter? The only way the error should be possible is when the settings array contains something that is not compliant with themtekk\adminKit\setting\settinginterface, 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).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_initfilter. My guess is that either your theme, or some functions.php or site specific plugin is using thebcn_settings_initfilter 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_inityou 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).
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 holidaysAs 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).
Very kind! thanks
-
This reply was modified 3 years, 12 months ago by
The topic ‘Critical ERROR’ is closed to new replies.