WP-Admin Media Upload Blank
PHP message: PHP Warning: Attempt to read property “ID” on null in /wp-includes/post.php on line 7381
The media library page returns a 502 error. When it loads it is blank.
The error you’re encountering seems to be related to a WordPress plugin or theme issue. You can get our wordpress bug fixing service or Here are a few steps you can take to troubleshoot and resolve the problem:
- Disable plugins: To determine if a plugin is causing the issue, deactivate all plugins on your WordPress site. You can do this by renaming the “plugins” directory located in the “/wp-content/” folder. After that, check if the issue persists. If it resolves the problem, you can reactivate the plugins one by one until you identify the one causing the conflict.
- Switch to a default theme: Temporarily switch to a default WordPress theme (such as Twenty Twenty-One or Twenty Twenty) to rule out any conflicts with your current theme. If the issue is resolved, you may need to contact the theme developer for assistance or choose an alternative theme.
- Increase PHP memory limit: A low PHP memory limit can sometimes cause issues with media uploads. You can try increasing the memory limit by adding the following code to your site’s wp-config.php file:
define('WP_MEMORY_LIMIT', '256M');
- Check server logs: If the above steps don’t resolve the issue, it’s possible that there is a server-side problem. Contact your web hosting provider and ask them to check the server logs for any relevant error messages. They may be able to identify the cause of the 502 error and assist you in resolving it.
- Update WordPress: Ensure that you are using the latest version of WordPress, as well as the plugins and themes installed on your site. Outdated software can sometimes lead to compatibility issues and errors. Before updating, it’s always a good idea to create a backup of your site.
If none of these steps resolve the issue, it may be helpful to provide more details about your WordPress setup, such as the versions of WordPress, plugins, and themes you are using. Additionally, check if there are any recent changes or updates that could have triggered the problem.