Keyword

[SOLVED] K2 still showing old images after replacing it

  • Yasin Karimbocus
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120403 by Yasin Karimbocus
Dear Sir

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120404 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
Hello Yasin,

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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120405 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Yes krikor

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120406 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
Ok, then it is a setting in your cache plugin. Turn off browser caching from the plugin's settings.

Please Log in or Create an account to join the conversation.

  • Yasin Karimbocus
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120407 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
System caching is already disabled. Something worth mentioning i think is the fact that when i change an image and refresh my homepage, i do see the new thumbnail for 1 second only while the page is loading and once the page finish loading the image returns to the old one.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120408 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
This is a strange behaviour. Are you using a commercial template?

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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120409 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Yes am using a commercial template, and its this template in particular: www.joomshaper.com/joomla-templates/news-ii

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120410 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
The issue is probably the module's caching.
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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120411 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
The module caching was already off and i manage to turn the caching for the template also off when to no use still having the issue.

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120412 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
The image could be deleted but the caching plugin generates a static version of your site and serves this static version to your guests. The question is why this content is not deleted when you delete the cache.

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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120413 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Dear Krikor

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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120414 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Just to inform you i have another website sport.defimedia.info/

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 6 months ago #120415 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 still showing old images after replacing it
Are you experiencing it in the component view, in a module or is it a custom module?

Please Log in or Create an account to join the conversation.

  • Yasin Karimbocus
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120416 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
In the admin panel the correct images is there even in article view, till now i notice it in News Show SP1 and another module for joomlart

Please Log in or Create an account to join the conversation.

  • Yasin Karimbocus
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120417 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Hi

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
  • Yiota's Avatar
  • Visitor
11 years 6 months ago #120418 by Yiota
I just visited your listing page and located the item you have posted, the one with the bus. Both links seem OK.

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
  • Yasin Karimbocus's Avatar Topic Author
  • Offline
  • New Member
More
11 years 6 months ago #120419 by Yasin Karimbocus
Replied by Yasin Karimbocus on topic Re: K2 still showing old images after replacing it
Hello Yiota

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
  • Yiota's Avatar
  • Visitor
11 years 6 months ago #120420 by Yiota
This is in my opinion a faulty implementation of the module you are using. It shouldn't generate this kind of filenames for the images. Anyway, try to disable the module's cache in case something changes with that.

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.

More
11 years 1 month ago #120421 by Sanjiv Khullar
Replied by Sanjiv Khullar on topic Re: K2 still showing old images after replacing it
I have exported my k2 categories and items via php-admin to a new site and attempted to transfer and images to the media/k2 images folder - the categories images are correct but the items are not

Is their a solution to this without having to upload the images again

Please Log in or Create an account to join the conversation.

More
11 years 1 month ago #120422 by Lefteris
@Sanjiv Khullar

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.


Powered by Kunena Forum