PHP Fatal error: Call to undefined function get_current_screen() in E:\www\wp-content\plugins\the-events-calendar\src\Tribe\Query.php on line 302
looks like you need:
require_once(ABSPATH . ‘wp-admin/includes/screen.php’);
added to your source code, using an if function exists conditional
Hi ensembledb,
We’ve got this on our radar and will likely address it in an upcoming release 🙂
I’m curious, though – do you find any other plugin/your theme/some custom code in particular needs to be present for this error to take place?
That is very likely; as I can’t imagine I’d be the only one reporting the issue – if it were anything other than the environment that I have running.
So there must be a conflict by some means, somewhere. Since it’s a production site I can’t run tests on it, but I’ll see about transferring it to a local install for testing, and see if I can locate which plugin or theme-code would produce such a situation.
Also thank you for the support 🙂
No problem 🙂
In this case I don’t think the “conflicting” component – whatever it is – is necessarily doing anything against best practices, so though we still need to assess this in a little more depth it certainly looks as though we can make a helpful change on our end to accommodate this sort of thing.
Hi there,
I wanted to report back to you on the status of this issue. Your report is tracked in our internal system and a fix is on our to-do list, but we were not able to fit it into our upcoming 3.12 release. Please know that the issue is still very much on our radar and we will be working on it for a future release. We appreciate your patience while we work to improve our plugins. Thank you for using The Events Calendar!
Best,
Leah
and The Events Calendar team