Support Forum

What would cause the recent forum posts widget to not update?

72 Answers

New Answer

KV kvr28
kvr28
Member

logged out this is what it shows as unread and recent

the widget shows the exact thing

If I log in with my test account, the unread and recent changes, but the widget always stays the same, you can see there is a lot more new posts than just the two shown in logged out

If I mark all topics as read, it goes right back to the same as when logged out

YS Yellow Swordfish
Yellow Swordfish
Member

I am scratching my head trying to work out what could be your issue but we do have to establish one thing first.

The latest forum posts below the Group View, the new Posts list popup from the button beside the breadcrumbs and the quicklinks drop down are all dynamic and therefore should change on page load as well as be specifically tailored to the current user viewing the forum.

But on your site this will not necessarily, I believe, be the case with the widget. You have said the rest is subject to a caching. This may include the widget which sits outside of the forum ‘page’ and is, I suspect, in a sidebar or footer. Now I am not 100% sure on this but it will depend on how the cache system works in tandem with the WordPress theme. If this makes separate requests for template parts – like a sidebar or a footer – then it is possible, I believe, that some cache plugins can retrieve those segments from cached HTML files. I am sure Steve will step in and tell me if I am wrong here.

I guess one way of discerning this is to check the content of the widget in the forum page and then compare it with the widget in a cached page. At a busy time of course. If the content is the same then there is a possibility that that section is coming from a cache.

YS Yellow Swordfish
Yellow Swordfish
Member

Also… if I make a new post – let us say a new topic – then it does not necessarily appear in the recent posts list below the group view. That list is going to show you the X number of posts that you have not yet read and the one you just made you HAVE read. So any sitting around unvisited by you will appear first and only if there is room after those will your new one show up.

You can see this happen if you cick on ther ‘mark all as read’ icon beside the new posts popup to the right of the breadcrumbs. If you clear it then the new post you just made will be right there at the top of the list because now there is room.

Does that explain anything?

KV kvr28
kvr28
Member

I will check and report back, it has always updated whenever a new post has been made before, I just noticed it started doing it yesterday after we switched to our new theme, so I am reverting back to our old one right now to see if that fixes it. I’m not really sure it’s a cache issue though, we use wpengine which has a staging server with no caching at all on it, and it still happens on there.  How often should the last 10 below the group view update for people that are not logged in? Or is that suppose to change on page load as well.

And happy thanksgiving to all who are celebrating it today

MP Mr Papa
Mr Papa
Member

its always updated instantly… we dont delay or have periodic updates…

KV kvr28
kvr28
Member

thanks Yellow, I will try playing with that. 

thanks MP, that’s what I figured

How does time zone work into this? When Ike asked about the time settings, I logged in with my test account, marked all posts as read and then changed my time zone from New York to dublin, reloaded the forum and had like 30 unread posts show up

YS Yellow Swordfish
Yellow Swordfish
Member

Every time you load a page a check is made against a stored timestamp which is of the last page load you made. Any posts that have been made by anyone other than you between that check timestanp and now are added to the front of your personal new posts list.

If your timezone changes then the amount of time between now and that last timestamo will increase/decrease accordingly which could then add posts that it believes you have not read even though you may have done so.

Don’t forget that all of these lists are, first and foremost, to do with new and unread posts. This list is NOT going to include any posts that you made. It is only when the number of new and unread posts is not enough to fill the allocation that it then will start to include new posts you MAY have read which may then incude your own.

KV kvr28
kvr28
Member

I did just check my forum error log after the import from staging and saw these, but I’m looking at my database and I see the tables, would this have anything to do with it?

file: /nas/wp/www/cluster-2294/kvr28/wp-content/plugins/simple-press/forum/content/classes/sp-topic-view-class.php
line: 238
function: select
error: Table ‘wp_kvr28.rufus_sftopics’ doesn’t exist

SELECT group_id, rufus_sftopics.topic_id, rufus_sftopics.forum_id, topic_name, topic_slug, topic_status, topic_pinned, topic_icon, topic_opened, rufus_sftopics.post_count, forum_slug, forum_status, forum_disabled, forum_rss_private, rufus_sfposts.post_id, post_date, rufus_sfposts.user_id, rufus_sftopics.user_id AS topic_starter, guest_name, guest_email, post_status, post_pinned, post_index, post_edit, poster_ip, source, post_content, NULL AS new_post, topic_subs FROM rufus_sftopics JOIN rufus_sfposts ON rufus_sftopics.topic_id=rufus_sfposts.topic_id JOIN rufus_sfforums ON rufus_sftopics.forum_id=rufus_sfforums.forum_id WHERE rufus_sftopics.topic_id=31465 ORDER BY post_pinned DESC, rufus_sfposts.post_id ASC LIMIT 0, 10

27 Nov ’14 11:40 am | spaErrError | 1 | database

file: /nas/wp/www/cluster-2294/kvr28/wp-content/plugins/simple-press/forum/content/classes/sp-topic-view-class.php
line: 238
function: select
error: Table ‘wp_kvr28.rufus_sftopics’ doesn’t exist

