• If we update the plugin beyond v6.6.0, we get the following fatal error, taking the front-end of the site offline (Wp Admin Dashboard works fine). Env:
    – php 7.4.28 as fastcgi (fcgid)
    – httpd 2.4.6 (CentOS)

    PHP Catchable fatal error:  Argument 1 passed to mtekk\\adminKit\\setting\\setting_bool::__construct() must be an instance of mtekk\\adminKit\\setting\\string, string given, called in /home/xxxxxx/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php on line 341 and defined in /home/xxxxxx/public_html/wp-content/plugins/breadcrumb-navxt/includes/adminKit/setting/class-mtekk_adminkit_setting_bool.php on line 33
     PHP Stack trace:
     PHP   1. {main}() /home/xxxxxx/public_html/index.php:0
     PHP   2. require() /home/xxxxxx/public_html/index.php:17
     PHP   3. require_once() /home/xxxxxx/public_html/wp-blog-header.php:13
     PHP   4. require_once() /home/xxxxxx/public_html/wp-load.php:50
     PHP   5. require_once() /home/xxxxxx/public_html/wp-config.php:76
     PHP   6. do_action() /home/xxxxxx/public_html/wp-settings.php:587
     PHP   7. WP_Hook->do_action() /home/xxxxxx/public_html/wp-includes/plugin.php:474
     PHP   8. WP_Hook->apply_filters() /home/xxxxxx/public_html/wp-includes/class-wp-hook.php:331
     PHP   9. call_user_func_array:{/home/xxxxxx/public_html/wp-includes/class-wp-hook.php:307}() /home/xxxxxx/public_html/wp-includes/class-wp-hook.php:307
     PHP  10. breadcrumb_navxt->init() /home/xxxxxx/public_html/wp-includes/class-wp-hook.php:307
     PHP  11. breadcrumb_navxt::setup_setting_defaults() /home/xxxxxx/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php:121
     PHP  12. mtekk\\adminKit\\setting\\setting_bool->__construct() /home/xxxxxx/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php:341
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    So, that’s interesting. It appears your install is being extra sensitive to namespacing/not behaving as other installs do regarding namespacing (normal/built-in classes aren’t being recognized). This is odd as in most PHP installs the built-in classes can’t be namespaced (triggers an error, that is mtekk\adminKit\setting\string could never be a valid class name). I can think of a way to try clearing this up (prefix all default class references with \) though I will need someone that is actually experiencing the issue to test it (or will have to figure out why some PHP installs can do this). I’m tracking this in the following github issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/275

    Plugin Author John Havlik

    (@mtekk)

    Looking at this more, it looks like the problem is something with your setup. I can not prepend the default classes with \ in PHP 7.0 and newer. Are you sure that PHP 7.4.28 is actually being used (by chance is some other, potentially older, version loading)? I set my testbed to use PHP 7.4.28 in fpm (fcgi) and apache2 2.4.46 and am not seeing the behavior you are describing. Do you have any information regarding your PHP config file/setup as my PHP config file is using pretty much the default settings that my distro suggests (funtoo/gentoo).

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

The topic ‘Fatal Error > v6.6.0: setting_bool::__construct()’ is closed to new replies.