👨🏻‍💻 Today, I’ll share a rare WordPress issue I faced with a website.

Hi, I’m Ajmat Rijon, and I work on WordPress-related projects. A few months ago, I had a client whose website ran into a strange issue after migrating from a staging site. Everything looked fine on the front end, but nothing could be saved—no posts, no pages, nothing at all.

So, I began troubleshooting. I searched tons of blog posts on Google, asked ChatGPT, but none of the solutions worked.

After some time, I had a gut feeling that it must be a database-related issue—because that’s where WordPress stores all the data.

I checked all the basic tables in the database. After a few hours, I found something unusual. I started comparing it with my own website’s database—tables like wp_posts, wp_postmeta, wp_terms, wp_term_relationships, and so on.

I made a list of all the standard WordPress tables and began comparing every little detail with the client’s database. That’s when I noticed some “primary key” settings weren’t matching the default setup of a normal WordPress database.

That was the issue. I spent the night fixing all of them.
And guess what? Everything started working again—just like normal.