Fatal Error with latest version of Meta Box plugin

Support MB Term Meta Fatal Error with latest version of Meta Box pluginResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #48720
    gerdagerda
    Participant

    Hey there,

    the latest version of the Meta Box plugin is causing a Fatal Error for the MB Term Meta Extension:

    Fatal error: Uncaught Error: Call to undefined function MBTM\get_current_screen() in meta-boxes/mb-term-meta/src/MetaBox.php:74

    The issue is that get_current_screen() is only available in the WordPress admin area, but your enqueue() method is being called on the frontend (you can see wp_head() in the stack trace). The enqueue() method is hooked to wp_enqueue_scripts which runs on both frontend and admin, but get_current_screen() only exists in admin.

    #48721
    closemarketingclosemarketing
    Participant

    I report the same problem...

    Fatal error: Uncaught Error: Call to undefined function MBTM\get_current_screen() in meta-boxes/mb-term-meta/src/MetaBox.php:74

    #48735
    Paul KingPaul King
    Participant

    The latest update may fix the error for you or, if you have both Meta Box and Meta Box AIO installed, disable the Meta Box plugin. It has been included in Meta Box AIO since 2.0.0

    https://support.metabox.io/topic/site-crashes-after-latest-update

    #48736
    PeterPeter
    Moderator

    Hello,

    Please update Meta Box plugin to version 5.10.13 to fix it. Let me know if you still experience this issue.

    Thank you.

    #48795
    gerdagerda
    Participant

    Problem solved in version 5.10.13 . Thank you!

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