[wp-trac] [WordPress Trac] #41119: Plugins failing trying to use wp_generate_password() function

WordPress Trac noreply at wordpress.org
Thu Feb 3 22:14:18 UTC 2022


#41119: Plugins failing trying to use wp_generate_password() function
-------------------------------+----------------------
 Reporter:  jamiefryatt        |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  Plugins            |     Version:  4.8
 Severity:  normal             |  Resolution:  invalid
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+----------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review =>


Comment:

 Replying to [ticket:41119 jamiefryatt]:
 > Basically i found that the plugin wanted to use wp_generate_password,
 but couldn't and was throwing a 500 fatal error... I did some debugging
 and found that in the wp-settings.php file, the pluggable.php and its
 depreciated version were loading after the plugins.

 Just wanted to note that this is intentional, to let any plugin to
 override any of the functions in `pluggable.php`.

 This seems quite similar to #21612. The plugin in question most likely
 tried to use the function before WordPress was fully initialized. It
 should use an appropriate hook instead, see comment:2:ticket:21612 for
 more details.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/41119#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list