-
Notifications
You must be signed in to change notification settings - Fork 417
Open
Description
After updating MetaBox to version 5.7.2, I encountered a fatal PHP error on my frontend form that utilizes the taxonomy field. All other plugins are at their latest versions, and the issue seems to be related to the change mentioned in the changelog:
- Fix taxonomy field remove default meta box applied for all post types
With the Remove default meta box option turned ON in my taxonomy field, I experienced a fatal error. After disabling this option, I was able to successfully update to the latest MB version (currently 5.7.5).
Error:
[20-Aug-2023 08:05:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function get_current_screen() in D:\LOCAL\LOCAL\bsbaza\app\public\wp-admin\includes\template.php:1479
Stack trace:
#0 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\meta-box\inc\fields\taxonomy.php(312): remove_meta_box('tagsdiv-post_ta...', NULL, 'side')
#1 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\meta-box\inc\fields\taxonomy.php(303): RWMB_Taxonomy_Field::remove_default_meta_box(Array)
#2 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\meta-box\inc\field.php(535): RWMB_Taxonomy_Field::admin_enqueue_scripts(Array)
#3 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\meta-box\inc\meta-box.php(134): RWMB_Field::call(Array, 'admin_enqueue_s...')
#4 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\mb-frontend-submission\src\Form.php(84): RW_Meta_Box->enqueue()
#5 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\mb-frontend-submission\src\Shortcode.php(35): MBFS\Form->render()
#6 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\shortcodes.php(395): MBFS\Shortcode->shortcode(Array, '', 'mb_frontend_for...')
#7 [internal function]: do_shortcode_tag(Array)
#8 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\shortcodes.php(235): preg_replace_callback('/\\[(\\[?)(mb_fro...', 'do_shortcode_ta...', '[mb_frontend_fo...')
#9 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\widgets\shortcode.php(130): do_shortcode('[mb_frontend_fo...')
#10 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\controls-stack.php(2243): Elementor\Widget_Shortcode->render()
#11 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\widget-base.php(609): Elementor\Controls_Stack->render_by_mode()
#12 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\widget-base.php(750): Elementor\Widget_Base->render_content()
#13 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\element-base.php(449): Elementor\Widget_Base->print_content()
#14 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\element-base.php(1360): Elementor\Element_Base->print_element()
#15 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\base\element-base.php(449): Elementor\Element_Base->print_content()
#16 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\core\base\document.php(1711): Elementor\Element_Base->print_element()
#17 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\core\base\document.php(1106): Elementor\Core\Base\Document->print_elements(Array)
#18 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\frontend.php(1179): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
#19 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\includes\frontend.php(1074): Elementor\Frontend->get_builder_content(17)
#20 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\class-wp-hook.php(310): Elementor\Frontend->apply_builder_in_content('<style>/*! elem...')
#21 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\plugin.php(205): WP_Hook->apply_filters('<style>/*! elem...', Array)
#22 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\post-template.php(256): apply_filters('the_content', '<style>/*! elem...')
#23 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\modules\page-templates\module.php(190): the_content()
#24 [internal function]: Elementor\Modules\PageTemplates\Module->print_callback()
#25 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\modules\page-templates\module.php(207): call_user_func(Array)
#26 D:\LOCAL\LOCAL\bsbaza\app\public\wp-content\plugins\elementor\modules\page-templates\templates\header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
#27 D:\LOCAL\LOCAL\bsbaza\app\public\wp-includes\template-loader.php(106): include('D:\\LOCAL\\LOCAL\\...')
#28 D:\LOCAL\LOCAL\bsbaza\app\public\wp-blog-header.php(19): require_once('D:\\LOCAL\\LOCAL\\...')
#29 D:\LOCAL\LOCAL\bsbaza\app\public\index.php(17): require('D:\\LOCAL\\LOCAL\\...')
#30 {main}
thrown in D:\LOCAL\LOCAL\bsbaza\app\public\wp-admin\includes\template.php on line 1479
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels