Advertisement:

Author Topic: PM's go to wrong user  (Read 2479 times)

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
PM's go to wrong user
« on: July 12, 2009, 04:51:23 PM »
Hi

A few members on my 1.1.9 forum have reported that their PM's had gone to the wrong users. At first I thought they had simply made a mistake but then a pattern emerged.

In each case they were replying to a PM.

Looking through the data within phpMyAdmin I could see that the PM's had indeed gone to the recipients that the users said they had but there was nothing else untoward. No error messages etc.

Here's an example of what I think is happening, lets say that:

Member "A" replies to Member "B" but the PM goes to Member "C"

I noticed that the user ID of Member "B" was 1224 and Member "C" was 122

The same thing was reported by another member and in this instance the user ID of the intended recipient Member "B" was 975 and the actual recipient was Member "C" whose user ID was 97

Hope I haven't baffled you but in each instance it appears the last digit was removed from the intended recipients ID and consequently it ended up going to someone else.

It certainly isn't a global issue and I'm not sure yet whether it only happens with certain replies (not new PM's).

I can't see this anywhere else on the forum so I wondered if anyone has any ideas ?

Any info/advice appreciated  ;)

Any Backup method is bettter than no Backup method....

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: PM's go to wrong user
« Reply #1 on: July 12, 2009, 04:55:54 PM »
Please post as attachments your files /Themes/your_theme/PersonalMessage.template.php, /Themes/default/PersonalMessage.template.php and /Sources/PersonalMessage.php.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #2 on: July 12, 2009, 05:08:46 PM »
Many thanks for your quick response.

Files attached, but my theme does not have a PersonalMessage.template.php so I assume it's using the default file ?
Any Backup method is bettter than no Backup method....

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: PM's go to wrong user
« Reply #3 on: July 12, 2009, 05:10:36 PM »
What mods do you have installed?
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #4 on: July 12, 2009, 05:15:26 PM »
1.   RSS Feed Icon    1.1
2.   Aeva ~ Auto-Embed Video & Audio
Any Backup method is bettter than no Backup method....

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: PM's go to wrong user
« Reply #5 on: July 12, 2009, 05:29:56 PM »
I see nothing wrong with the files at first sight (but I'm tired, will check again tomorrow), however, since the two mods don't edit anything in these files, please consider to upload fresh copies of both from the installation package for 1.1.9, replacing your files. (the two files attached).
Please let us know if it eventually helps.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #6 on: July 12, 2009, 05:55:12 PM »
Just downloaded another copy of the 1.1.9 full package and compared PersonalMessage.template.php and PersonalMessage.php with my copy using WinMerge, and they were identical with no variations.

Uploaded new copies to my forum anyway but don't think there's a file discrepancy issue.

 ;)
Any Backup method is bettter than no Backup method....

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: PM's go to wrong user
« Reply #7 on: July 12, 2009, 05:58:59 PM »
Do you have a .htaccess file in your forum directory?

How many times did it happen, to how many users, are there any possible commonalities between them?
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline SleePy

  • Site Team
  • SMF Master
  • *
  • Posts: 29,201
  • Gender: Male
  • Thats his happy face.
    • jdarwood007 on GitHub
    • @jdarwood on Twitter
    • SleePy Code - My personal site
Re: PM's go to wrong user
« Reply #8 on: July 12, 2009, 05:59:30 PM »
Can you confirm if you have a pm sent to you, that replying to it does the same thing?

Does the url that you reply to appear to be broken? or is it only after you click it that it doesn't find the right member?
Jeremy D — Site Team / SMF Developer
Support the SMF Support team!
Profiles:
GitHub
G+

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #9 on: July 12, 2009, 06:30:24 PM »
Well I've just tried this with a test account but my userid=1 and the other account was userid=7 so that might not have been a good test.

It worked fine by the way and the url looked OK and not broken.

I'll create some new test accounts which will have four figure userid's and try that then feedback tomorrow.

