Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same problem. I found a bug in this file (line 194):
    \plugins\yctvn-media-offload-cloudflare-r2\includes\class-yctvn-admin.php

    $valid_modes = array( 'full_only', 'complete' ); // Correct 'complete' to 'all_sizes'

    The above fix allows the option to be saved in the admin panel. But there’s a second bug that prevents the feature from working at all:
    \plugins\yctvn-media-offload-cloudflare-r2\includes\class-yctvn-api.php:242

    if ( $size !== 'full' && ! ( $this->settings['upload_all_sizes'] ?? false ) ) {

    Correctly:

    if ( $size !== 'full' && $upload_mode !== 'all_sizes' ) {

    Wanted to confirm that those code changes did finally allow me to set the Upload Mode to be complete, but it’s still not showing thumbnails in the media library or in a post anymore.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.