After republishing, BTN in top bar is gone
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 53
- Forks
- 38
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 1
Description
After republishing a post, the button in the admin top bar has disappeared because the entry still exists in the database.
Presumably, the other entries in the post meta are not all deleted either.
This error occurs when a post contains many ACF fields.
This makes it impossible to create another duplicate of the post. Instead there is an error message saying „There already is duplicate of this post.“ However, the duplicate has already been deleted.
The only way to remedy this, is to delete the duplicate article flag from the database.
Also, the process of duplicating and republishing takes a long time, up to 5-10 minutes (on a AMD EPYC 7302P 3,0 GHz 16-core, 128GB RAM - dedicated server).
In logfile there aren´t any errors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing republishing for a post with many ACF fields, then inspect the duplicate flag and post meta entries left in the database. Done means a deleted duplicate no longer blocks creating another duplicate and the republish operation completes without the reported delay.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100