media regenerate problem with large image amount
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- wordpress
- Domain
- cli
Research direction
Start by reproducing wp media regenerate --only-missing --yes with a large image batch, then compare it with the single-post command and the reported behavior of existing formats. Trace the media regeneration entry point and failure handling; done means failed images retain their existing formats, with coverage for batch and single-image runs.
Written by the indexing model from the issue text.
Description
Bug Report
Hi,
I ran the command wp media regenerate --only-missing --yes over about 111.000 images.
About ~80.000 successful and ~30.000 failed.
The problem is that for the failed images, all image formats are gone or sometimes one is left in the database. I have like 12 image formats on my wordpress.
If I run the command for one failed image again wp media regenerate <post_id> --only-missing --yes it's successful.
So why get already correct existing formats in the database deleted when wp media regenerate fail?
Running wp media regenerate <post_id> --only-missing --yes with 100 post_id on the other hand works, strange thing.
- Dominant language
- Gherkin
- Stars
- 47
- Forks
- 42
- Avg merge
- 2h 30m
- Merged PRs (30d)
- 4
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.
More from wp-cli/media-command
-
command:media
Difficulty 5/5 Over a week Newbie friendliness 45/100
wp-cli/media-command#254 · 3 comments · 1 reaction ·
-
command:media-regenerate
Difficulty 4/5 3-5 days Newbie friendliness 35/100
wp-cli/media-command#217 ·
All issues in wp-cli/media-command
Similar issues
-
`--app` focus through the daemon can pick an off-screen window and refuse with `axElementNotFound` Openclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster no-stale P1
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
state:needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
zed-industries/zed#64742 · 1 comment ·
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gitbutlerapp/gitbutler#16066 ·
-
make dev prints the runtime default model (gpt-5.6-terra), not the app's text model (gpt-5.6-sol) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eandualem/avatar-studio#68 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100