Private Message Problem
Permalinkusers can send a message to another, and that user can see that there is a message within the /profile/messages/ page under inbox. But when the user clicks on inbox it says 'No messages found.'.
There are entries in the UserPrivateMessages and UserPrivateMessageTo tables.
This issue is happening across multiple sites. I have verified that it is not a theme issue, as it does it with the default theme. I have disabled all addons and the issues still persists.
What am I doing wrong? Am at my wits end. If anyone could please help that would be greatly appretiated.
This should fix the problemhttps://github.com/concrete5/concrete5-legacy/pull/1937...
I'm not quite sure how to fix the already existing IDs which have been added to the table in a wrong way. You might have to fix those manually. I could imagine that if you'd just go through the table in the physical order you could increment the IDs where necessary.
https://github.com/concrete5/concrete5-legacy/pull/1937/files#diff-4...
Can you please add a break point there and see what you get? I works for me and with such a simple code I really can't imagine what could go wrong..
Can you please add a breakpoint there and see where the codes goes through?
@Remo In regards to "fix undefined variable", I'm seeing an unsupported operand type error when i try to implement that. Messaging now works fine without that update. May want to take a second look before merge.
Thanks Remo!
Thanks
http://www.concrete5.org/community/forums/customizing_c5/messaging-...
EDIT: I'd have to double check my database, but what seems to be happening in one of the tables is the message id is being saved as 0 AND the id it *should* be saved as throwing the error. Haven't investigated further.