Getting PHP Fatal Error after updating the wordpress and theme

hi there,

I have updated the wordpress and updated betheme as well to its latest version but it just broke my website and nothing is showing on front end. below is the error log I am seeing in my hosting server which is WPEngine.com

PHP Fatal error: Uncaught Error: Call to undefined function mfn_opts_show() in /nas/content/live/htstg/wp-content/themes/betheme-child/header.php:37\nStack trace:\n#0 /nas/content/live/htstg/wp-includes/template.php(704): require_once()\n#1 /nas/content/live/htstg/wp-includes/template.php(653): load_template('/nas/content/li...', true)\n#2 /nas/content/live/htstg/wp-includes/general-template.php(41): locate_template(Array, true)\n#3 /nas/content/live/htstg/wp-content/themes/betheme/page.php(10): get_header()\n#4 /nas/content/live/htstg/wp-includes/template-loader.php(77): include('/nas/content/li...')\n#5 /nas/content/live/htstg/wp-blog-header.php(19): require_once('/nas/content/li...')\n#6 /nas/content/live/htstg/index.php(17): require('/nas/content/li...')\n#7 {main}\n thrown in /nas/content/live/htstg/wp-content/themes/betheme-child/header.php on line 37, referer: https://htstg.wpengine.com/wp-admin/

Your quick response will be highly appreciated. 

thanks

Comments

  • edited March 2019
    Hi,
    Previously, you had to include the information in functions.php file
    which files were changed to turn on that change on the theme.

    Right now, you don't have to include that information, your changes will be
    automatically added without leaving a note in a functions.php file - of
    course,
    you have to turn on the Child Theme on your website. Of course, to make
    that change we had to change the structure of Child Theme a little bit.

    To make your Child Theme work again, you have to find that function in your modifcation file(functions.php) and replace the 'mfn_opts_show()' to 'echo mfn_opts_get()'

    After that, everything will be working fine, we had to make that change because of the new envato rules, more about it here: https://help.author.envato.com/hc/en-us/articles/360000481243#h_674316188621522302914837
    Thanks
  • edited March 2019
    So that means I have to go through all the files of the theme and replace mfn_opts_show() with echo mfn_opts_get() correct ?

    If yes, how can I easily do that instead of opening each file replacing the code, save it and re upload to server. 

    Also, can you name the files I need to change the code in?

    thanks
  • Not in all of the files.
    You need to replace mfn_opts_show() with echo mfn_opts_get()
    in the functions.php file in the child theme.

    I edited the message above to be more user-friendly.
    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.