I'm getting a strange error - which seems to be isolated to a single (local) install with a custom theme. I'm fully prepared to fix my code, I'm just not sure where to begin.
P2P 1.4.2-alpha2 (also happened with 1.4.1, but not previous versions)
Upon activation, I get a fatal error:
Call to undefined function get_current_screen() in [localpath]/wp-content/plugins/posts-to-posts/core/url-query.php on line 27
I deactivated all other plugins, same error. I did try this with a different install (one that has no P2P connections yet), and there was no problem.
Temporarily commenting out the following lines seemed to fix the problem (lines 12-13 in posts-to-posts/core/url-query.php):
if ( is_admin() )
add_action( 'pre_user_query', array( __CLASS__, 'user_query' ), 9 );
But I really would rather ensure the problem won't crop up again once we upgrade. I know not knowing specifics about my install will make it difficult to diagnose, but I'm crawling line by line through any P2P code and I can't figure out what would trigger that error - so I'm hoping that it might be caused by something obvious (an action hooked too early?) that changed in the most recent version.