503 Errors, Unable to Update Posts
-
Over the past few weeks, I’ve been experiencing 503 errors and maxed out server memory whenever hitting ‘update’ to edit posts in WordPress. I performed all the typical checks, like checking memory limit configurations, permalinks, optimization, and much more.
When I couldn’t fix it, I got a website developer to take a look since it got so bad I that I was unable to edit any posts. They mentioned the only issue they could find had to do with WordFence.
Here’s their comment:
“When editing the page, the site triggered the code in WordFence, and since there are tables on WordFence’s database that are not readable by the system, it resulted in a 503 error.”
—
Everything seems to be working well with Wordfence disabled, but I would still like to use it. I also had errors in Chrome’s dev. tools that showed as wp-json/wp/v2/types/post?context=edit, api-fetch.min.js, Ajax errors, and invalid JSON errors before the web developer fixed it.
Again, resources would be maxed out every single time (1GB/1GB) on the server, and the CPU was maxed at 100% every time I tried to update posts.
Additional Context:
- I was on the latest version (7.11.1) and tried learning mode, but that didn’t help.
- I was on php 8.1
- WordPress max memory limit was 512
- WP memory was 256
- Max memory limit on the server is 1024 (configured in cPanel)
- I’m using shared hosting through Namecheap with Lightspeed enabled at the server level.
- I’m using Cloudflare (free)
—
Any recommendations so I can safely re-enable Wordfence?
- The topic ‘503 Errors, Unable to Update Posts’ is closed to new replies.