Problem with new gk cache

Feel free to talk about everything related to our Joomla Products
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Tue Dec 03, 2013 9:15 am
Hi,
I have a problem with thew new caching system in gk_musicstate 3.10.1. the gk folder in the cache directory is not written at all (other cachefolders are inside. (chmod 755 or 777 for the directories)). If I clean the cache and create a gk directory manually inside, then the cached file is inside, logically until I clean the cache.

maybe someone can help.
best regards
mark
User avatar
Senior Boarder

GK User
Tue Dec 03, 2013 9:36 am
Hmm… I don't understand something, you want to clean cache directory? when cache is enabled you will always see some files there.
User avatar
Platinum Boarder

GK User
Tue Dec 03, 2013 9:46 am
If I clean the cache, I see only the index.html file in the cache directory on ftp until I call the frontend. But the problem is the gk directory is not created inside the cache.
User avatar
Senior Boarder

GK User
Tue Dec 03, 2013 8:52 pm
hi,
problem solved. killed gk for the path and url in helper.cache.php.
maybe someone have the same problem.

nice greetings
mark
User avatar
Senior Boarder

GK User
Wed Dec 04, 2013 11:42 am
But what is the problem with empty directory? File permisisons 755 are find for folder and shouldn't cause any problems.
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 12:59 pm
hi,
the problem was, that the gk folder in the cache folder was not created (I saw this on the ftp), so the gk cache was useless (all other folders were created). I use cachecleaner from nonumbers, which is wonderful, because it cleans all folders and files in the cache folder. With the old gk cache plugins there was no problem.
best regards
mark
User avatar
Senior Boarder

GK User
Sat Dec 07, 2013 1:42 pm
Ok now I understand, but please remember to create this directory if you want to use our cache plugin.
User avatar
Platinum Boarder

GK User
Wed Jan 01, 2014 6:46 pm
Can someone explain what the solultion was here - I think I am having the same problem. My JS and CSS files are being created - but then they suddenly disappear and so does the /gk folder inside the /cache/ folder.
User avatar
Fresh Boarder

GK User
Thu Jan 02, 2014 3:16 pm
hi,
my solution was:
open file template/yourgktemplate/lib/framwork/helper.cache.php
on line 221 replace
$path = JPATH_SITE . DS . 'cache' . DS . 'gk'. DS . $file;
with
$path = JPATH_SITE . DS . 'cache' . $file;
on line 297 replace
$path = 'cache' . DS . 'gk';
with
$path = 'cache';
on line 301
$url = JURI::base(true) .DS. 'cache'. DS .'gk' . DS. $filename;
with
$url = JURI::base(true) .DS. 'cache'. DS. $filename;

so the cached files are inside the cache folder and not in cache/gk.

greetings
mark
User avatar
Senior Boarder

GK User
Sun Jan 05, 2014 3:52 pm
Maybe the problem is just with file permissions to create /gk subdirectory?
User avatar
Platinum Boarder

GK User
Fri Jan 10, 2014 5:07 am
Hey Polivka,

Thanks for the reply. I hate hacking my theme files but I might have to try that if I don't get a solution soon.

@bkrztuk:

So, what controls the setting of the file permissions for the gk folder. Mine is created dynamically by the theme - so what code in the theme tells the gk folder which permissions to use? Or is this something that is controlled by my server - if it is controlled by the server then what can I tell my hosting company to change to get this working?
User avatar
Fresh Boarder

GK User
Fri Jan 10, 2014 10:12 pm
Our folder should have 644 permissions to allow to write files there.
User avatar
Platinum Boarder

GK User
Sat Feb 21, 2015 12:33 pm
Sorry to open this rather old thread, but I have the same issue.
Just uploaded a new website using meetgavern as template.
On my development environment everthing worked fine: css cache and css compress created a directory gk in directory cache.

but now it is on production the gk directory is NOT created?
the cache directory is fully writable (755) > also checked in Joomla

When I manually create the gk directory it directly fills up with the templates comressed cache files.

When I clean the cache from the back-end (need to do that sometimes) the directory gk is removed and I have to recreate manually again :(

I have different sites with this hosting provider which also use the meetgavern theme but do not have this issue... so I really do not know where to look?

Are there any requirements that are needed to use the cache/compress functionality (e.g. php modules) that I am missing?
User avatar
Senior Boarder

GK User
Sat Feb 21, 2015 1:07 pm
Okay, figured this out myself :)
after diving into the code I saw that the directory is created with JFolder::create

After commenting out the $obd = ini_get('open_basedir'); in file ./libraries/joomla/filesystem/folder.php the automatic creation of the gk directory worked again :)

Hope this is helpfull for anyone.
User avatar
Senior Boarder


cron