Custom Fields
Support Meta Box for Yoast SEO Problem with Meta Box For Yoast SEO

  • Creator
  • #16386
    Resolved Alessandro Lioce

    Hi, can you fix the problem for the code below?
    If I disable Meta Box For Yoast SEO, it's ok.


    $form = '[mb_user_profile_register id="form" label_submit="'.esc_attr__('Register', 'dealers').'" confirmation="'.esc_attr__('Your account has been created successfully. Wait for activation.', 'dealers').'"]';
    echo do_shortcode( $form );

    <form class="rwmb-form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="register-form"><input type="hidden" name="rwmb_form_config" value="8170da246c963bd3f25592745ba02523"><br>
    <b>Fatal error</b>: Uncaught Error: Call to undefined function get_current_screen() in /wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-yoast-seo/mb-yoast-seo.php:36

    Stack trace:
    #0 /wp-includes/class-wp-hook.php(286): MB_Yoast_SEO->enqueue(Object(RW_Meta_Box))
    #1 /wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #3 /wp-content/plugins/meta-box/inc/meta-box.php(179): do_action('rwmb_enqueue_sc...', Object(RW_Meta_Box))
    #4 /wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Forms/Base.php(55): RW_Meta_Box->enqueue()
    #5 /wp-content/plugins/meta-box-aio/vendor/meta-box/mb-user-profile/src/Shortcodes/Base.php(47): MBUP\Forms in <b>/wp-content/plugins/meta-box-aio/vendor/meta-box/meta-box-yoast-seo/mb-yoast-seo.php</b> on line <b>36</b><br>

Viewing 1 replies (of 1 total)
  • Author
  • #16400
    Anh Tran

    Hi Alessandro, I've just fixed it in the version 1.3.5 of the Meta Box for Yoast SEO. Please update the extension. The update for AIO will come a little later.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.