Not Able to Delete User
-
Hi
I was running a test and found that I can’t delete a user.
If I go to WP Admin > Users > All Users and click ‘Delete’ under a username, I get an error message;There has been a critical error on this website. Please check your site admin email inbox for instructions.
From the email I received telling me of the error (details copied below), there seems to be a conflict with Elementor/Pro.
I have tried both Elementor ‘Safe Mode’ and deactivating all plugins except Elementor/Pro but the issue is still there.
The only way to delete a user is by deactivating Elementor/Pro.
I have contacted Elementor ‘Help’, and they replied;Since Elementor is not controlling how the WP Admin system works, I’m afraid that this is still outside the scope of Elementor even though the critical error shows when the Pro is activated.
Since technically this is about deleting a user which is on the side of WordPress, it would be better to check this one with the WordPress support team to see if there is a setting need to be modified so that it can work with Elementor Pro.
Error DetailsAn error of type E_ERROR was caused in line 25 of the file
/home/**********/domains/vital50plus.com/public_html/wp-content/plugins/elementor/core/utils/collection.php.
Error message: Uncaught TypeError: Elementor\Core\Utils\Collection::__construct(): Argument #1 ($items) must be of type array, null given, called in /home//domains/vital50plus.com/public_html/wp-content/plugins/elementor-pro/core/database/query-builder.php on line 1070 and defined in /home//domains/vital50plus.com/public_html/wpcontent/plugins/elementor/core/utils/collection.php:25
Stack trace:
0 /home/**********/domains/vital50plus.com/public_html/wp-content/plugins/elementor-pro/core/database/query-builder.php(1070): Elementor\Core\Utils\Collection->__construct()
1 /home/**********/domains/vital50plus.com/public_html/wp-content/plugins/elementor-pro/core/database/model-query-builder.php(69): ElementorPro\Core\Database\Query_Builder->count() 2 /home/**********/domains/vital50plus.com/public_html/wp-content/plugins/elementor-pro/modules/notes/user/delete-user.php(48): ElementorPro\Core\Database\Model_Query_Builder->count()
3 /home/**********/domains/vital50plus.com/public_html/wp-content/plugins/elementor-pro/modules/notes/user/delete-user.php(19): ElementorPro\Modules\Notes\User\Delete_User->on_user_delete_form()
4 /home/**********/domains/vital50plus.com/public_html/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\Notes\User\Delete_User->ElementorPro\Modules\Notes\User{closure}()
5 /home/**********/domains/vital50plus.com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
6 /home/**********/domains/vital50plus.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
7 /home/**********/domains/vital50plus.com/public_html/wp-admin/users.php(441): do_action()
8 {main}
thrown
- The topic ‘Not Able to Delete User’ is closed to new replies.