Open bozzmedia opened 2 years ago
Hey @bozzmedia,
Sorry to hear you're having difficulties!
Were you able to figure the problem out?
Unfortunately, a 'segmentation fault' is an extremely fatal PHP error. WP-CLI can't display any useful output because PHP itself has crashed. The underlying cause is likely something with your server configration.
Although, it is surprising Regenerate Thumbnails still works as expected. Regenerate Thumbnails generally uses the same WordPress core APIs that WP-CLI does.
Feel free to pop in the #cli
channel on WordPress.org Slack if you'd like help debugging this further.
I'm regenerating about 40,000 images
I ran
wp media regenerate --image_size=crp_thumbnail --yes
About 3,000 images in I got a 'segmentation fault' error and the process stopped.
I tried starting a range after 3k to 42k and it produced odd results, only resizing about 2k of those images and not outputting for all 40k images.
I am now back to using the Regenerate Thumbnails plugin which seems to be working well.
I realize this could be some corruption of the media file attachments/associations, but the error provides no useful info to further troubleshoot.
My setup: CentOS Apache, PHP 7.4, WP 6.0.1, wp cli v2.6.0 Linux 3.10.0-1160.53.1.el7.x86_64 #1 SMP Fri Jan 14 13:59:45 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux