Hi there,

I’ve had an issue with the folder media/k2/items/cache for a while (December!) and it is that all the items older than one week included in that folder are automatically deleted.

This started to happen when I wanted to have a backup web for my site www.liffey.cat. I bought another domain www.liff.ie.
I transferred all the files via FTP from www.liffey.cat to my computer and then from my computer to www.liff.ie. They shared database and when I created items (articles) on www.liffey.cat then www.liff.ie was updated automatically except for the picture, that I had to update manually.

It only happens in the main domain (www.liffey.cat), not in any other subdomains, even if it’s exactly the same template. Sometimes I have a copy of the web in a subdomain (with everything working fine), I change the subdomain name to www via FTP, so that subdomain becomes the main domain, and... all pictures on that media/k2/items/cache folder disappear.

This happens with any template. I have tried 3 templates from different providers.

It happens with Joomla 2.5 and Joomla 3.8, basically, with any Joomla version.
All the subdomains and domains are in different MySQL databases.

At the moment I have the web on www.liff.ie, which is a copy of the old www.liffey.cat (now offline), using a different database and it works fine.

Permissions in folders (755) and files (644) are the same everywhere (main domain and subdomains).
An index.html file is present in the folder.

It only happens if the path and folder name is media/k2/items/cache. If I change “cache” by something else it does not happen although the pictures on the web are not visible because of the wrong news path.

I have a 100GB allowance and I am only using 16GB so space is not an issue.

As I have the web in several subdomains I don’t need the rebuild tool from github. I can just transfer the files to the folder via FTP but I would like to know where the issue is because otherwise they will be deleted again after one week of being there.

Thanks in advance.
Marc

Hello,

If the problem occurs also with other templates, it's probably related with K2 component, did you ask on K2 forum support?

Cheers
Joshua

    Joshua-M Hi Joshua, thanks for your answer.
    Yes, I have posted the same question on the K2 forum in Joomlaworks.
    I have been googling the issue for a while and I would say that when transferring one site from one domain to another you have to do "something" in order to avoid this.
    Some people use that rebuild tool in github, some other change "cache" by any other word like "cache_", etc.
    The funniest thing is that it only happens in www.liffey.cat, not in any other subdomain or www.liff.ie.
    I have also asked the provider of the template that I am currently using and they've told me that they will have a look.
    I will let the forum know when (hopefully) this issue is sorted out because even I have a replacement web that works fine, this is driving me crazy.
    Regards,
    Marc

    Write a Reply...
    You need to Login to view replies.