• Resolved BPSD

    (@bpsd)


    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://www.ads-software.com/plugins/the-events-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Contributor leahkoerper

    (@leahkoerper)

    Hi BPSD,

    I’m sorry you’re running into trouble with this. We always do a blog post of 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.