NO BUG: Edge Offloaded images case

Browser: Chrome 110
OS: Windows

Version 2.4.1 fixed the Media Offload display issue, but the fix only addressed media that uses a Public URL.

Some Media Offload plugins deliver media to the frontend through a Media Stream/Proxy instead of exposing a direct Public URL. Media handled this way can still have display issues in Bricks.

I’ve already got a prompt for you guys to check:

Fix the Media Offload compatibility issue where media delivered through a Media Stream does not display correctly in Bricks.

Version 2.4.1 already fixed media that uses a direct Public URL. Do not change that existing behavior.

Focus only on Media Stream-based delivery.

Please:

  1. Trace how Bricks currently resolves and renders media URLs.

  2. Identify why streamed/proxied media responses fail to display.

  3. Fix Bricks so media delivered through a stream endpoint can render correctly.

  4. Do not require the media URL to be a direct physical file URL.

  5. Preserve stream endpoints, query parameters, authentication parameters, and dynamically generated URLs exactly as provided.

  6. Do not convert the stream URL back into a local WordPress upload path.

  7. Do not rely on file extensions in the URL to determine whether the media is valid.

  8. Keep the existing Public URL fix from version 2.4.1 unchanged.

  9. Make the smallest possible change necessary to support Media Stream rendering.

Before changing code, locate the exact part of the media rendering pipeline that rejects, rewrites, or fails to handle the stream URL, then fix that specific behavior.

Hi @WordPressKevin

Which media offload plugin and Bricks element are involved?

Please share the steps to reproduce this with one image, including how the image is selected in Bricks and what appears on the frontend.

Also, does this issue only occur after updating to 2.4 or 2.4.1?

NVM, I fixed it! The plugin is a custom-made plugin by Codex, so there is probably only one person who has this issue, which is me. I can’t find any other similar plugin that has this issue.

Hey, sorry to reopen this. I just updated from 2.3.13 to 2.4.2 and am using BunnyCDN plugin to offload images. All images including WooCommerce product images disappear. Although, IF i use the BricksUltimate element for Woo Image its working fine, but then again - every other image on the website is not working. So I reverted back to 2.3.13 and everything is back to normal. Can someone help with this?

Hi @meetnick

Please set up a staging site that can replicate the issue and share admin access with us via help@bricksbuilder.io (Include this forum thread URL as a reference in your email)

I will investigate the issue. Thanks.

We’ve addressed this in Bricks 2.4.3, now available as a one-click update in your WordPress Dashboard.

The update removes automatic hiding of media based on local-file availability. Please retest the Bunny-hosted images reported later in this thread after updating.

Please read the changelog entry before updating, and let us know if you experience any issues.