Describe the bug
When pulling an image via the Timber/ACF integration in Twig the resulting image is the proxied source image URL instead of the current site URL, which fails to find the image from the Media Library. This causes the TimberImage processing to fail with a critical error.
To Reproduce
Steps to reproduce the behavior:
- Install, activate, configure the plugin.
- Navigate to a page that uses code such as:
<img src="{{TimberImage(post.get_field('profile_picture')).src|resize(280, 280)}}" />
- Observe a site critical error.
Expected behavior
Ideally the code shouldn't error out fatally but return a proper Twig image object that has a source of the proxy site.
Isolating the problem (mark completed items with an [x]):
WordPress Environment
- PHP Version: 8.0
- WordPress Version: 6.2.2
- Plugin Version: 1.1.1
Describe the bug
When pulling an image via the Timber/ACF integration in Twig the resulting image is the proxied source image URL instead of the current site URL, which fails to find the image from the Media Library. This causes the TimberImage processing to fail with a critical error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Ideally the code shouldn't error out fatally but return a proper Twig image object that has a source of the proxy site.
Isolating the problem (mark completed items with an [x]):
WordPress Environment