- Posts: 13
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2 still showing old images after replacing it
[SOLVED] K2 still showing old images after replacing it
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
Am using Joomla 2.5.16 with K2 version 2.6.7 - My issue is that when am deleting an image of an item in k2 and replacing this image with a new one. Even after clearing the cache and purging expired cache, the thumbnail of the old image continues to show up but inside the item i have the new image showing.
The old image thumbnail is appearing only on the homepage, any idea how i can resolve this issue please?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Make sure when you change an image, the new one has a different filename because your browser has already cached the old image.
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
I do use a different filename, and as precautionary measure i do delete the old image first do a save. Then edit the article again and upload the new image.
Still getting issue.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
These template frameworks have caching plugins of their own with their own distinct settings.
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
The module am using to show the items from k2 is News Show SP1
You can confirm that its not an issue from K2 but rather from the module?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Turn off caching for this module so it's cache will clear. Reload your site and the turn caching for this module back on.
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
Before it was working properly i don't know why just recently am having this issue.
Just something i would like to add, since on my site the old images are appearing, can't it be that if i update an image the previous image is deleted from the src and cache folder?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
You can ask your hosting provider if there a was a change in your configuration.
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
Infact my using a dedicated server and no setting or configuration was changed recently, in the media folder i have the Cache folder set to 777 and the SRC folder set to 755
I believe k2 as full access to overwrite data, is there some other solution you might suggest for me to explore?
Or do you think i must reinstall k2?
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
and am observing the same problem on that one too
am using joomla 3.1.5 with k2 version 2.6.7 with this one
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
I managed the source of the issue and it seems coming from k2. I explain:
Lets take this article for example: www.defimedia.info/live-news/item/42067-bus-semi-low-floor-la-mauritius-bus-owners-federation-decue-de-la-mesure-annoncee-par-xld.html
The thumbnail of this article has URL: www.defimedia.info/media/k2/items/cache/5688cfd57677c832e4f6d879b37053db_XL_thumb100.jpg
And the big image inside the article has URL: www.defimedia.info/media/k2/items/cache/5688cfd57677c832e4f6d879b37053db_XL.jpg
In the URL for the thumbnail notice the end of the filename: thumb100.jpg
Every articles' thumbnail ends with this.
Now comes the tricky part, when I upload a new image over an existing image. Lets take this article as example: www.defimedia.info/live-news/item/42069-exportation-de-ferraille-les-conteneurs-en-provenance-de-maurice-contenait-des-pierres.html
The big version of the newly upload image (inside article) has this new URL: www.defimedia.info/media/k2/items/cache/9b7ee3d0350be56446d52e7073839055_XL.jpg
The old image had the same URL,meaning the new image has overwritten the old image at the same URL
Now for the thumbnail that appears on the homepage, the old image thumbnail continues to appear on the homepage with this URL: www.defimedia.info/media/k2/items/cache/9b7ee3d0350be56446d52e7073839055_XL_thumb100.jpg
Here again notice the thum100.jpg
But while investigating i gone through the k2 cache folder located at media/k2/cache where k2 stores all the versions (6 in all) of all images being uploaded and to my big surprise the new image thumbnail is well there but with a different URL: www.defimedia.info/media/k2/items/cache/9b7ee3d0350be56446d52e7073839055_S.jpg
Now why on my homepage despite clearing cache etc still the old image thumbnail is still appearing because its pointing to the wrong URL, now the question is how do i point it to the new good URL?
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
The first link you have posted though (www.defimedia.info/media/k2/items/cache/...53db_XL_thumb100.jpg) doesn't seem to be generated from K2. All K2 images that are being generated have the size at the end of the filename, like the last url you have posted (www.defimedia.info/media/k2/items/cache/...d52e7073839055_S.jpg)
Where can I see an image that has the _thumb100.jpg at the end?
Did you use any other extension or have made any modification to K2 which would result with this filename?
Maybe you have made modifications for a mobile version of your site?
Please Log in or Create an account to join the conversation.
- Yasin Karimbocus
-
Topic Author
- Offline
- New Member
- Posts: 13
Well you are perfectly right after investigation the link with the thumb100.jpg file is being generated by another module called "News Show SP1"
sorry my mistake
Its this module that is generating this image and example link here: www.defimedia.info/media/k2/items/cache/54a181c0553a93e6fea172256af3735b_XL_thumb100.jpg
the problem is that when joomla caching is enable am not able to overwrite this image,can you help please? even setting the image to 777 permission i cant overwrite it when replacing this image from backend.
Please Log in or Create an account to join the conversation.
- Yiota
-
- Visitor
Otherwise you should advise the module's developers in order to help you with a solution.
Please Log in or Create an account to join the conversation.
- Sanjiv Khullar
-
- Offline
- Senior Member
- Posts: 45
Is their a solution to this without having to upload the images again
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
In order to make images work you need to transfer the items with the same IDs as they appear on the first site.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] K2 still showing old images after replacing it