media-command icon indicating copy to clipboard operation
media-command copied to clipboard

media regenerate problem with large image amount

Open IIM-Andreas opened this issue 5 years ago • 1 comments

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.

IIM-Andreas avatar Dec 13 '19 10:12 IIM-Andreas

Same problem here. Is there any best practice about running wp media regenerate on such a big amount of images, without having errors?

encodiaweb avatar Mar 29 '21 12:03 encodiaweb