Site crashes after latest update

Support General Site crashes after latest update

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #48696
    rikmulderrikmulder
    Participant

    After the latest update (5.10.12) my site gives a critical WordPress error, I reverted to the previous version (5.10.11) and now it works again. Disabled auto update for now. In my error logs I came across these mentions:

    PHP message: PHP Fatal error: Uncaught Error: Call to undefined function MBTM\\get_current_screen() in /home/admin/domains/vakantieparkennederlandzoeken.nl/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-term-meta/src/MetaBox.php:74\nStack trace:\n#0 /home/admin/domains/vakantieparkennederlandzoeken.nl/public_html/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-term-meta/src/MetaBox.php(48): MBTM\\MetaBox->is_edit_screen()\n#1 /home/admin/domains/vakantieparkennederlandzoeken.nl/public_html/wp-includes/class-wp-hook.php(324): MBTM\\MetaBox->enqueue()\n#2 /home/admin/domains/vakantieparkennederlandzoeken.nl/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#3 /home/admin/domains/vakantieparkennederlandzoeken.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#4

    Any idea what is oing wrong?

    Regards, Rik

    #48702
    AishwaryaAishwarya
    Participant

    Yes, same here with V5.10.12.

    Fatal error: Uncaught Error: Call to undefined function MBTM\get_current_screen() in /Applications/MAMP/htdocs
    ...
     {main} thrown in /Applications/MAMP/htdocs/customer/wp-content/plugins/customer-core/includes/metabox/mb-term-meta/src/MetaBox.php on line 74

    It's coming from Term meta extension.

    Looking for a fix asap.

    Thanks!

    #48703
    PeterPeter
    Moderator

    Hello Rik,

    Thanks for your feedback.

    I'm not able to reproduce the issue on my site with Meta Box 5.10.12 and Meta Box AIO 2.3.1. You can try to deactivate Meta Box single plugin and use only Meta Box AIO to fix the issue.

    #48704
    rikmulderrikmulder
    Participant

    Hi Peter,

    thanks for the reply, I just deactivated the Meta Box plugin and only use the AIO plugin now. Everything seems to keep working. I never knew these two could be used separately. I allways thought AIO was an addon to the original plugin. Am I correct I don't need the standalone Meta Box plugin anyway when using Mea Box AIO?

    Kind regards,

    Rik

    #48706
    webredox2webredox2
    Participant

    MB Term Meta plugin issue. Warning: Attempt to read property "base" on null in src/MetaBox.php on line 77.

    Need urgent help.

    #48707
    netalysnetalys
    Participant

    Same for me : Call to undefined function MBTM\get_current_screen()

    #48708
    LogLog
    Participant

    Additional error output:

    FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function MBTM\get_current_screen() in /www/public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-term-meta/src/MetaBox.php:74
    Stack trace:
    #0 /www/public/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-term-meta/src/MetaBox.php(48): MBTM\MetaBox->is_edit_screen()
    #1 /www/public/wp-includes/class-wp-hook.php(324): MBTM\MetaBox->enqueue('')
    #2 /www/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #3 /www/public/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #4 /www/public/wp-includes/script-loader.php(2483): do_action('enqueue_block_a...')
    #5 /www/public/wp-includes/class-wp-hook.php(324): wp_common_block_scripts_and_styles('')

    Site works when only using Meta Box AIO as suggested by Peter. You can use wp-cli to disable the Meta Box plugin if needed:

    wp plugin deactivate meta-box

    #48709
    netalysnetalys
    Participant

    Does it mean that with AIO installed, we don't need Metabox plugin anymore ?

    #48710
    rikmulderrikmulder
    Participant

    Hi Peter,

    When deactivating Meta Box (not AIO, it's still activated) some meta values aren't displayed on the frontend anymore, others are.

    i.e. $value= rwmb_meta( 'example' );

    When I use print_r($value) it's empty, when I activate the plugin again (previous version) it shows the content.

    Will run through this tomorrow to see if I can fix it, just wanted to let you know.

    Kind regards!

    #48711
    dijitalgezgindijitalgezgin
    Participant

    Hi,

    I'm getting same error. The free version on WordPress.org is installed, and you also have the MB Term Meta extension. That's why it gives this error.

    Fatal error: Uncaught Error: Call to undefined function MBTM\get_current_screen() in /home/gloriath/public_html/demo/platea/demo/wp-content/plugins/platea-core/meta-box-extensions/mb-term-meta/src/MetaBox.php:74 Stack trace: #0 /home/gloriath/public_html/demo/platea/demo/wp-content/plugins/platea-core/meta-box-extensions/mb-term-meta/src/MetaBox.php(48): MBTM\MetaBox->is_edit_screen() #1 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(324): MBTM\MetaBox->enqueue() #2 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #3 /home/gloriath/public_html/demo/platea/demo/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /home/gloriath/public_html/demo/platea/demo/wp-includes/script-loader.php(2483): do_action() #5 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(324): wp_common_block_scripts_and_styles() #6 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/gloriath/public_html/demo/platea/demo/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/gloriath/public_html/demo/platea/demo/wp-includes/script-loader.php(2299): do_action() #9 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(324): wp_enqueue_scripts() #10 /home/gloriath/public_html/demo/platea/demo/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /home/gloriath/public_html/demo/platea/demo/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /home/gloriath/public_html/demo/platea/demo/wp-includes/general-template.php(3192): do_action() #13 /home/gloriath/public_html/demo/platea/demo/wp-content/themes/platea/header.php(10): wp_head() #14 /home/gloriath/public_html/demo/platea/demo/wp-includes/template.php(810): require_once('/home/gloriath/...') #15 /home/gloriath/public_html/demo/platea/demo/wp-includes/template.php(745): load_template() #16 /home/gloriath/public_html/demo/platea/demo/wp-includes/general-template.php(48): locate_template() #17 /home/gloriath/public_html/demo/platea/demo/wp-content/themes/platea/page.php(5): get_header() #18 /home/gloriath/public_html/demo/platea/demo/wp-includes/template-loader.php(106): include('/home/gloriath/...') #19 /home/gloriath/public_html/demo/platea/demo/wp-blog-header.php(19): require_once('/home/gloriath/...') #20 /home/gloriath/public_html/demo/platea/demo/index.php(17): require('/home/gloriath/...') #21 {main} thrown in /home/gloriath/public_html/demo/platea/demo/wp-content/plugins/platea-core/meta-box-extensions/mb-term-meta/src/MetaBox.php on line 74

    How can I solve this on our themes? @Anh Tran @peter

    #48712
    dijitalgezgindijitalgezgin
    Participant

    Please, it's important for our customer. @rilwis

    #48717
    LogLog
    Participant

    @netalys

    Does it mean that with AIO installed, we don't need Metabox plugin anymore ?

    Yes. See Meta Box AIO Now Includes Meta Box - One Plugin, Full Power!.

    This link recommends uninstalling the original Meta Box plugin if you use Meta Box AIO, but it is not a requirement and there was supposed to be no conflict if both are enabled. However, as we see with this issue, and another I have previously encountered, there have been a few unexpected bugs.

    #48718
    thinkboxthinkbox
    Participant

    I had same issue.
    A get_current_screen() call is being performed inside the custom namespace MBTM. This it should not do.

    I resolved it temporarily by editing the /wp-content/plugins/mb-term-meta/src/MetaBox.php file and adding a php include for the screen.php file. Not necessarily an ideal fix but works til MetaBox fixes the issue and updates.

    so @ line 73 in /wp-content/plugins/mb-term-meta/src/MetaBox.php

    public function is_edit_screen( $screen = null ) {
    require_once( ABSPATH . 'wp-admin/includes/screen.php' ); //<-add this
    $screen = get_current_screen();

    #48725
    Anh TranAnh Tran
    Keymaster

    Hi, we have a fix for this bug here. Can you please try it and let us know if that fixes?

    #48730
    dijitalgezgindijitalgezgin
    Participant

    The update released an hour ago fixed the issue. Thank you very much.

Viewing 15 posts - 1 through 15 (of 16 total)
  • You must be logged in to reply to this topic.