Conversation
supportHi I am getting a fatal error in WP 6.1: Stack trace: #0 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php(79): WP_User_Query->query() #1 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/user.php(763): WP_User_Query->__construct(Array) #2 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(95): get_users(Array) #3 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(1133): Obenland_Wp_Approve_User->__construct()
What’s the error?
Fatal error: Uncaught Error: Call to undefined function cache_users() in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php:843 Stack trace: #0 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php(79): WP_User_Query->query() #1 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/user.php(763): WP_User_Query->__construct(Array) #2 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(95): get_users(Array) #3 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(1133): Obenland_Wp_Approve_User->__construct() #4 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-settings.php(447): include_once(‘/customers/e/9/…’) #5 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-config.php(98): require_once(‘/customers/e/9/…’) #6 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-load.php(50): require_once(‘/customers/e/9/…’) #7 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-admin/admin.php(34): require_once(‘/customers/e/9/…’) #8 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-admin/index.php(10): require_once(‘/customers/e/9/…’) #9 {main} thrown in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php on line 843 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 176 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 188 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 201 Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/functions.php on line 5835 Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/functions.php on line 5835 There has been a critical error on your website. Please check your site admin email inbox for instructions.
It appears to be at the top of the stack trace. I have deactivated the plugin for my site to work.
Thanks! It looks like the class gets instantiated too early. I’ll prep a fix, thanks for letting me know.
Thank you.
I confirm that the moment I activate the plugin on the staging site I then got a fatal error again.
Hi, I also have the same error on a client website. Really appreciate that you’re looking into this, do you have a timeframe for a fix to be available?
Yes, I have users stuck in limbo who registered, and I can’t approve until the plugin is activated again.
Hi, I have the same problem, hopefully a fix will soon be available
Just published the new version, it should now be available in your wp-admin. Apologies for the delay, this was the first time publishing a new version using new deploy tools, so I hope all is smooth. Please let me know if things are not fixed in the new version and I’ll take another look. Thanks!
I am afraid that as soon as I updated to this version and reactivated the whole site blew up again as before.
same here 🙁 Fatal error: Uncaught Error: Call to undefined function cache_users() in /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php:843 Stack trace: #0 /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php(79): WP_User_Query->query() #1 /home/customer/www/my.url.de/public_html/wp-includes/user.php(763): WP_User_Query->__construct(Array) #2 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/class-obenland-wp-approve-user.php(78): get_users(Array) #3 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/class-obenland-wp-approve-user.php(93): Obenland_Wp_Approve_User->__construct() #4 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/wp-approve-user.php(36): Obenland_Wp_Approve_User::get_instance() #5 /home/customer/www/my.url.de/public_html/wp-settings.php(447): include_once('/home/customer/...') #6 /home/customer/ in /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php on line 843
Same experience for me as well – updated to v9 and had the same critical error.
Okay, looking. Not sure at this point what would cause that. Do you have any caching plugins enabled?
Yes, but they worked fine up until now.
i am on siteground and disabled sg-optimizer plugin and refreshed the memcache etc. on siteground.
I just tried again on staging – all plugins deactivated – so no cache. Still fatal error.
Thanks for your patience y’all. I published v10 just now with what should hopefully fix this. This was not an obvious one for me to figure out. Thanks for you follow ups and giving me a chance to fix it.
All good for me! Well done.
Confirmed it’s also working for me now too. Thanks for your speedy work Konstantin!
@obenland thank you for the fix! It works on my website now.
Same problem here. I upgraded WP yesterday and had to disable this plugin to use the site. I have been monitoring this topic for the fix. Just installed v.10, and re-activated. Everything works works as normal again. I very much appreciate this plugin, and am grateful for your fast fix. Much appreciated.
I’m having this same issue. We have has the site up for a few years and never had this issue. Any word on a fix – this site is for an HOA and they have to be able to approve their users.
Hey @rowdycolors , this should already be fixed. Are you on the latest version of the plugin?
What’s the error?
Fatal error: Uncaught Error: Call to undefined function cache_users() in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php:843 Stack trace: #0 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php(79): WP_User_Query->query() #1 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/user.php(763): WP_User_Query->__construct(Array) #2 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(95): get_users(Array) #3 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/wp-approve-user/wp-approve-user.php(1133): Obenland_Wp_Approve_User->__construct() #4 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-settings.php(447): include_once(‘/customers/e/9/…’) #5 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-config.php(98): require_once(‘/customers/e/9/…’) #6 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-load.php(50): require_once(‘/customers/e/9/…’) #7 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-admin/admin.php(34): require_once(‘/customers/e/9/…’) #8 /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-admin/index.php(10): require_once(‘/customers/e/9/…’) #9 {main} thrown in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/class-wp-user-query.php on line 843 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 176 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 188 Warning: Trying to access array offset on value of type bool in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/fatal-error-handler.php on line 201 Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/functions.php on line 5835 Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-includes/functions.php on line 5835 There has been a critical error on your website. Please check your site admin email inbox for instructions.
It appears to be at the top of the stack trace. I have deactivated the plugin for my site to work.
Thanks! It looks like the class gets instantiated too early. I’ll prep a fix, thanks for letting me know.
Thank you.
I confirm that the moment I activate the plugin on the staging site I then got a fatal error again.
Hi, I also have the same error on a client website. Really appreciate that you’re looking into this, do you have a timeframe for a fix to be available?
Yes, I have users stuck in limbo who registered, and I can’t approve until the plugin is activated again.
Hi, I have the same problem, hopefully a fix will soon be available
Just published the new version, it should now be available in your wp-admin. Apologies for the delay, this was the first time publishing a new version using new deploy tools, so I hope all is smooth. Please let me know if things are not fixed in the new version and I’ll take another look. Thanks!
I am afraid that as soon as I updated to this version and reactivated the whole site blew up again as before.
same here 🙁 Fatal error: Uncaught Error: Call to undefined function cache_users() in /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php:843 Stack trace: #0 /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php(79): WP_User_Query->query() #1 /home/customer/www/my.url.de/public_html/wp-includes/user.php(763): WP_User_Query->__construct(Array) #2 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/class-obenland-wp-approve-user.php(78): get_users(Array) #3 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/class-obenland-wp-approve-user.php(93): Obenland_Wp_Approve_User->__construct() #4 /home/customer/www/my.url.de/public_html/wp-content/plugins/wp-approve-user/wp-approve-user.php(36): Obenland_Wp_Approve_User::get_instance() #5 /home/customer/www/my.url.de/public_html/wp-settings.php(447): include_once('/home/customer/...') #6 /home/customer/ in /home/customer/www/my.url.de/public_html/wp-includes/class-wp-user-query.php on line 843
Same experience for me as well – updated to v9 and had the same critical error.
Okay, looking. Not sure at this point what would cause that. Do you have any caching plugins enabled?
Yes, but they worked fine up until now.
i am on siteground and disabled sg-optimizer plugin and refreshed the memcache etc. on siteground.
I just tried again on staging – all plugins deactivated – so no cache. Still fatal error.
Thanks for your patience y’all. I published v10 just now with what should hopefully fix this. This was not an obvious one for me to figure out. Thanks for you follow ups and giving me a chance to fix it.
All good for me! Well done.
Confirmed it’s also working for me now too. Thanks for your speedy work Konstantin!
@obenland thank you for the fix! It works on my website now.
Same problem here. I upgraded WP yesterday and had to disable this plugin to use the site. I have been monitoring this topic for the fix. Just installed v.10, and re-activated. Everything works works as normal again. I very much appreciate this plugin, and am grateful for your fast fix. Much appreciated.
I’m having this same issue. We have has the site up for a few years and never had this issue. Any word on a fix – this site is for an HOA and they have to be able to approve their users.
Hey @rowdycolors , this should already be fixed. Are you on the latest version of the plugin?