Using a Custom image size in Elementor causes WordPress thumbnails to be not found when uploads are organized into month and year #27321
Labels
status/awaiting_triage
Indicates when an Issue, Pull Request, or Discussion awaits to be triaged.
Prerequisites
Description
When the WordPress Media settings are set to "Organize my uploads into month- and year-based folders", using a Custom image size in Elementor causes certain thumbnail sizes in WordPress to be not found. When a Custom Elementor image size is used, WordPress will use that size instead of the default thumbnail size when it makes sense to. But when it does this, it takes the base URL of the image which is site.com/wp-content/uploads/year#/month#/ and adds elementor/thumbs/filename-guid.jpg. The actual generated file location doesn't have the year and month in it, so when it tries to load site.com/wp-content/uploads/year#/month#/elementor/thumbs/filename-guid.jpg, it's not found. The year and month need to be removed from the URL in this scenario.
Steps to reproduce
There are a few ways to reproduce but I found this to be the most straightforward:
Expected behavior
Isolating the problem
Elementor System Info
Click to reveal
Agreement
The text was updated successfully, but these errors were encountered: