Viewing 2 replies - 1 through 2 (of 2 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' ) {
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.