EventBrite broken on Window server
-
Hi there,
I am using this plugin on one of my client website, and in the theme folder, we created “eventbrite” folder for template override. But its layout broken completely then. I did debug and in “eventbrite-api/inc/class-eventbrite-templates.php”, I found this line of code:
// The theme declares support, look for an Eventbrite single template. elseif ( current_theme_supports( 'eventbrite' ) && file_exists( get_stylesheet_directory() . '/eventbrite/eventbrite-single.php' ) ) { $template = esc_url( get_stylesheet_directory() . '/eventbrite/eventbrite-single.php' ); } // Oh, maybe the theme is a child theme; let's check the parent theme for a template too. elseif ( current_theme_supports( 'eventbrite' ) && file_exists( get_template_directory() . '/eventbrite/eventbrite-single.php' ) ) { $template = esc_url( get_template_directory() . '/eventbrite/eventbrite-single.php' ); }
The server this website is hosted on is Window server, so the get_template_directory() return a string like E:\path\to\directory. It is a problem, as esc_url function will return empty string as result. And so, the Eventbrite Events shows blank page.
Hopefully this issue will be fixed in the next release.
Finally, thank you for this great plugin!
- The topic ‘EventBrite broken on Window server’ is closed to new replies.