Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
PM plugin problems after the last update to Version 2.3.1
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 8, 2016 - 11:31 am

I did everything as you said, the thread is still not sorted chronologically, there are 34 messages in the thread in fact the last message appears at the top of the 4th page instead of the 1st page where I would expect it to be and the first message appears at the bottom of the 2nd page instead of the last page.

There is now nothing in the Error Log.

There was a notice in the log after I updated the PM options before emptying the log and before checking the PM settings and thread.

December 8, 2016 3:51 pm | spaErrNotice | 6 | phpfile: a*****/public_html/wp-content/sp-resources/forum-plugins/private-messaging/library/sp-pm-components.php
line: 296
function: sp_pm_do_breadcrumb
Notice | Undefined variable: url

I went further and changed the PM display options to show 40 messages per page and then checked, all the messages appear in the correct order, I changed it back to 10 and the thread reverts to incorrect order.

The error log is still empty.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 9, 2016 - 3:17 am

Sorry for the delayed reply.

I am struggling to find any way that the sort can not be correct to be honest. My only thought is - if this is an old PM thread - i.e., prior to the last PM update that corresponded to 5.7.2 of the core SP plugin - then we know we had one or two odd anomalies which is what prompted the rewrite of much of the database query and construction code. Could it be an artifact of originally not quite right data. Although I am afraid I fail to understand the paging oddity.

If it IS an old thread, can you see what happens on completely newly created ones?

@mr-papa - any ideas? especially around the odd paging question...

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 9, 2016 - 6:37 am

It is a thread that existed before the updates, as per the first post.

I can test with a new thread but it will be a while as it will probably need to extend to more than one page.

I thought the problem fairly limited as there were no comments from users but once one person posted others have now posted that they are having problems, see attachment.

In view of this I was wondering if it was worth deleting the PM plugin files and re-installing, but what would happen to existing messages? If they remain in the Database then I suppose the problem could re-appear as the error may be in the Database.

Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 9, 2016 - 9:54 am

Actually, thinking about it this didn't happen at the latest update (to address Smiley support) but the previous update, after or at the SP 5.7.2 update?

I've been doing some testing. Firstly I found that trying to delete an entire thread with the thread open the message says deleted but when the page refreshes to the PM list, the thread is still there. using the delete button from the PM list works OK.

I've also realised that the PM list itself is not sorted with the latest thread at the top, it seems to be sorted by thread creation time, this wouldn't be a problem but for the fact there is nothing to indicate which thread contains a new message apart from the date/time, I suspect this, along with the seemingly random sorting of long threads is what leads people to say they are notified of a new messages but can't find them. The situation is compounded if the first participant deletes an entire thread but the second doesn't. The second participant seems to be able see all or most messages in that thread and if he replies to one of these messages (deleted by the first participant), the first participant is notified of a new message but it appears way down his list, sorted by creation date of the original entire thread with the original title when he is expecting a new thread at the top!

Back to my experiment, I started by sending silly messages backwards and forwards between two accounts, this was OK up until the message count went above the page setting number (ours is set to 10), the 11th message then appeared at the top of the second page instead of the first and continued like that for a few messages but then reverted to the first page, by the time there were three pages some new messages were on the third page and it became increasingly difficult to find the latest message so I had the idea of starting another thread and just sending incrementing numbers. A similar thing happened, OK until the first page was full then the sorting went wrong but this time the new messages appeared at the top of page one (where expected) but message 08 was on page two, it changed again by the time there were three pages and the new messages were on page three.

There doesn't seem to be any logic to the sort order from one thread to another, also the sorting was not the same for both accounts!

Still no errors in the log.

Anything else I can check?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 9, 2016 - 11:59 am

Old, pre-update threads have been a worry due to, as I said somewhere above, some anomalies in the data that made a few things unpredictable. Having said that, you are the only person (so far) who has appeared to have - or at least has reported - a problem.

I think the next thing we do is some testing to se if we can replicate your issue with new threads. One thing I would like you to confirm however is that you have no caching plugin at work here...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 9, 2016 - 1:28 pm

No, no caching apart from what is built into SP.

We used to have W3 installed but it interfered with updates when activated. We had to de-activated when updates were undertaken so it was un-installed and the files removed.

Strangely enough, updates to SP itself didn't seem to be a problem but none of the SP plugins would update with it activated.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 9, 2016 - 3:21 pm

I have opened a ticket to get this tested out.

andy-signature.png
YELLOW
SWORDFISH
Avatar
BSABantam
UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 9, 2016 - 5:37 pm

OK, thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 9, 2016 - 7:11 pm

since we have not yet been able to replicate, may take time... but your steps may help...  additionally, we have a release to do this weekend and that will take priority... as Andy said, a ticket is open...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 18, 2016 - 5:50 am

I think I have a handle on this one now. If you are sorting messages with the most recent at the top (i.e., newest first) then it displays properly within the page but the pages themselves are reversed. Does this tally with what you are finding? And f you reverse the sort (profile > options > display options) does it then page them properly.

I have opened a ticket for this to get it fixed up. Sorry it has taken a while.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625