Error: Could not update private message read status for user
Goto page 1, 2  Next

Post new topic   Reply to topic    CPU-World.com forums Forum Index -> News
View previous topic :: View next topic  
Author Message
cvandijk



Joined: 21 Jul 2016
Posts: 3589
Location: Netherlands

PostPosted: Thu Jul 15, 2021 7:45 am    Post subject: Error: Could not update private message read status for user Reply with quote

I try to read a private message, but I can't open it. I receive the following error:
Code:
SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id = XXX

Line : 274
File : privmsg.php


Strange thing is that I already read the message, but the forum think it's new.
Back to top
View user's profile Send private message  
Marcin



Joined: 02 Jan 2005
Posts: 8519
Location: Poland

PostPosted: Thu Jul 15, 2021 8:22 am    Post subject: Reply with quote

I got same error when trying to remove message in outbox :

Code:
SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php

_________________
Visit ABC CPU - Virtual CPU Museum.
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Thu Jul 15, 2021 3:59 pm    Post subject: Reply with quote

I can reset that 'user_unread_privmsg' counter in the database, maybe it will fix the problem. Please let me know if you want me to do it.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
cvandijk



Joined: 21 Jul 2016
Posts: 3589
Location: Netherlands

PostPosted: Thu Jul 15, 2021 4:05 pm    Post subject: Reply with quote

Please reset it for me, I think you need to change it to 1 because the update query tries to subtract 1, and a unsigned bigint can't be negative.
Back to top
View user's profile Send private message  
Marcin



Joined: 02 Jan 2005
Posts: 8519
Location: Poland

PostPosted: Thu Jul 15, 2021 4:05 pm    Post subject: Reply with quote

It will remove all undelivered messages in all accounts ? If that can be done to specific accounts then I would like to do it.
_________________
Visit ABC CPU - Virtual CPU Museum.
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Sat Jul 17, 2021 11:51 pm    Post subject: Reply with quote

Marcin wrote:
It will remove all undelivered messages in all accounts ? If that can be done to specific accounts then I would like to do it.


No, it will not remove undelivered messages. It will only set the number of unread messages for your account to the actual number of unread messages. Right now this number is incorrect, it's too large, but I think I can fix it. As a matter of fact I just changed it for your account. Please see if you can remove the private message now.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Sun Jul 18, 2021 12:00 am    Post subject: Reply with quote

cvandijk, I've made a similar change to your account. Please see if you can open the unread message right now.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
cvandijk



Joined: 21 Jul 2016
Posts: 3589
Location: Netherlands

PostPosted: Sun Jul 18, 2021 2:57 am    Post subject: Reply with quote

gshv wrote:
cvandijk, I've made a similar change to your account. Please see if you can open the unread message right now.

Gennadiy


It works, thanks for fixing.
Back to top
View user's profile Send private message  
Marcin



Joined: 02 Jan 2005
Posts: 8519
Location: Poland

PostPosted: Mon Jul 19, 2021 3:23 am    Post subject: Reply with quote

gshv wrote:
As a matter of fact I just changed it for your account. Please see if you can remove the private message now.

Gennadiy

Sorry but it doesn't work for me :
Code:
Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php

_________________
Visit ABC CPU - Virtual CPU Museum.


Last edited by Marcin on Mon Jul 19, 2021 1:56 pm; edited 1 time in total
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
debs3759



Joined: 18 Jan 2006
Posts: 9477
Location: Northampton, Divided Kingdom

PostPosted: Mon Jul 19, 2021 12:31 pm    Post subject: Reply with quote

Marcin wrote:
gshv wrote:
As a matter of fact I just changed it for your account. Please see if you can remove the private message now.

Gennadiy

Sorry but id doesn't work for me :
Code:
Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php


I have the same error when trying to delete a 2 year old message in my outbox. Only difference is the user ID

_________________
My graphics card database can be found at http://www.gpuzoo.com.

I can resist anything except temptation.

Debs
Back to top
View user's profile Send private message  
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Mon Jul 19, 2021 10:52 pm    Post subject: Reply with quote

debs3759 wrote:
Marcin wrote:

Sorry but id doesn't work for me :
Code:
Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php


I have the same error when trying to delete a 2 year old message in my outbox. Only difference is the user ID


Please see if it works now.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Mon Jul 19, 2021 10:57 pm    Post subject: Reply with quote

Marcin wrote:

Sorry but it doesn't work for me :
Code:
Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php


I haven't noticed that this error is for different forum account. I corrected the number of new messages and the number of unread messages for that account. Please see if you can remove the message now.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
debs3759



Joined: 18 Jan 2006
Posts: 9477
Location: Northampton, Divided Kingdom

PostPosted: Mon Jul 19, 2021 11:49 pm    Post subject: Reply with quote

gshv wrote:
debs3759 wrote:
Marcin wrote:

Sorry but id doesn't work for me :
Code:
Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5744)

Line : 830
File : privmsg.php


I have the same error when trying to delete a 2 year old message in my outbox. Only difference is the user ID


Please see if it works now.

Gennadiy


Code:

Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5938)

Line : 830
File : privmsg.php


Still getting the same error.

_________________
My graphics card database can be found at http://www.gpuzoo.com.

I can resist anything except temptation.

Debs
Back to top
View user's profile Send private message  
Marcin



Joined: 02 Jan 2005
Posts: 8519
Location: Poland

PostPosted: Tue Jul 20, 2021 2:29 am    Post subject: Reply with quote

gshv wrote:
I haven't noticed that this error is for different forum account. I corrected the number of new messages and the number of unread messages for that account. Please see if you can remove the message now.

Gennadiy

Now it works ! Smile Thank you.

_________________
Visit ABC CPU - Virtual CPU Museum.
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
gshv



Joined: 01 Feb 2003
Posts: 7898
Location: Fairfax, VA USA

PostPosted: Tue Jul 20, 2021 10:39 pm    Post subject: Reply with quote

debs3759 wrote:


Code:

Could not update user pm counters

DEBUG MODE

SQL Error : 1690 BIGINT UNSIGNED value is out of range in '(`cw_bbforum`.`phpbb_users`.`user_unread_privmsg` - 1)'

UPDATE phpbb_users SET user_unread_privmsg = user_unread_privmsg - 1 WHERE user_id IN (5938)

Line : 830
File : privmsg.php


Still getting the same error.


Oh, I see, I fixed your account, but the error was for different forum account. I fixed that account too. Please check if you still get the same error.

Gennadiy
Back to top
View user's profile Send private message [ Hidden ] Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CPU-World.com forums Forum Index -> News All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001 phpBB Group