After updating BeTheme theme-functions.php causes site to go down
Hello
I updated BeTheme on a website from 20.9.8.3 to 21.2 and on another website I updated it from 21.1.8 to 21.2
After the updates both sites wouldn't load, only a white page displayed. I discovered that when I removed or renamed the theme-functions.php file that is located at betheme-child/functions/theme-functions.php the site came back up. If the file was on the site but it didn't contain any code the sites went down again.
I need to know why this happened and how I can prevent it from happening on other sites as I have about 20+ sites that need to be updated.
After the updates both sites wouldn't load, only a white page displayed. I discovered that when I removed or renamed the theme-functions.php file that is located at betheme-child/functions/theme-functions.php the site came back up. If the file was on the site but it didn't contain any code the sites went down again.
I need to know why this happened and how I can prevent it from happening on other sites as I have about 20+ sites that need to be updated.
Thanks
Comments
This is because you're using an old method for calling functions in a child theme. Recent changes in Envato terms & conditions forced us to make some modifications to the theme files. One of those changes is replacing "mfn_opts_show()" to "echo mfn_opts_get()". This is why your child theme does not work after the theme update.
To make your Child Theme work again, you have to find that function in all of your modified files( in the child theme) and replace the 'mfn_opts_show()' to 'echo mfn_opts_get()'
Look at the screenshot example to make it more understandable: https://pasteboard.co/IdJyIOZ.jpg
thanks
get into that page (which is white when loaded), then you'll see what is the problem - send us the screenshot of that error message.