• Resolved joakimt

    (@joakimt)


    Hello there,

    I’ve just completed the 4.2 update for The Events Calendar plugin and now I’m stuck with this message when I try to access any page that concerns events :

    Fatal error: Call to undefined function is_embed() in /home/www/bc994e4cd824a72a982b94b599641a26/web/web/wp-content/plugins/the-events-calendar/src/Tribe/Templates.php on line 148

    Does any of you have an idea how to fix this ?

    Oddly enough, the widget keeps displaying the upcoming events but clicking on them leads back to this fatal error. There’s also no problem in creating new events or editing existing one.

    Thanks for your help
    Joakim

    https://wordpress.org/plugins/the-events-calendar/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Brian

    (@brianjessee)

    Hi,

    Sorry for the issues you are having. I can help troubleshoot this with you.

    What version of WordPress are you using?

    If you are not on the latest version upgrade to that should fix this issue.

    Let us know.

    Thanks

    Plugin Contributor Brian

    (@brianjessee)

    Also, you can try adding the following to your theme’s functions.php

    global $wp_version;
    if( version_compare( $wp_version, '4.4', '<' ) ) {
        if ( ! function_exists( 'is_embed' ) ) {
            function is_embed() { return false; }
        }
    }

    That should resolve the error without having to update WordPress.

    Thread Starter joakimt

    (@joakimt)

    Hi Brian,

    Thank you so much for your quick answer. I don’t know why but I can’t do the last WordPress update.

    Anyway, I love the way you just get around the problem by adding these few lines. It works perfectly for me.

    I’ll stick to that for now, as long as it keeps doing it’s job I’m happy with it.

    Thank you so much
    Joakim

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error with calendar display page’ is closed to new replies.