Category Blog Layout diplays all the articles twice ???

GK User
Sat Aug 27, 2011 12:34 pm
I have attached a picture to show you the error.

Usually it happens when you click the category title from an article!!!
Anybody there???
User avatar
Fresh Boarder

GK User
Tue Aug 30, 2011 7:54 am
I have another issue with the same error and this time shows the world news logo on the top of the page....
desktop.jpg
User avatar
Fresh Boarder

GK User
Thu Sep 08, 2011 11:41 am
The solution here:

(you have to download first plg_gkcache.zip (2.72 KB))

Problem is strictly relate with the cache system - we'll solve it in the next Gavern upgrade. Currently you can use our temporary solution which will be used in the mentioned update:

The problem is caused by fact that GK Parser is running after System Cache plugin. To avoid this please do following steps:
- set the System Cache plugin as a last plugin using ordering column in the plugins management
- install attached GK Cache plugin
- set the GK Cache plugin before System Cache plugin using ordering column
- edit the templateDetails.xml file: after line

<field name="gk_line_12" type="line" text="" />

please add:

<field name="use_gk_cache" type="list" class="gk_switch" default="0" label="TPL_GK_LANG_USE_GK_CACHE" description="TPL_GK_LANG_USE_GK_CACHE_DESC">
<option value="1">TPL_GK_LANG_ENABLED</option>
<option value="0">TPL_GK_LANG_DISABLED</option>
</field>

- in the template language file please add at end these two lines:

TPL_GK_LANG_USE_GK_CACHE="Use GK Cache"
TPL_GK_LANG_USE_GK_CACHE_DESC="If you're using System Cache plugin you should enable also GK Cache plugin running before System Cache plugin in order to get GK Parser working properly"

- in the lib/gk.framework.php file please replace lines:

// define an event for replacement
$dispatcher = JDispatcher::getInstance();
$dispatcher->register('onAfterRender', 'GKParserPlugin');

with:

// define an event for replacement
$dispatcher = JDispatcher::getInstance();
// set a proper event for GKParserPlugin
if($this->getParam('use_gk_cache', 0) == 0) {
$dispatcher->register('onAfterRender', 'GKParserPlugin');
} else {
$dispatcher->register('onBeforeCache', 'GKParserPlugin');
}

- go to the TWN2 template options and in the "Advanced settings" please enable option "Use GK Cache" and save the template options
- clear the Joomla! cache
- refresh article page two times - it should now works fine with enabled Joomla! cache.
--
User avatar
Fresh Boarder


cron