Incidently, I have a feeling that the members who reported this are using IE8 and I wondered if some sort of auto-complete was happening in the url or something similar ?? Just a hunch ??
Any Backup method is bettter than no Backup method....

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #10 on: July 12, 2009, 07:50:15 PM »
Quote
Do you have a .htaccess file in your forum directory?

Yes

Quote
How many times did it happen, to how many users, are there any possible commonalities between them?

So far three members have reported this and in each case the actual recipient userid number appears to be as per my first post e.g.

sent to user 1224, but user 122 receives it


Quote
Can you confirm if you have a pm sent to you, that replying to it does the same thing?

My replies to PM's seem Ok. They are reaching the correct recipient.

Quote
Does the url that you reply to appear to be broken? or is it only after you click it that it doesn't find the right member?

Please note that PM's work fine for me even when tried with several test accounts.

Consequently, this is not a problem for all users, it only appears to be affecting a few people.
Any Backup method is bettter than no Backup method....

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: PM's go to wrong user
« Reply #11 on: July 13, 2009, 03:39:29 AM »
Well I've just tried this with a test account but my userid=1 and the other account was userid=7 so that might not have been a good test.

It worked fine by the way and the url looked OK and not broken.

I'll create some new test accounts which will have four figure userid's and try that then feedback tomorrow.
Yes, please do. Not sure what to say at this point, but if you can replicate the problem in some way it will help.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Storman™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,028
Re: PM's go to wrong user
« Reply #12 on: July 13, 2009, 02:00:07 PM »
Well I created several test accounts and tried "new" PM's and "replies" to PM's. In all instances they worked fine.

I think there is a genuine issue here but it obviously does not affect everyone.

To be honest until I get more members complaining to backup my observations then I'm at a loss of how to proceed further. It's not a global issue but I'm certain something is amiss at times. Re-creating it though is difficult.

I think I'll just have to keep an idea on the situation for now and feedback should more members get affected.

At least this thread is now on the SMF site so should anyone have the same issue then at least it's recorded.
Any Backup method is bettter than no Backup method....

Offline Aleksi "Lex" Kilpinen

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,430
  • Gender: Male
  • The Artist Formerly Known as LexArma
Re: PM's go to wrong user
« Reply #13 on: July 24, 2009, 08:00:15 AM »
Any updates on this? Have you been able to recreate the issue for yourself?
Finnish Support Local Moderator & Support Specialist
My Mods: Facebook and Twitter Sharer



Offline Ibiza MF

  • Semi-Newbie
  • *
  • Posts: 82
Re: PM's go to wrong user
« Reply #14 on: May 26, 2010, 05:03:53 PM »
I have the same problem on 1.1.11
It appeared out of nowhere, as I don't have any mods, and there was no updates for long time, just moved files and database to new server, but I'm not sure that it's a problem because it did not appear immediately after it.

It's very difficult to find any patter, but  I (ID: 47 ) have received few PM from member 11184 with other member names in "To:" field, recipient IDs where 4528, 9257 and they didn't received that messages.

Also, one member just complained that there is wrong sender user name in email notifications from specific sender. Displayed nick is from user 14237, but user 783 sent that PM. User names are completely different.


kat

  • Guest
Re: PM's go to wrong user
« Reply #15 on: May 26, 2010, 05:28:57 PM »
Just a hunch.


Have you tried repairing the database?

Offline Ibiza MF

  • Semi-Newbie
  • *
  • Posts: 82
Re: PM's go to wrong user
« Reply #16 on: August 16, 2010, 03:35:28 PM »
Yes... and I didn't receive other user's PM again until now, but it was very rare occasion earlier too.
Just received PM From 11185 Intended to 2108 - both very old users so fields in DB should not be mixed up...

kat

  • Guest
Re: PM's go to wrong user
« Reply #17 on: August 16, 2010, 04:51:52 PM »
That's odd, because going to Admin>Forum maintenance>repair errors usually fixes those kinds of problems.

Is that what you did?