Critical Error using [mb_frontend_form] shortcode

Support MB Frontend Submission Critical Error using [mb_frontend_form] shortcodeResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46230

    When I copy/paste mb_frontend_form shortcode into a new page, it seems to be ok, and I can continue editing, as far as I don't exit from the editor..
    However, if I view the page, I get critical error.
    Also, when opening again the editor, I also get critical error.
    Only way to edit again is disabling mb frontend edition.

    From WP error log:
    [24-Aug-2024 10:52:45 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "add_media_button" not found or invalid function name in /home/webfaci1/<mydomain>.com/wp-includes/class-wp-hook.php:324
    Stack trace:
    #0 /home/webfaci1/<mydomain>.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #1 /home/webfaci1/<mydomain>.com/wp-includes/plugin.php(517): WP_Hook->do_action()
    #2 /home/webfaci1/<mydomain>.com/wp-includes/class-wp-editor.php(238): do_action()
    #3 /home/webfaci1/<mydomain>.com/wp-includes/general-template.php(3826): _WP_Editors::editor()
    #4 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box/inc/fields/wysiwyg.php(47): wp_editor()
    #5 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box/inc/field.php(544): RWMB_Wysiwyg_Field::html()
    #6 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box/inc/field.php(36): RWMB_Field::call()
    #7 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box/inc/field.php(544): RWMB_Field::show()
    #8 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/templates/post/content.php(20): RWMB_Field::call()
    #9 /home/webfaci1/<mydomain>.com/wp-includes/template.php(812): require('/home/webfaci1/...')
    #10 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/gamajo/template-loader/class-gamajo-template-loader.php(255): load_template()
    #11 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/gamajo/template-loader/class-gamajo-template-loader.php(118): Gamajo_Template_Loader->locate_template()
    #12 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Post.php(50): Gamajo_Template_Loader->get_template_part()
    #13 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Form.php(87): MBFS\Post->render()
    #14 /home/webfaci1/<mydomain>.com/wp-content/plugins/meta-box-aio/vendor/meta-box/mb-frontend-submission/src/Shortcode.php(36): MBFS\Form->render()
    #15 /home/webfaci1/<mydomain>.com/wp-includes/shortcodes.php(434): MBFS\Shortcode->shortcode()
    #16 [internal function]: do_shortcode_tag()
    #17 /home/webfaci1/<mydomain>.com/wp-includes/shortcodes.php(273): preg_replace_callback()
    #18 /home/webfaci1/<mydomain>.com/wp-includes/class-wp-hook.php(324): do_shortcode()
    #19 /home/webfaci1/<mydomain>.com/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    #20 /home/webfaci1/<mydomain>.com/wp-includes/blocks/post-content.php(50): apply_filters()
    #21 /home/webfaci1/<mydomain>.com/wp-includes/class-wp-block.php(519): render_block_core_post_content()
    #22 /home/webfaci1/<mydomain>.com/wp-includes/class-wp-block.php(499): WP_Block->render()
    #23 /home/webfaci1/<mydomain>.com/wp-includes/blocks.php(2061): WP_Block->render()
    #24 /home/webfaci1/<mydomain>.com/wp-includes/blocks.php(2113): render_block()
    #25 /home/webfaci1/<mydomain>.com/wp-includes/block-template.php(260): do_blocks()
    #26 /home/webfaci1/<mydomain>.com/wp-includes/template-canvas.php(12): get_the_block_template_html()
    #27 /home/webfaci1/<mydomain>.com/wp-includes/template-loader.php(106): include('/home/webfaci1/...')
    #28 /home/webfaci1/<mydomain>.com/wp-blog-header.php(19): require_once('/home/webfaci1/...')
    #29 /home/webfaci1/<mydomain>.com/index.php(17): require('/home/webfaci1/...')
    #30 {main}
    thrown in /home/webfaci1/<mydomain>.com/wp-includes/class-wp-hook.php on line 324

    #46232

    I think this error is related to "Next Level Marketing", from Squirrly, not yet released.
    https://www.squirrly.co/marketingtools/next-level-marketing-ai-by-squirrly/

    #46244
    PeterPeter
    Moderator

    Hello Oscar,

    The function add_media_button() appears in the error log, is not available in the Meta Box or WordPress source code. It could be in a third party plugin (Squirrly) or the theme. You can try to deactivate all plugins except Meta Box, MB extension plugins, switch to a standard theme of WordPress and check the issue again.

    #46266

    Yes, it is solved if:
    - I disable Squirrly next gen.
    - Or not using "content" in MB frontend form.

    Second option is good enough for me in my case.

    I've also reported it to Squirrly.

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