[wp-trac] [WordPress Trac] #55415: Pluggable.php file is causing Fatal Errors

WordPress Trac noreply at wordpress.org
Thu Mar 17 18:46:42 UTC 2022

#55415: Pluggable.php file is causing Fatal Errors
 Reporter:  ceceet             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Plugins            |     Version:
 Severity:  major              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:

Comment (by SergeyBiryukov):

 Hi there, welcome to WordPress Trac! Thanks for the ticket.

 > The plugin developers are saying that the issue is WordPress and not the

 It looks like the issue comes from the
 [https://wordpress.org/plugins/updraftcentral/ UpdraftCentral Dashboard]
 plugin. Could the plugin authors explain what they think the issue is?

 Generally, this can happen if the plugin calls the `wp_get_current_user()`
 function too early. The solution to that, as noted above, would be to call
 it on the `plugins_loaded` hook or later.

 In this case, however, the plugin calls `wp_get_current_user()` in the
 /site-management.php?marks=486#L481 UpdraftCentral::schedule_event()]
 method, which is
 /site-management.php?marks=136#L134 attached to the 'shutdown' hook]. This
 should be OK, so there might be other things involved here. Maybe the
 error is only triggered when WordPress is loaded in the `SHORTINIT` mode
 (which skips most of the APIs), or maybe it's triggered by another plugin.

Ticket URL: <https://core.trac.wordpress.org/ticket/55415#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list