Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 3.4.1 throws undefined wp_get_current_user() fatal error #1839

Closed
EvanHerman opened this issue Mar 22, 2015 · 13 comments
Closed

Upgrade to 3.4.1 throws undefined wp_get_current_user() fatal error #1839

EvanHerman opened this issue Mar 22, 2015 · 13 comments
Labels
General [Type] Bug When a feature is broken and / or not performing as intended
Milestone

Comments

@EvanHerman
Copy link

After upgrading to 3.4.1 yesterday, I can no longer access the front end of my site. It throws a fatal error :

Fatal error: Call to undefined function wp_get_current_user() in /home/content/p3nexnas05_data01/16/2107516/html/wp-includes/capabilities.php on line 1356

I've seen a thread or two pop up in the wordpress.org forums, but not in the jetpack support forum specifically or here on github.

reference: https://wordpress.org/support/topic/jetpack-34-breaks-site

Only solution I've found is to temporarily deactivate Jetpack.

Evan

@kraftbj kraftbj added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! labels Mar 23, 2015
@kraftbj kraftbj added this to the 3.4.2 milestone Mar 23, 2015
@kraftbj
Copy link
Contributor

kraftbj commented Mar 23, 2015

Evan—would it be possible to get a stack trace of that error? I haven't been able to duplicate this on my end.

If not, could you include additional details on your site—what version of WP are you running, what modules of Jetpack did you have active, etc?

Thanks!

@chaselivingston
Copy link
Contributor

Also reported in 2132721-t, 2137017-t

@jeherve
Copy link
Member

jeherve commented Mar 26, 2015

@jeherve
Copy link
Member

jeherve commented Apr 3, 2015

@jeherve
Copy link
Member

jeherve commented Apr 6, 2015

@richardmtl
Copy link
Contributor

Alsi on 2152040-t

@kraftbj
Copy link
Contributor

kraftbj commented Apr 7, 2015

Possibly related from 2143903 -- Another plugin had set_site_transient( 'update_plugins', null ); which would fire off our filter attached to that, early, before pluggable.php was loaded.

@samhotchkiss
Copy link
Contributor

Oy-- do we have any way of knowing where this is coming from, so we can stop the carnage?

@EvanHerman
Copy link
Author

After some extensive testing I've tracked the issue back to two of my premium plugins. I am hosting the plugins on my personal site and push out updates from there. Within the plugins I had included a third party class file for auto updates from my external repo.

I was requiring this class file too soon, before most of WordPress core files were loaded. Inside of the external updater wp_get_current_user() was being called, and since the function didn't exist the error was thrown and execution was killed off.

Glad I finally got things resolved and cleared up for my users. It's possible a lot of the users reporting this issue have similar problems with a plugin running alongside Jetpack.

I'm not sure If I should close this issue since I have it resolved but others have reported the same error.

Evan

@kraftbj
Copy link
Contributor

kraftbj commented Apr 20, 2015

Thanks for the additional details, Evan. We'll leave this open for the moment to see if there is a way we can handle it better.

@kraftbj kraftbj removed the [Status] Needs Author Reply We would need you to make some changes or provide some more details about your PR. Thank you! label Apr 20, 2015
@samhotchkiss samhotchkiss removed this from the 3.5 milestone Apr 20, 2015
@jeherve
Copy link
Member

jeherve commented Apr 25, 2015

@jeherve jeherve added this to the 3.5.1 milestone Apr 27, 2015
@jeherve
Copy link
Member

jeherve commented May 1, 2015

@jeherve jeherve modified the milestones: 3.5.1, 3.5.2 May 5, 2015
@dereksmart dereksmart modified the milestones: 3.5.4, 3.6 May 13, 2015
@dereksmart dereksmart modified the milestones: 3.6, 3.7 Jun 25, 2015
@dereksmart dereksmart removed this from the 3.6 milestone Jun 25, 2015
@dereksmart
Copy link
Member

No reports of this in months, and we're now on 3.6. Please reopen if it comes back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

7 participants