WordPress文章发布失败求助:卸载部分插件仍无法解决
Hey there, sorry to hear you're stuck with this frustrating error when trying to publish posts. You've already taken a solid first step by disabling some plugins—let's work through more targeted fixes that usually resolve this issue:
Rule out theme conflicts
Switch to a default WordPress theme (like Twenty Twenty-Four) and try publishing again. If it works, your active theme is likely the problem—check for theme updates, or reach out to the theme developer for support. If the error persists, move on to the next step.Test remaining plugins one by one
Instead of disabling batches, disable your remaining plugins one at a time, testing post publishing after each disable. This helps you pinpoint exactly which plugin is causing the conflict. Once you find the culprit, update it, check for known issues, or replace it with an alternative.Check media uploads and file permissions
Try publishing a plain text post with no images, videos, or attachments. If this works, the issue is tied to a specific media file—either it's too large, uses an unsupported format, or has corrupted metadata.
Also, verify file permissions for yourwp-content/uploadsfolder: set it to755(folders) and individual files to644via FTP or your hosting control panel. Incorrect permissions can block WordPress from saving post assets.Increase PHP memory limit
Low PHP memory often causes publishing failures. Edit yourwp-config.phpfile and add this line right before the/* That's all, stop editing! Happy publishing. */comment:define('WP_MEMORY_LIMIT', '256M');Save the file and try publishing again.
Clear all caches
Clear your browser cache, any WordPress caching plugin (like WP Rocket or W3 Total Cache) cache, and if you use a CDN, purge its cache too. Stale cache can interfere with the post publishing process.Enable debugging to find specific errors
Turn on WordPress debug mode to get detailed error logs. Add these lines to yourwp-config.phpfile:define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);Try publishing your post again, then check the
wp-content/debug.logfile for specific error messages. These logs will tell you exactly what's breaking the publish process. Don't forget to setWP_DEBUGback tofalseonce you're done debugging.Reset permalink structure
Go to Settings > Permalinks in your WordPress dashboard. Select a different permalink structure (e.g., "Plain"), save changes, then switch back to your preferred structure and save again. This refreshes WordPress's rewrite rules, which can fix publishing issues caused by corrupted permalink settings.
If none of these steps work, reach out to your hosting provider—they can check for server-side issues like incompatible PHP versions, server resource limits, or mod_security blocks that might be preventing post publishing.
内容的提问来源于stack exchange,提问作者Muhibul Haque

