[wp-trac] [WordPress Trac] #57121: 'get_current_user_id' in 'gettext' filter causing memory error

WordPress Trac noreply at wordpress.org
Tue Nov 15 22:27:59 UTC 2022


#57121: 'get_current_user_id' in 'gettext' filter causing memory error
-------------------------------+-----------------------------
 Reporter:  adityaarora010196  |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  General            |    Version:  6.1.1
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 I am trying to 'get_current_user_id' in 'gettext' filter and causing
 memory error.

 Here is log of error:

 2022/11/15 22:18:30 [error] 667958#667958: *8577 FastCGI sent in stderr:
 "PHP message: PHP Fatal error:  Allowed memory size of 268435456 bytes
 exhausted (tried to allocate 20480 bytes) in /var/www/server/htdocs/wp-
 includes/class-wp-user.php on line 521

 I am not sure but this code is working on WP 5.8.6

 Let me know if i can help in anything...

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57121>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list