• Resolved stevenjc

    (@stevenjc)


    Hi,

    Understand you’re working on fatal errors in 7.0 in some casess

    Here’s some more info that might help:

    We had 6 websites down with a fatal error

    An error of type E_ERROR was caused in line 33 of the file /home/***/public_html/wp-content/plugins/breadcrumb-navxt/includes/adminKit/setting/class-mtekk_adminkit_setting_absint.php. Error message: Uncaught TypeError: Argument 2 passed to mtekk\adminKit\setting\setting_absint::__construct() must be of the type int, string given, called in /home/*****/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php on line 407 and defined in /home/*****/public_html/wp-content/plugins/breadcrumb-navxt/includes/adminKit/setting/class-mtekk_adminkit_setting_absint.php:33 Stack trace: #0 /home/*****/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(407): mtekk\adminKit\setting\setting_absint->__construct('post_post_root', '', 'Post Root Page') #1 /home/*****/public_html/wp-content/plugins/breadcrumb-navxt/breadcrumb-navxt.php(121): breadcrumb_navxt->setup_setting_defaults() #2 /home/*****/public_html/wp-includes/class-wp-hook.php(292): breadcrumb_navxt->init('') #3 /home/*****/public_html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #4 /home/*****/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #5 /home/*****/public_html/wp-settings

    By enabling WP recovery mode could login, and see

    This plugin failed to load properly and is paused during recovery mode
    and the error message above

    Could then disable or delete the plugin to get the sites back up.

    Sites all running PHP 7.4

    Nothing in themes on these hooking into bcn_settings_init in theme, but from what I’m reading possibily something in another plugin?

    In one case the fatal error still triggered/brought down a site where the plugin was installed but not active.

    In 2 other cases on a different server the update didn’t trigger the error (still php 7.4 though)

    Thanks for your work and hope this helps.

    • This topic was modified 3 years, 3 months ago by stevenjc.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author John Havlik

    (@mtekk)

    Thanks for the report. This specific error is being tracked in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/265 It was reported by another user as well, and appears to be caused by what get_option('page_**'); returns when a page for posts/front page hasn’t been set (an oversight on my part). If you want, you can test out the master branch from github, it should have the proposed fix already applied.

    I got fatal error after an update as follows:

    
    PHP Warning:  include(/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    Warning: include(/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    PHP Warning:  include(/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    Warning: include(/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    PHP Warning:  include(): Failed opening '/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/usr/share/php') in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    Warning: include(): Failed opening '/home/html/example.com/wp-content/plugins/wp-super-cache/wp-cache-base.php' for inclusion (include_path='.:/usr/share/php') in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 99
    PHP Warning:  include_once(/home/html/example.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
    Warning: include_once(/home/html/example.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php): failed to open stream: No such file or directory in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
    PHP Warning:  include_once(): Failed opening '/home/html/example.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:/usr/share/php') in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
    Warning: include_once(): Failed opening '/home/html/example.com/wp-content/plugins/wp-super-cache/ossdl-cdn.php' for inclusion (include_path='.:/usr/share/php') in /home/clients/example.com/wp-content/plugins/wp-super-cache/wp-cache.php on line 122
    PHP Fatal error:  Uncaught Error: Call to a member function get_value() on string in /home/clients/example.com/wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538
    

    I will report this issue to project’s GitLab.

    Fatal error: Uncaught Error: Call to a member function get_value() on string in C:\Users\samok\Local Sites\estand\app\public\wp-content\plugins\breadcrumb-navxt\includes\adminKit\class-mtekk_adminkit.php:538

    Thread Starter stevenjc

    (@stevenjc)

    Thanks for the update @mtekk.

    Will check out the GitHub update ASAP.

    More info: those sites did all all have a static page set for front page though.

    Getting the same error.
    PHP Fatal error: Uncaught Error: Call to a member function get_value() on string in /wp-content/plugins/breadcrumb-navxt/includes/adminKit/class-mtekk_adminkit.php:538

    Tried the patch on Github and got the same result. But are you saying it is conflict with other plugins?

    I’ve rolled back to v6.6.0.
    My front page and blog page are both set to static pages.

    Keep us informed.
    Thanks.

    Plugin Author John Havlik

    (@mtekk)

    @jberg1 The call to get_value() on string is believed to be an issue with non-compatible code that sets a setting to a string instead of something that complies with the mtekk\adminKit\setting interface. This is believed to be issues with old/non-compatible 3rd party code (all of the extensions to Breadcrumb NavXT, including Multidimension Extensions were updated with Breadcrumb NavXT 7.0 compatibility prior to the release of Breadcrumb NavXT 7.0). Thanks for reporting the the string/get_value issue wasn’t resolved in the master branch on GitHub. I updated my testbed to include prototype ‘bad code’ and found another error, which has now been fixed (available in the GitHub master branch).

    Get_field fatal error in combination with Breadcrumb NavXT WPML Extensions.

    • This reply was modified 3 years, 2 months ago by R3dRidl3.
    Plugin Author John Havlik

    (@mtekk)

    @r3dridl3 You probably need to update the extension plugin to a version compatible with Breadcrumb NavXT 7.0.x.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘7.0 Fatal errors – detailed info’ is closed to new replies.