• Hi,

    If you replace an image with the Media Replace Tool and the image is loaded on the website from an ACF (SCF) image field, then ACF can no longer load the image properly.

    The problem seems to be that the cache parameter is appended to the file URL.
    /wp-content/uploads/image.jpg?t=1729992413

    Is it possible to fix that?

    I had to delete and re-upload the image to get the ACF Fields to work.
    I am using the free version of ASE and ACF.

    Hope that helps.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Bowo

    (@qriouslad)

    @retunes thanks for reporting this. I’ll have to take a closer look. The ‘t’ parameter is added to bust browser cache, i.e. so users can instantly see the newly uploaded image without having to do a force reload in the browser.

    How are you displaying the ACF image field on the frontend? Shortcode? Function in template? Page builder integration? Which theme / page builder are you using? I’ll need the info to replicate the issue on my end, so I can investigate a fix for it.

    Thread Starter retunes

    (@retunes)

    I use a regular image element in Bricks Builder along with a dynamic data tag for the source, like this {acf_image_field}.

    Plugin Author Bowo

    (@qriouslad)

    @retunes I just found time to test this with latest SCF and Bricks. I am unable to replicate the issue you reported. Here’s how I went about doing it:

    1. Create a CPT and a field group with an image field and attach that field group to the CPT.
    2. Create a CPT post and populate the ACF image field
    3. Create a Bricks template for that CPT’s single view, add an image element, use dynamic data source, choose the ACF image field as the source
    4. The post shows the image added via the ACF image field just fine
    5. Go to media library, look for the image in use by the ACF image field, perform a replacement there. I’m testing with a JPG image.
    6. Go to the CPT post edit screen and it is showing the new image just fine. The image source URL has the timestamp appended to it, e.g. /wp-content/uploads/image.jpg?t=1729992413
    7. Go to the frontend to view the CPT post, and it is showing the new image just fine. The image source also has the timestamp there.
    8. Reload the Bricks template edit view, and the new image is shown there just fine too.

    Here’s a screenshot of the template editing screen showing the image element in Bricks with ACF image field as dynamic data source: https://www.imagebam.com/view/MEXFDZE

    At which step (above) are you observing the “ACF can no longer load the image properly” issue you reported?

    Thread Starter retunes

    (@retunes)

    Hi,

    Thanks for testing. I am stuck at 6.

    I recorded a video. There I upload a new image for the Background, then replace it. You can see, after replacing, the background image is not shown anymore.

    Recorded video: https://1drv.ms/v/s!AhWP30KbNdyjirhCgIOzJX26C_7juw
    The Background Image is included as an image element: https://imgur.com/a/EJmjujy

    The Image Element is not in the DOM after replacing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.