Answer the question
In order to leave comments, you need to log in
Why does K2 (a Joomla component) output an empty block instead of content?
The problem is the following, and its repeatability has not yet been specifically established, but: if this page (i.e., the page on which one of the views of the K2 component should be displayed) is not accessed for a long time, then after accessing it on in the place of the expected content, we see only emptiness:
<!-- Start K2 Category Layout -->
<div id="k2Container" class="itemListView">
</div>
<!-- End K2 Category Layout -->
<!-- JoomlaWorks "K2" (v2.6.7) | Learn more about K2 at http://getk2.org -->
<link href="/en/alias-punkta-roditelia/alias-punkta-menu?format=feed&type=rss" rel="alternate" type="application/rss+xml" title="RSS 2.0" />
<link href="/en/alias-punkta-roditelia/alias-punkta-menu?format=feed&type=atom" rel="alternate" type="application/atom+xml" title="Atom 1.0" />
Answer the question
In order to leave comments, you need to log in
The issue was resolved by writing a hell of a crutch: K2 writes to a certain hidden tag the amount of materials that he displayed (in the case of an empty block - 0). Then the script looks, if there are zero materials, and there should be not zero - reloading the page (taking into account the randomness of the problem - it works).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question