Issue with latest BeTheme Update

After some time i've update from an older version of BeTheme to the latest version (also went from Wordpress 4.x to latest 5.x) and now i get the following error when i try to access some gallery pages:

Fatal error: Uncaught Error: Call to undefined function mfn_builder_print() in /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/wp-content/themes/betheme-child-mydomain/functions/custom_muffin_extenstion.php:15 Stack trace: #0 /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/wp-content/themes/betheme-child-mydomain/single-car.php(38): dmc_mfn_builder_print(2419, Array, true) #1 /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/wp-includes/template-loader.php(98): include('/home/httpd/vho...') #2 /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/wp-blog-header.php(19): require_once('/home/httpd/vho...') #3 /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/index.php(17): require('/home/httpd/vho...') #4 {main} thrown in /home/httpd/vhosts/placeholder.abc/dev.placeholder.abc/cms/wp-content/themes/betheme-child-mydomain/functions/custom_muffin_extenstion.php on line 15

I've found a similar thread but it was with slightly different parameters so i do not know how to get this fixed.

Thanks

Comments

  • Hey,
    from what version were you updating?
    Please try to disable all of your plugins and check if your PHP version is set to 7.0 at least.
    thanks
  • Hi Bryan,
    PHP Version is set to 7.2, the old BeTheme was ~ 1.5y old Version and it's a sub-theme used.
    I found some information that sub-theme handling / calling got changed but only other examples and i was not successful to adapt for my sub-theme.

    this is the code from the file where the error happens (had to remove the first line with php as it blocked me from posting):

    if( ! function_exists( 'dmc_mfn_builder_print' ) )
    {
    /**
    * @DMC Extension of PRINT Muffin Builder
    *
    * @param int $post_id
    * @param bool $content_field
    */
    function dmc_mfn_builder_print( $post_id, $custom_fields = array(), $content_field = false ){

    ob_start();

    mfn_builder_print($post_id, $content_field);

    $out = ob_get_contents();

    ob_end_clean();

    return dmc_parse_placeholders($out, $custom_fields);
    }

    }

    Thanks,
    Thomas
  • Please update your theme to the latest version, here is an instruction on how to update the theme:
    http://themes.muffingroup.com/betheme/documentation/#general
    Theme updates will not delete your content unless you have changed the
    files directly in which case we suggest using a child theme.
    We also recommend creating a backup file.
    Please remove the theme completely from your theme folder and install a
    fresh copy. Do not overwrite files.

    thanks
  • Hi Pablo,
    I've just updated from 21.5.3 to 21.5.4 (and before the update was from some Version 20.x.x where it was working) but still the same issue.
    There is already a child-theme (called it sub-theme before, sorry) in place and the file where the error occurs (the code i posted before) is also in this child-theme.
    I've found here some similar issue but the code in my file is more complex and wasn't able to adapt it similar to that posted solution:
    https://forum.muffingroup.com/betheme/discussion/comment/161889/#Comment_161889

    Thanks,
    Thomas
  • Sorry, but we do not help with the theme files customizations.
    If your problem is related to them, our hands are tied.

    But yes, we had to change it - and you should find these kind of codes "mfn_opts_show()" with finder in your IDE easily.
    Thanks
  • Hi Pablo,
    That's the only file with code in this child-theme i could find and i thought it was somehow generated by the theme itself - but looks like the original web-designer made here some own customization.
    So there is also no paid support available for such cases to get help?
    Thanks,
    Thomas
  • Hey,

    Please send us WordPress dashboard access privately thru the contact form which is on the right side at http://themeforest.net/user/muffingroup#contact and we will check what might be the reason.

    Notice!
    Please attach a link to this forum discussion and ftp credentials.



    Thanks
  • You didn't attach the wordpress login credentials - we need them too.
    Please send what I asked you before once more.
    Thanks
  • Hey,
    Sorry i didn't see the post here, i've just sent the data via email.
    Thanks,
    Thomas
  • So, I commented out the old BeTheme version of displaying the post and appended the new one.

    And it works - the problem was with our old function used in some file.
    Thanks
  • Hey Pablo,

    You are awesome <3 - i thought that it's just some function like this but couldn't get to find out how to change on my own.

    Wish you a wonderful evening.
    Thanks,
    Thomas
  • You guys ever hear of backwards compatibility? Might be worth checking out.
  • Can you explain me in more detail what do you mean by "backwards compatibility", please?

    Thanks
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.