[Resolved] Fatal error when including files in plugin.
Hello.. I’m getting a “Fatal error: Call to undefined function wp_get_current_user() in /wordpress-directory/wp-includes/capabilities.php on line 1059” when I add a php include_once() or require_once() in my plugin.
I have come across other people with this issue and the fix is to require pluggable.php at the top of the capabilities file. I don’t want to do that as I want this to install in any word press installation.
All i have now is an include to a blank file and it’s still causing the problem.
- The topic ‘[Resolved] Fatal error when including files in plugin.’ is closed to new replies.