Support Forum
Hi there
I have a little issue with mark all topic as read function. There are 2 kind of users on my forum:
1- users where the function works smoothly but icons turn off only after page refresh (work as intended?)
2- users where the function doesn't work at all
What could be the problem?
Oh sorry, i didn't sumbit other infos xD
Okay, this example:
I have 30 unread message on forum, then click on mark all posts as read, the counts shows me 0. When I refresh page, I have 6 unread message (down to 30), i press mark all post as read, the counts drop to 0 again. After page refresh, i have again 6 unread messages, and they won't go lower.
This is totally random, since sometimes it refresh correctly and keep 0 messages, other times It has the above behavior.
The tests are run all from admins who can read all forums
The answer I was after is that these users are all admins.
So you are probably using the SP Admin Bar plugin which creates the Admin 'PostBag'. It means that the 6 posts you see remaining after the refresh are held in the postbag and still need your attention. They will be in the admin bar list and need marking as read or dealign with in any other way. Possibly need approval.
Non admins will not have this facility of course.
YELLOW
SWORDFISH
|
I did few other tries.
First I empty admin post bag, then mark all topics as read, then refresh. I have 0 posts in admin post bag, but the counter still say me 8 message unread.
Then, I just deactivated admin bar, marked again all topics as read, refresh and still 8 unread messages
OK - here is what you do. Next time you believe you see this anomaly.
- Go to forum admin > toolbox > error log: Clear the error log from the button at the bottom.
- Load a forum page and click on the 'mark all as read' button.
- Back to the error log - refresh. Are there any errors? As it clearly states, errors are shaded pink. And Warnings are yellow. Any of either? And please - ignore the notices (blue).
- If errors - then paste them here.
It goes without saying that we have no other reports of this behaviour at this time and I certainly can not replicate any issues on test and our live sites.
YELLOW
SWORDFISH
|
Ok. Seems no error, just 3 notices. The first one appears only when I press on mark as read.
maggio 5, 2015 1:53 pm | spaErrNotice | 1 | php
file: /simple-press/forum/content/classes/sp-forum-view-class.php |
maggio 5, 2015 1:54 pm | spaErrNotice | 8 | php
file: /wordpress/wp-content/sp-resources/forum-plugins/topic-redirect/library/sp-redirect-components.php |
maggio 5, 2015 1:54 pm | spaErrNotice | 8 | php
file: /simple-press/forum/content/classes/sp-group-view-class.php |
As additional information, It seems (but i need more tests) that the numbers of unread messages are the same amount of messages in the admin postbag (a little odd since this happens also with normal users). That count remains still even if I empty the admin postbag. After some time, the if there are no new messages, the count drops to 0.
Example:
10 unread message, 5 message in postbag. After marking all topic/postbag as read ->
5 unread message, even if postbag is empty.
If I go to forum after few hours, the count is 0
1 Guest(s)