Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2004
Posts: 23
P
stranger
stranger
P Offline
Joined: Sep 2004
Posts: 23
after i upgraded from v6.4 all seemed to work fine. but when a user wants to edit his profil the following sql-error is displayed:
Code
Script: /Users/admin/Sites/www.digitalis.at/ubbthreads/editbasic.php
Line#: 379
SQL Error: Unknown column 'U_ProfileHash' in 'field list'
SQL Error #: 1054
Query: UPDATE w3t_Users SET U_ProfileHash='3bd86243683afee77214cceb56f29502' WHERE U_Number='4'   

when i look at the database, there is realy no field u_profilehash.


another question: is it possible in 6.5 to edit the stored user password? when i send the user a new password from the admin console, he getS' the mail with the new pw but can only login with the old. strange.

Joined: Dec 2003
Posts: 611
Former Developer
Former Developer
Joined: Dec 2003
Posts: 611
Looks like you missed the 6.4.1 altertable - you'll probably want to re-run it.

You can change a user's password by using the following command in the Database Tools -> SQL Command area:

Code
update w3t_Users
set U_Password = md5("password")
where U_Number = 0


Replace "password" with the new password. Keep the quotes.

Replace 0 with the user's number. If you don't know the user's number, you can try:

Code
update w3t_Users
set U_Password = md5("password")
where U_Username = "Display Name"


... replacing "Display Name" with the user's display name. Keep the quotes.

Do note that the email retrieval feature actually sets a temporary password instead of reminding the user of his current password. MD5 is a one-way function that can not be decrypted.


Charles Capps
Former UBB.classic Maintainer
Joined: Sep 2004
Posts: 23
P
stranger
stranger
P Offline
Joined: Sep 2004
Posts: 23
i'm sure i've run the altertable to 6.41.
but i'll try to run it again.

i understand the temporary password thing. the problem is the mail with the temp pw is send but the user can only login with the old pw.

wasn't in v6.4 the possibility to set a new pw for a user in the admin area?

Joined: Sep 2004
Posts: 23
P
stranger
stranger
P Offline
Joined: Sep 2004
Posts: 23
ok, i've run the altertable from 6.4 to 6.41 again and now it works. but how about the altertable to 6.5? it says it can only be run within the upgrade process which i did already and which worked without errors.

very strange.

Joined: Dec 2003
Posts: 611
Former Developer
Former Developer
Joined: Dec 2003
Posts: 611
If the 6.5 upgrade install didn't do the altertables, you'd know it, I assure you. <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />


Charles Capps
Former UBB.classic Maintainer
Joined: Sep 2004
Posts: 23
P
stranger
stranger
P Offline
Joined: Sep 2004
Posts: 23
that's was i thought also <img src="https://www.ubbcentral.com/boards/images/graemlins/smirk.gif" alt="" />

so it remains the question how it's possible the the db row disappears after a succesful update and can be restored with a new altertable run.

Joined: Dec 2003
Posts: 611
Former Developer
Former Developer
Joined: Dec 2003
Posts: 611
It is possible that the first time you ran the 6.4.1 alter, it did not actually complete. Adding the column to the users table is the last thing done. Earlier operations could potentially have timed out.

You're certainly not alone in having this happen.


Charles Capps
Former UBB.classic Maintainer

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
0 members (), 1,144 guests, and 193 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)