Title: Call to undefined function
Last modified: September 1, 2016

---

# Call to undefined function

 *  Resolved [LordLiverpool](https://wordpress.org/support/users/lordliverpool/)
 * (@lordliverpool)
 * [10 years ago](https://wordpress.org/support/topic/call-to-undefined-function-22/)
 * Hello
 * When I try to view an event that I’ve just created I get the following error 
   message:
 * `Fatal error: Call to undefined function is_embed() in /home/websitegoeshere/
   public_html/wp-content/plugins/the-events-calendar/src/Tribe/Templates.php on
   line 448`
 * URL: [http://websitegoeshere/calendar/test-event-2/](http://websitegoeshere/calendar/test-event-2/)
 * Any ideas?
 * Thanks in Advance
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

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

 *  Plugin Contributor [Brian](https://wordpress.org/support/users/brianjessee/)
 * (@brianjessee)
 * [10 years ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476503)
 * Hi,
 * Sorry for the issues you are having. I can help troubleshoot this with you.
 * If you are using a Version of WordPress below 4.4 this function is not included.
   You can update WordPress or add the following to your functions.php of your child
   theme:
 *     ```
       global $wp_version;
       if( version_compare( $wp_version, '4.4', '<' ) ) {
           if ( ! function_exists( 'is_embed' ) ) {
               function is_embed() { return false; }
           }
       }
       ```
   
 * Let us know how that works out.
 *  Thread Starter [LordLiverpool](https://wordpress.org/support/users/lordliverpool/)
 * (@lordliverpool)
 * [10 years ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476561)
 * [@brian](https://wordpress.org/support/users/brian/)
 * Thanks for replying so quickly.
 * According to the dashboard > updates I am running the latest version of WordPress
   4.3 but isn’t the latest version 4.5.2???
 * I don’t understand why WordPress isn’t updating itself?
    I will open a new support
   thread for that in the appropriate place.
 * Anyway, thank you for the code snippet even though I’m on 4.3 your solution fixed
   my issue.
 * Thank you very much.
 *  [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476844)
 * Hey there,
 * Just want to drop a quick note in here to let you know that The Events Calendar
   4.2.1 is about to release any moment and it will include a patch for this issue.
   Please update and let us know if you continue to hit any trouble.
 * Thanks so much for your patience while we worked on this!
 * Cheers,
    Geoff
 *  Thread Starter [LordLiverpool](https://wordpress.org/support/users/lordliverpool/)
 * (@lordliverpool)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476845)
 * Hi Geoff
 * Thanks for being so on the ball!
 * Should I remove the code fix Brian sent me from my child theme’s functions.php?
 * Will there be a code conflict?
 * Cheers
 *  [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476848)
 * Absolutely, please remove that code and then update as normal — I’d hate to see
   a code conflict pop up, even if it is unlikely. 🙂
 * Cheers!
    Geoff
 *  Thread Starter [LordLiverpool](https://wordpress.org/support/users/lordliverpool/)
 * (@lordliverpool)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476851)
 * OK Thanks Geoff
 * When the new version is release I will remove the code and update as normal.
 * I really appreciate your help.
 * BTW keep up the good work it’s a lovely plugin!
 * Cheers

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

The topic ‘Call to undefined function’ is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [LordLiverpool](https://wordpress.org/support/users/lordliverpool/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/call-to-undefined-function-22/#post-7476851)
 * Status: resolved