Change WordPress user roles and capabilities › Forums › Bug Reports › Fatal error: Uncaught ErrorException: Trying to get property of non-object › Reply To: Fatal error: Uncaught ErrorException: Trying to get property of non-object
13/09/2017 at 13:17
#4171
isdaweb
Participant
This happened when I activated the plugin.
The global $current_user wasn’t accessible. I fixed it by replacing line 585 with get_current_user_id();