Topic Resolution: Resolved
  • Closed
  • Nick Winton
    Spectator
    August 18, 2020 at 1:08 pm #45166

    I just installed the latest theme evolve Plus v 2.9.9.8
    When I try to use a live preview of a Demo Awesome theme I get error message. I get the exact same error message if I look at the Theme4Press website to show a demo.

    I am using MacBook Pro running Catalina with all updates installed and using browser Safari.
    My website is using WordPress 5.5 with all updates and PHP 7.4

    This is the full error message:

    Fatal error: Uncaught Error: Call to undefined function wp_body_open() in /var/www/www-root/data/www/demo.theme4press.com/wp-content/themes/evolve-plus/header.php:21 Stack trace: #0 /var/www/www-root/data/www/demo.theme4press.com/wp-includes/template.php(704): require_once() #1 /var/www/www-root/data/www/demo.theme4press.com/wp-includes/template.php(653): load_template(‘/var/www/www-ro…’, true) #2 /var/www/www-root/data/www/demo.theme4press.com/wp-includes/general-template.php(41): locate_template(Array, true) #3 /var/www/www-root/data/www/demo.theme4press.com/wp-content/themes/evolve-plus/front-page.php(11): get_header() #4 /var/www/www-root/data/www/demo.theme4press.com/wp-includes/template-loader.php(77): include(‘/var/www/www-ro…’) #5 /var/www/www-root/data/www/demo.theme4press.com/wp-blog-header.php(19): require_once(‘/var/www/www-ro…’) #6 /var/www/www-root/data/www/demo.theme4press.com/index.php(17): require(‘/var/www/www-ro…’) #7 {main} thrown in /var/www/www-root/data/www/demo.theme4press.com/wp-content/themes/evolve-plus/header.php on line 21

    Evgeny
    Keymaster
    Posts: 988
    August 18, 2020 at 1:58 pm #45167

    Hi. The reason for this error is because you (and we) didn’t update WordPress to a newer version. You should either:
    1. Update to WordPress 5.5
    2. Or add the following to your functions.php file:
    if ( ! function_exists( ‘wp_body_open’ ) ) {
    function wp_body_open() {
    do_action( ‘wp_body_open’ );
    }
    }

    If will solve the problem.

    Nick Winton
    Spectator
    Posts: 13
    August 18, 2020 at 2:06 pm #45168

    I am currently running WordPress 5.5 |(see my post above).
    Also the same error seems to happen when using the demo on your website.
    Do you also need to add something to functions.php?

    Evgeny
    Keymaster
    Posts: 988
    August 18, 2020 at 2:09 pm #45169

    Yes, we do, but I guess that your website interests you more, isn’t it? We will add the fix in the next release, in the meanwhile, you have the solution you were looking for. Do let me know if you need any other assistance.

    Evgeny
    Keymaster
    Posts: 988
    August 18, 2020 at 2:12 pm #45170

    And by the way, we did add it as well and the problem is gone. Since you were asking, I’m updating you. 🙂

    Nick Winton
    Spectator
    Posts: 13
    August 18, 2020 at 2:16 pm #45171

    That’s an amazingly fast response.
    Thank you so much

    Evgeny
    Keymaster
    Posts: 988
    August 18, 2020 at 3:13 pm #45172

    Always happy to help.