If you have webpage with restricted access hits counter for articles does not increase.
Hits counter should also increment if you have webpage for registered users only.
If you have webpage with restricted access hits counter for articles does not increase.
Joomla 3.5
I checked this problem and my analysis is below
The root of problem is in the file:
/components/com_content/controller.php
lines 72-76:
if ($user->get('id')
|| ($this->input->getMethod() == 'POST'
&& (($vName == 'category' && $this->input->get('layout') != 'blog') || $vName == 'archive' )))
{
$cachable = false;
}
These lines sets cachable to false in some cases, also when you are logged user. For this reason the condition in the line 104 is not fulfilled and hits are not added.
if ($vName == 'article' && $cachable)
{
// Get/Create the model
if ($model = $this->getModel($vName))
{
$model->hit();
}
}
Ok, I just registered. Shall I do something with it now?
W dniu 2016-03-25 12:44, Brian Teeman napisał(a):
Hi - you have reported this on the wrong issue tracker - this is the
tracker for the issue tracker itself.BUT
This has already been reported (i think) please see
https://issues.joomla.org/tracker/joomla-cms/9563You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [1]*
Links:
[1] #768 (comment)
Its ok - someone will close this here - but please check the link I gave to ensure it is in fact the same issue
i've checked, yes, it's the same problem. I will not submit it again.
W dniu 2016-03-25 12:47, Brian Teeman napisał(a):
Its ok - someone will close this here - but please check the link I
gave to ensure it is in fact the same issueYou are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub [1]*
Links:
[1] #768 (comment)
Labels |
Added:
000-CMS
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-03-25 13:24:01 |
Closed_By | ⇒ | mbabker |
Hi - you have reported this on the wrong issue tracker - this is the tracker for the issue tracker itself.
BUT
This has already been reported (i think) please see https://issues.joomla.org/tracker/joomla-cms/9563