Fatal Error When Updating MetaBox AIO

Support General Fatal Error When Updating MetaBox AIO

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #43280
    Ahmed E.Ahmed E.
    Participant

    When I update the MetaBox AIO plugin, the update process does not finish and I get a fatal error.

    The error is:
    Fatal error: Uncaught Error: Call to undefined function mb_register_model() in the file where I added the code to register a custom model.

    This is not the first time I get this error, and I need to create an empty function with the same name to bypass the error and restore the website.

    Can you fix this problem asap?

    #43292
    PeterPeter
    Moderator

    Hello,

    This function is located in the file wp-content/plugins/meta-box-aio/vendor/meta-box/mb-custom-table/functions.php

    You can check if the file and function are there. If not, you can download the plugin Meta Box AIO manually from the My Account page and install it on your site to update the plugin.
    https://metabox.io/my-account/

    #43293
    PeterPeter
    Moderator

    Or use the code to check if the function exists and implement the code, for example:

    if ( function_exists( 'mb_register_model' ) ) {
    // add your code here
    }
    #43296
    Ahmed E.Ahmed E.
    Participant

    Hi Peter,

    The problem is not permanent, as I said it happens during the update process of the plugin.

    So, I believe it is related to the update not the plugin itself.

    During the update, the plugin might disables all the child plugins (addons) which causes the problem.

    #43308
    PeterPeter
    Moderator

    Yes, thanks for your details. But I think the update process would take a few seconds or less than two minutes to see the error. You can also check the function existed that I mentioned above to prevent this issue.

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