Fatal error
-
Hi
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 843Same 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.
The topic ‘Fatal error’ is closed to new replies.