New Posts overwriting previous posts
-
I have a very odd issue I have been trying to resolve for quite awhile.
When a user creates a new blog post it sometimes overwrite a previous post. It seems to pick up that previous posts ID and completely replaces everything on that post.
I have been unable to replicate this problem and all I have to go on so far are the access logs. For exampleWe see this in the logs
[27/May/2025:15:21:17 +0000] “GET /blog/api-governance-is-about-people/?preview_id=58417&preview_nonce=8dd4df8a5c&_thumbnail_id=58420&preview=true HTTP/1.0” 200 – “https://tyk.io/wp-admin/post.php?post=58417&action=edit” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15”That blog has the slug /blog/api-governance-is-about-people/ as its ID is 58417
It is succesfully viewed ( a few times)
“GET /blog/api-governance-is-about-people/ HTTP/1.0” 200 – “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36”We have many of these entries in the logs
“POST /wp-admin/admin-ajax.php HTTP/1.0” 200 – “https://tyk.io/wp-admin/post.php?post=58417&action=edit” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15”Then after awhile
[27/May/2025:15:34:55 +0000] “GET /blog/api-governance-is-about-people/ HTTP/1.0” 404 – “-” “node”
The URL is failing and we have this
[27/May/2025:15:37:19 +0000] “GET /?p=58417&preview_id=58417&preview_nonce=8dd4df8a5c&_thumbnail_id=58423&preview=true HTTP/1.0” 200 – “https://tyk.io/wp-admin/post.php?post=58417&action=edit” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15”
The same post id is being previewed but the slug has gone.
What the user told me is that they created the blog with the URL /blog/api-governance-is-about-people/ and published it confirmed all was working properly.
They then proceeded to create a new blog – they did not clone – they started from scratch by clicking add new blog.
When checking that second blogs id it has the same ID as the first confirming that creating this second blog overwrote the first.
But why?
I suspected cacheing – so have made sure that our Coudflare cacheing excluded the WP-Admin pages. We are on WP-Engine and as I understand it their cache automatically does this.I cannot recreate the issue on our staging site even though it is a direct copy of the production site.
I cannot start adding test posts on the live site and cannot start switching off plugins there either.
Has anyone come across an issue like this or have any pointers?
The topic ‘New Posts overwriting previous posts’ is closed to new replies.