Title: Fatal error with custom function
Last modified: August 22, 2016

---

# Fatal error with custom function

 *  Resolved [BPSD](https://wordpress.org/support/users/bpsd/)
 * (@bpsd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-with-custom-function/)
 * I’ve been using a custom function in my theme’s functions.php and it had been
   working just fine until very recently, when I just discovered that trying to 
   view any event causes a fatal error. Something must have changed on a recent 
   update of the plugin.
 * Here is the functions code that causes the error:
 *     ```
       add_filter('tribe_get_events_title', 'change_upcoming_events_title');
   
       function change_upcoming_events_title($title) {
       	//We'll change the title on upcoming and map views
       	if (tribe_is_upcoming() or tribe_is_map() or tribe_is_photo()) return 'Events Calendar';
   
       	//In all other circumstances, leave the original title in place
       	return $title;
       }
       ```
   
 * The trouble spot seems to be:
    `tribe_is_map()`
 * Again, this has been working properly until I noticed the error yesterday.
    Any
   ideas? Thank you!
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [leahkoerper](https://wordpress.org/support/users/leahkoerper/)
 * (@leahkoerper)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-with-custom-function/#post-5388874)
 * Hi BPSD,
 * I’m sorry you’re running into trouble with this. We always do a blog post of 
   [things to be aware of](https://tri.be/the-events-calendarproadd-ons-3-8-things-to-be-aware-of/)
   for each release, in addition to our release notes. You might check that out 
   and see if it sheds some light on the issue you’re having.
 * Hopefully that will help get you started in the right direction!
 * Best,
    Leah

Viewing 1 replies (of 1 total)

The topic ‘Fatal error with custom 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [leahkoerper](https://wordpress.org/support/users/leahkoerper/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-with-custom-function/#post-5388874)
 * Status: resolved