Notifications
Clear all

wpForo 1.x.x [Closed] Unread forums/topics/post

10 Posts
2 Users
0 Reactions
1,000 Views
Posts: 22
Topic starter
(@etrimon)
Eminent Member
Joined: 6 years ago

Hallo,

I have a problem with "unread posts", they are not marked as the wpforo_unread function does not return anything in the current view.

The problem lays possibly by using the wpforo_current_usermeta() function, because if I print_r the results for each topic, my testing enviroment shows an array of IDs, but on live site it simply doesn't print anything, just empty string.

Do you have an idea, what it could be? And can help, if I update all the statistics in Forum Dashboard?

Thank you for your answer.

Best wishes

9 Replies
Posts: 22
Topic starter
(@etrimon)
Eminent Member
Joined: 6 years ago

Update: it looks like the forum does not save cookies on live site, any ideas why it does not behave as it should be - on localhost I see the wpf_read_forums and wpf_read_topics cookies, but on livesite.

Update 2: live site is running on https.

Update 3: I compared all cookies on localhost and live site, and only those two above mentioned do not get saved.

Any idea, why?

Thank you very much.

Sofy
Posts: 4772
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @etrimon,

Probably the "Forum Cookies" option is disabled. The option is located in Dashboard > Forums > Tools > Privacy & Rules admin page. 

Posts: 22
Topic starter
(@etrimon)
Eminent Member
Joined: 6 years ago

Sadly it does not solve the problem.

Just to be sure I switched off and again on to be 100% sure, but still not working. 🙁

Posts: 22
Topic starter
(@etrimon)
Eminent Member
Joined: 6 years ago

Any ideas, what to test to send you more information about this issue. We have around 150 posts a day and for a moderator it is kinda hard to see, what is new and what not.

The unread posts link works as expected, but simply the wpforo_unread() function does not return anything.

I really think, there is some kind of a problem with the cookies.

Many thanks for every idea! 🙂

5 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

@etrimon,

We have around 150 posts a day and for a moderator it is kinda hard to see, what is new and what not.

Af first I'd suggest you check out another good wpForo feature: Filter Dropdown on Recent Posts page (Recent, Unread, Solved...)

The unread posts link works as expected, but simply the wpforo_unread() function does not return anything.

In any case, I'll ask the plugin developers to check this for you. 

(@etrimon)
Joined: 6 years ago

Eminent Member
Posts: 22

Thank you very much!

And here a little bit more.

Here are the server settings and it is a subdomain (forum.domain.com), but as I said all other cookies work as expected.

Web Server Apache
PHP Version 7.2.18
MySQL Version 5.5.5
PHP Max Post Size 100M
PHP Max Upload Size 100M
PHP Memory Limit 256M
PHP DateTime Class Available
PHP cURL Module Available
(@etrimon)
Joined: 6 years ago

Eminent Member
Posts: 22

Ok. I did more tests, cookie functions are working flawless, the real problem is, that these functions wpforo_current_usermeta( 'wpf_read_topics' ) and wpforo_current_usermeta( 'wpf_read_forums' ) return null for logged in users.

(@etrimon)
Joined: 6 years ago

Eminent Member
Posts: 22

And one more update - both usermeta keys + values are in the database present.

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

Hi @etrimon,

Please confirm that the "Log Viewed Forums and Topics" option is enabled. The option is located in Dashboard > Forums > Settings > Features admin page.