What errors do you see in debug.log when Offload Media is turned on as opposed to when it is turned off?
-IJ
I am also experiencing a similar issue with Uncode.
xx.com/html/wp-content/themes/uncode/partials/elements.php(2212): uncode_resize_image()
#1 /var/www/xx.com/html/wp-content/themes/uncode/vc_templates/vc_single_image.php(591): uncode_create_single_block()
#2 /var/www/xx.com/html/wp-content/plugins/uncode-js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(451): require('...')
#3 /var/www/xx.com/html/wp-content/plugins/uncode-js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(424): WPBakeryShortCode->loadTemplate()
#4 /var/www/xx.com/html/wp-content/plugins/uncode-js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(548): WPBakeryShortCode->content()
#5 /var/www/xx.com/html/wp-content/plugins/uncode-js_composer/include/helpers/helpers" while reading upstream, client: <ip>, server: xx.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "xx.com", referrer: "https://xx.com/"
2023/03/30 00:44:00 [error] 89990#89990: *56344 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined method Amazon_S3_And_CloudFront::get_attachment_url() in /var/www/xx.com/html/wp-content/themes/uncode/core/inc/helpers.php:401
@i2dau thanks for the info.
Looks like the Uncode theme has some compatibility code for WP Offload Media that reaches inside the plugin and tries to use an old function that no longer exists.
Please ask the Uncode theme authors to use the global as3cf_get_attachment_url() function instead.
-IJ