Notifications
Clear all

wpForo 1.x.x [Closed] Stats views topic not upadting

5 Posts
1 Users
0 Reactions
629 Views
Posts: 9
Topic starter
(@remco)
Active Member
Joined: 5 years ago

Hi,

It seems to us that the stats on our form are not updating.
We just posted a topic as you can see in the screen. The numbers of views dont count up.
I allready disbaled several plugins. deleted all cache of WP Foro, and Cloudflare.

But the numbers stays just the same.
I allready looked in the admin panel but i cant see nothing strange.

Maybe one of you knows the solution?

I hope you can find the problem.

Kind regards,

Remco

4 Replies
Posts: 9
Topic starter
(@remco)
Active Member
Joined: 5 years ago

Here is the site: https://bit.ly/2VjfMJL
Half a year ago i had the same problem and did what you told me.
WE are willing to pay for support. thats no problem as long as it works. Its important to our avertizers to show them the numbers.

Posts: 9
Topic starter
(@remco)
Active Member
Joined: 5 years ago

In google analytics. See screen. On forum now 42....😞

Posts: 9
Topic starter
(@remco)
Active Member
Joined: 5 years ago

Another example why i know its not updating the statistics.
See this page (threads) form a year ago: https://bit.ly/3dxthMf
And then the first page of the same forum: https://bit.ly/2A4rMrb

This cant be right because we are a year further and the stats in analytics are way much more then last year. Als the forum threads in Google Analytics.

We also use WP Rocket, and i allready head this in my function.php from wpf-includes:

function wpforo_user_logging(){
$data = WPF()->current_object;
$visitor = WPF()->current_user;
if( wpfval($data, 'template') && $data['template'] == 'post' && wpfval($data, 'topicid') ){
//to-do: don't increase views before all read point.
if( WPF()->tools_legal['cookies'] ){
$viwed_ids = wpforo_getcookie( 'wpf_read_topics', false );
if( empty($viwed_ids) || !wpfval($viwed_ids, $data['topicid']) ){
WPF()->db->query("UPDATE `".WPF()->tables->topics."` SET `views` = `views` + 1 WHERE `topicid` = " . intval($data['topicid']));
}
}

Allready use page rules in cloudflare to NOT cache community/* and Community/
This is also set in Wp Rocket.

 

You see i'm a little bit concerned, and active about this 😀

Thanx in advance.

Remco

Posts: 9
Topic starter
(@remco)
Active Member
Joined: 5 years ago

Is there anyone who can help me with this issue?
Hope to hear of one ofyou support members..

Thank you