WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#8624 closed defect (bug) (invalid)

Fatal error: Call to undefined function wp_get_current_user() in C:\Vn\wp27\wp-includes\capabilities.php on line 920

Reported by: arena Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:

Description

Did any body get this ?

I was just trying to deactivate a plugin ...

Fatal error: Call to undefined function wp_get_current_user() in C:\Vn\wp27\wp-includes\capabilities.php on line 920

What i did after :

1 - Back up the db and my wp.
2 - Removed all my plugins from wp-content/plugins
3 - refreshed the browser => and came back to the admin login page,
4 - Copyed back the plugins,
5 - Try to log in
6 - Same message again ...
7 - Removed all my plugins from wp-content/plugins
8 - Refresh the browser on log in page several times
9 - Tried to log in => successfull

If this can help, wp_get_current_user() is in pluggable.php.
the plugin i was trying to deactivate can have some pluggable functions recoded (settings option) but not this one.

cannot attached file (too big) :
backups, if any one wants to replay the bug are dowloadable at this url :
http://andrerenaut.ovh.org/wp/wp-content/UserFiles/download.php?path=File/&fname=capabilities_902.rar

Change History (2)

comment:1 @Denis-de-Bernardy6 years ago

wontfix imo. It's probably a plugin that sought to call it too early. it's in pluggable.php, so gets loaded after the plugins. an old plugin that tries to use the function before it's all loaded would then fail.

comment:2 @DD326 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Sounds like a Plugin bug to me. Re-open if any info comes to light which suggests it was a core Fault, If furthur support is needed to determine if it is a plugin bug, The WordPress.org Support Forums are a good resource.

Closing as invalid pending further information.

Note: See TracTickets for help on using tickets.