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
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
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
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
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
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
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
Thanks