SELECT group_id, rufus_sftopics.topic_id, rufus_sftopics.forum_id, topic_name, topic_slug, topic_status, topic_pinned, topic_icon, topic_opened, rufus_sftopics.post_count, forum_slug, forum_status, forum_disabled, forum_rss_private, rufus_sfposts.post_id, post_date, rufus_sfposts.user_id, rufus_sftopics.user_id AS topic_starter, guest_name, guest_email, post_status, post_pinned, post_index, post_edit, poster_ip, source, post_content, NULL AS new_post, topic_subs FROM rufus_sftopics JOIN rufus_sfposts ON rufus_sftopics.topic_id=rufus_sfposts.topic_id JOIN rufus_sfforums ON rufus_sftopics.forum_id=rufus_sfforums.forum_id WHERE rufus_sftopics.topic_id=31465 ORDER BY post_pinned DESC, rufus_sfposts.post_id ASC LIMIT 0, 10

27 Nov ’14 11:40 am | spaErrError | 1 | database

file: /nas/wp/www/cluster-2294/kvr28/wp-content/plugins/simple-press/forum/content/classes/sp-list-topic-class.php
line: 174
function: select
error: Table ‘wp_kvr28.rufus_sfforums’ doesn’t exist

SELECT rufus_sftopics.forum_id, forum_name, forum_slug, forum_disabled, rufus_sftopics.topic_id, topic_name, topic_slug, topic_icon, topic_icon_new, rufus_sftopics.post_count, rufus_sftopics.post_id, post_status, post_index, post_date, guest_name, rufus_sfposts.user_id, post_content, display_name FROM rufus_sftopics JOIN rufus_sfforums ON rufus_sfforums.forum_id = rufus_sftopics.forum_id JOIN rufus_sfgroups ON rufus_sfgroups.group_id = rufus_sfforums.group_id JOIN rufus_sfposts ON rufus_sfposts.post_id = rufus_sftopics.post_id LEFT JOIN rufus_sfmembers ON rufus_sfmembers.user_id = rufus_sfposts.user_id WHERE rufus_sftopics.topic_id IN (33279,33267,33278,33275,33161,33271,33254,33273,33269,33280,32646) ORDER BY rufus_sftopics.post_id DESC

KV kvr28
kvr28
Member

Yellow Swordfish said
Every time you load a page a check is made against a stored timestamp which is of the last page load you made. Any posts that have been made by anyone other than you between that check timestanp and now are added to the front of your personal new posts list.

If your timezone changes then the amount of time between now and that last timestamo will increase/decrease accordingly which could then add posts that it believes you have not read even though you may have done so.

Don’t forget that all of these lists are, first and foremost, to do with new and unread posts. This list is NOT going to include any posts that you made. It is only when the number of new and unread posts is not enough to fill the allocation that it then will start to include new posts you MAY have read which may then incude your own.

understood

MP Mr Papa
Mr Papa
Member

so have you tried as test user and see if they appear?  or try a post a test user and see if you see them…

though not sure I agree with Andy about the recent posts widget not showing your own posts.. need to check that…

KV kvr28
kvr28
Member

yes, when I post as admin it shows up as updated on the new posts next to breadcrumbs and on the drop down in the header and on the main page under group view for the test account, when I post as test it’s updated on the admin account next to breadcrumbs and the drop down in the header and on the main page under group view for test account, it just doesn’t change anything if logged out or on the post widget,

I think I found out why, but not sure what is causing it, I set a sidebar on the forum page on the staging server and kept increasing the amount of topics displayed until no more showed, that number is 55,

now, if I make a post on one those 55 topics it immediately goes to the top of the widget as the recent post and it changes on the front page list under group view for the test account and for logged out

If I make a new topic or a post on any other topic besides those 55 that show, it doesn’t change for logged out users under group view or the widget

YS Yellow Swordfish
Yellow Swordfish
Member

So let me see if I can recap and just condense this down to what the issue actually appears to be…

I think, after all this, you are basically saying that the issue shows up for guest/not logged in users who do not see new posts or topics in the listings. Is that more or less correct?

So – first thing we need to check is permissions for guest users. Do they have consistent access permission to all forums and if so what is it?

KV kvr28
kvr28
Member

yes, plus the recent posts widget isn’t updating except for those 55 topics, even for logged in users

guests can view forums, view posts by admin and view links

YS Yellow Swordfish
Yellow Swordfish
Member

Mmm. Definitely can not replicate with those permissions. I am also troubled by where this 55 entries limit is coming from. Will keep looking ad talking about it here but at the moment somewhat stumped. No other similar reports either which is curious.

I will see if I can work out why the 55 limit. Unless that is simply the number that fill;s the requirements which is a possibility I suppose. except for guests there is no concept of when they last visited of course as we can keep no data on them….

KV kvr28
kvr28
Member

Would this have anything to do with it? 

I was testing user settings when I first installed simple press, I had changed the default number of unread posts to 200 and allowed the members to set their max number of unread posts.

I did not mention anything to the members, but adjusted it on my test account, I wanted to see if it would slow down the queries, how quickly 200 posts would take to propagate, etc. I decided to change it back to 50 and allow them to set their max , but my test account kept filling to 200 posts, I didn’t think anything of it, I just cleared the posts and cleared the cache, 

I logged into that account and saw that it was still showing 200 unread posts, so I looked around the settings more and saw the new posts topic cache was set to 200 under global settings, so I changed that to 100 and cleared all the caches, then changed it back to 200. 

Is it basically waiting to build the cache back to 200 before the new topics kick in and start propagating those areas?