Title: Cloudflare R2, WP CLI, and Missing Thumbnails
Last modified: November 24, 2025

---

# Cloudflare R2, WP CLI, and Missing Thumbnails

 *  [centuryperf](https://wordpress.org/support/users/centuryperf/)
 * (@centuryperf)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/cloudflare-r2-wp-cli-and-missing-thumbnails/)
 * With over 570k media files, managing them can be a chore, but they were all working
   fine, until I decided to offload all media to Cloudflare R2. I used the Advanced
   Media Offloader (AMO) plugin. Now, I’m missing a variety of thumbnails, and there
   isn’t any consistency regarding size or anything else I can determine for those
   that fail. I’ve been arguing with this for a couple of weeks, and I have not 
   noticed any errors.
 * Post, page, and product image thumbnails have disappeared. Some will regenerate,
   and others will not. Combine that with R2, and I’m not seeing an efficient way
   to fix this.
    - All images were offloaded using WP CLI ‘wp advmo offload’. It took a few days
      to complete.
    - When I noticed images were missing, I used WPI CLI again, ‘wp media regenerate–
      yes’. This worked for some, but not all, and it ran for more than 4 days.
    - Next, I ran ‘wp media regenerate –only-missing –yes’. Still missing images
      once that process claimed to be complete.
    - I then attempted manual, individual regeneration through the plugin, which
      sometimes works and sometimes does not. However, there is a new surprise, 
      where the plugin process changes from green check marks to all red **X**s.
      Even with the red Xs, it fixes ‘some’ of the thumbnails (see screenshots at
      link below).
    - Then, I disabled the Advanced Media Offloader plugin and ran the full ‘wp 
      media regenerate — yes’ command again, thinking running the command with AMO
      active might cause a partial conflict. Then, once complete, I re-enabled AOM
      and ran the WP CLI ‘wp advmo offload’ command again. Thousands of missing 
      thumbnails remain.
 * Here are some screenshot examples. You will see the empty thumbnail(s) in the
   media library. I open that image and it is visible, and then click regenerate
   thumbnails. The green check marks turn to all red Xs. The media thumbnail remains
   missing after regeneration.
   [https://imgur.com/a/pAEFD4s](https://imgur.com/a/pAEFD4s)
 * Suggestions?
 * *** Condolences to Alex’s family. I only found out about his passing when searching
   to see if others experienced similar issues and read about the loss on the plugin’s
   home page. Cancer Sucks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcloudflare-r2-wp-cli-and-missing-thumbnails%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Eric Gunawan](https://wordpress.org/support/users/erricgunawan/)
 * (@erricgunawan)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/cloudflare-r2-wp-cli-and-missing-thumbnails/#post-18734167)
 * With all the moving parts in your setup and because it’s not happening consistently
   the best way to trace what’s going wrong is to enable `WP_DEBUG` and `WP_DEBUG_LOG`.
   That way, the next time a thumbnail fails, there may be useful errors recorded.
 * Without that, even if we tried to reproduce your setup, we likely wouldn’t see
   the same behavior since we’re not on the same server/network environment.
 * You can find the steps here:
   [https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#example-wp-config-php-for-debugging](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/#example-wp-config-php-for-debugging)

Viewing 1 replies (of 1 total)

The topic ‘Cloudflare R2, WP CLI, and Missing Thumbnails’ is closed to new replies.

 * ![](https://ps.w.org/regenerate-thumbnails/assets/icon-128x128.png?rev=1753390)
 * [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/regenerate-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/regenerate-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/regenerate-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/regenerate-thumbnails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eric Gunawan](https://wordpress.org/support/users/erricgunawan/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/cloudflare-r2-wp-cli-and-missing-thumbnails/#post-18734167)
 * Status: not resolved