View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000208 | Composr | core | public | 2010-09-29 12:50 | 2010-10-06 19:46 |
| Reporter | ChrisW | Assigned To | Chris Graham | ||
| Severity | Minor-bug | ||||
| Status | resolved | Resolution | fixed | ||
| Product Version | |||||
| Fixed in Version | |||||
| Summary | 0000208: Theme image URLs not updated when file extension changed | ||||
| Description | If using an image in a theme such as themes/foo/images_custom/myimage.jpg then later remove this file and add one called themes/foo/images_custom/myimage.png then any references to this image (eg. {$IMG,myimage} in tempcode) will carry on pointing to the original jpg URL, even if it doesn't exist. Clearing the theme image cache from the admin zone doesn't fix this either. Using the XML database this can be fixed by changing the relevant XML file in cms5_theme_images. | ||||
| Steps To Reproduce | 1) Use an image in a theme, for example images_custom/logo.jpg 2) Browse some pages so that this is calculated and cached 3) Remove the image file and place another in the same location with a different file extension (and file type), such as images_custom/logo.png 4) Browse the site again. References to "logo" will be pointing to images_custom//logo.jpg and will thus not render. Expected behaviour: References with the same name but changed file extension should be updated in the database to point to the new file. This can happen during a theme image decache from the admin zone's cleanup tools. | ||||
| Tags | No tags attached. | ||||
| Time estimation (hours) | |||||
| Sponsorship open | |||||