# Sage 9.0.9 conflict with Events Manager plugin causing white screen

**URL:** https://discourse.roots.io/t/sage-9-0-9-conflict-with-events-manager-plugin-causing-white-screen/25249
**Category:** sage
**Tags:** plugin
**Created:** 2023-04-28T16:19:00Z
**Posts:** 4

## Post 1 by @wglassbrook — 2023-04-28T16:19:01Z

Working on a clients website with a theme based on Sage 9.0.9. Site is also using the Events Manager plugin ([https://wp-events-plugin.com/](https://wp-events-plugin.com/)) for displaying events.

Client site has many events that have been added to plugin provided “Event Categories” taxonomy.

When users attempt to view a specific Event Category, they are presented with a white screen.

Visiting “[fakeurl.com/events](http://fakeurl.com/events)” gives a list of all events.

Visiting “[fakeurl.com/events/categories](http://fakeurl.com/events/categories)” lists all Event Categories.

Visiting “[fakeurl.com/events/categories/eventcatname](http://fakeurl.com/events/categories/eventcatname)” gives a white screen

White screen page has no rendered HTML in source.

Enabling wp\_debug provides no feedback and no errors are logged by PHP.

I have created a local test environment (php 7.4) and disabled all but the required plugins and themes and problem persists.

Problem is corrected by reverting to a default WP theme.

Anyone else run across a white screen issue like this? With no feedback, what else can I do to troubleshoot this issue?

Have contacted plugin developer and am waiting on feedback from them as well.

All help greatly appreciated!

---

## Post 2 by @talss89 — 2023-04-28T16:34:57Z

It’s likely there are errors being thrown. Have you checked the actual PHP error log on disk, not just the HTML output?

Try setting `WP_ENV` to `development`, as well as `WP_DEBUG`.

Any luck getting hold of the error message?

---

## Post 3 by @wglassbrook — 2023-04-28T17:53:19Z

There are no errors in the PHP error log.

`WP_ENV` set to `development` as well with no change.

HOWEVER, while checking for other “White Screen” conflicts, I came across a post in regards to how Sage uses `template_include` which led me to some digging in the plugin code. Looks like the plugin is attempting to select a template as follows

`$template = locate_template(array('page.php','index.php'),false); //category becomes a page`

I have found that if I change this line in the Events Manager plugin (line 82 of /classes/em-taxonomy-frontend.php) to the following…

`$template = locate_template(array(get_template_directory().'/page.php',get_template_directory().'/index.php'),false); `

All works as expected. I’m not great with php, so if there’s a more elegant way to universally specify the theme’s root template directory, please let me know.

---

## Post 4 by @Henry_Hawkins — 2024-03-05T22:11:22Z

I had the exact same issue. Your fix helped, but its not a Sage compatibility issue as I am just using a standard Wordpress template. So its seems that the plugin developers have some other problem.
