Site crashes after latest update
- This topic has 15 replies, 10 voices, and was last updated 1 week ago by
Paul King.
-
AuthorPosts
-
August 13, 2025 at 7:25 PM #48696
rikmulder
ParticipantAfter 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
August 13, 2025 at 9:17 PM #48702Aishwarya
ParticipantYes, 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!
August 13, 2025 at 9:49 PM #48703Peter
ModeratorHello 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.
August 13, 2025 at 10:32 PM #48704rikmulder
ParticipantHi 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
August 13, 2025 at 10:59 PM #48706webredox2
ParticipantMB Term Meta plugin issue. Warning: Attempt to read property "base" on null in src/MetaBox.php on line 77.
Need urgent help.
August 14, 2025 at 12:16 AM #48707netalys
ParticipantSame for me : Call to undefined function MBTM\get_current_screen()
August 14, 2025 at 12:22 AM #48708Log
ParticipantAdditional 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
August 14, 2025 at 12:24 AM #48709netalys
ParticipantDoes it mean that with AIO installed, we don't need Metabox plugin anymore ?
August 14, 2025 at 12:55 AM #48710rikmulder
ParticipantHi 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!
August 14, 2025 at 12:58 AM #48711dijitalgezgin
ParticipantHi,
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
August 14, 2025 at 12:59 AM #48712dijitalgezgin
ParticipantPlease, it's important for our customer. @rilwis
August 14, 2025 at 3:18 AM #48717Log
ParticipantDoes 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.
August 14, 2025 at 6:26 AM #48718thinkbox
ParticipantI 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();August 14, 2025 at 2:48 PM #48725Anh Tran
KeymasterHi, we have a fix for this bug here. Can you please try it and let us know if that fixes?
August 14, 2025 at 5:05 PM #48730dijitalgezgin
ParticipantThe update released an hour ago fixed the issue. Thank you very much.
-
AuthorPosts
- You must be logged in to reply to this topic.