It’s unfortunate that you’re facing this issue after updating WordPress and the PHP version. Here are some steps you can take to troubleshoot and hopefully resolve the problem:
- Check Error Logs: Look into the error logs for both PHP and WordPress. You can find these logs in different locations depending on your hosting environment. Common locations include the server’s error log, a dedicated error log file, or within the WordPress admin panel.
- Review PHP Compatibility: Ensure that your plugins and themes are compatible with the PHP version you’ve upgraded to. You can check the official WordPress Plugin and Theme directories for compatibility information. If a plugin or theme is not compatible, consider looking for alternatives.
- Verify Database Integrity: Ensure that the database tables and data are intact. You can use tools like phpMyAdmin or command-line tools to check the database integrity. Also, make sure that the
wp_users
table is present and contains the user data.
- Check User Roles: Verify if user roles are intact and properly assigned. Sometimes, issues with user roles can lead to users not being displayed. You can check and adjust user roles using plugins or directly in the database if needed.
- Revert to a Previous PHP Version: As a temporary measure, you might consider reverting to the previous PHP version to see if the issue persists. This will help you confirm if the problem is related to the PHP version.
- Plugin and Theme Conflicts: Even if you deactivated all plugins, there might be some functionalities left behind. Temporarily switch to a default WordPress theme (like Twenty Twenty-One) and disable all plugins. Check if the users list appears. If it does, activate them one by one to identify the culprit.
- Check for Custom Code: If you have custom code snippets in your theme’s
functions.php
file or in custom plugins, review them for any code that might affect user data retrieval or display.
- WordPress Repair Tools: WordPress has some built-in repair tools. You can try accessing the following URLs:
https://yourdomain.com/wp-admin/maint/repair.php
https://yourdomain.com/wp-admin/upgrade.php
- Debugging Mode: Enable WordPress debugging by adding the following lines to your
wp-config.php
file:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
- This will log errors to a
debug.log
file in the wp-content
directory, helping you identify any issues.
- Staging Environment: Since you’ve created a staging site, you can use it to safely test solutions without affecting the live site. Try implementing changes and debugging steps on the staging site first.
Remember to always back up your site before making any significant changes, especially when dealing with database-related issues. If the problem persists, seeking assistance from a professional developer or contacting the WordPress support forums may be beneficial.