View Issue Details

IDProjectCategoryView StatusLast Update
0000208Composrcorepublic2010-10-06 19:46
ReporterChrisWAssigned ToChris Graham 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Product Version 
Fixed in Version 
Summary0000208: Theme image URLs not updated when file extension changed
DescriptionIf 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 Reproduce1) 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.
TagsNo tags attached.
Time estimation (hours)
Sponsorship open

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change