MyBB Community Forums

Full Version: Issue with PM Count/System.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Getting a faulty display on the Private Messages:
[Image: PMCount.jpg]

Shows I have basically 2 times the number of actual messages.
Looks to be caused by duplicate SQL entries.

For my user:

# pmid, uid, toid, fromid, recipients, folder, subject, icon, message, dateline, deletetime, status, statustime, includesig, smilieoff, receipt, readtime, 
'3', '3', '3', '3', 'a:1:{s:2:\"to\";a:1:{i:0;s:1:\"3\";}}', '1', 'hi', '0', 'yo', '1508745223', '0', '0', '0', '0', '0', '1', '0', 
'4', '3', '3', '3', 'a:1:{s:2:\"to\";a:1:{i:0;s:1:\"3\";}}', '2', 'hi', '0', 'yo', '1508745223', '0', '1', '0', '0', '0', '0', '0', 

This is a test account I created and when you send a message it ends up in the MySQL database twice for some reason.

Any possible ideas?

Ok from initial testing it appears to only occur when you send a message to yourself. Not a normal procedure sure but I did so initially to test to see why the counter looked weird before activation.

I'm up to late to be trying to test lol.

Turns out its counting the sent folders and trash folders.
I should have caught the difference in the folder values.
Thats what I get for seeing this late at night.