Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2004
Posts: 21
K
stranger
stranger
K Offline
Joined: Oct 2004
Posts: 21
Upgrading from an ancient UBBT version to version 6.5, as per upgrade instructions, I had to remove all languages but english before starting the clicking the "Upgrade Area" link in UPGRADING.html. Now some old time users report login problems, most probably because they have set a no longer available language as their default?!

Is this possible, and if so, how can I apply english as default language for all current users?

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
This SQL Query

UPDATE w3t_Users
SET U_Language = 'english'


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
Joined: Oct 2004
Posts: 21
K
stranger
stranger
K Offline
Joined: Oct 2004
Posts: 21
Thanks Josh! Do you think the assumed cause for these login problems was right?

Doing a

SELECT COUNT(*)
FROM w3t_Users
WHERE U_Language = 'english'

gives 2332 results,
<> 'english' gives 511 results,
<> '' gives 2843 results,
on a board with 55988 members. Isn't that odd?

Based on this observation, isn't this a better query;

UPDATE w3t_Users
SET U_Language = 'english'
WHERE U_Language <> 'english'

Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Either would work fine. If you only have english, then my query forces everyone to english. Yours forces everyone to english that isn't already at english. Same thing. Yours is more work. But both should put everyone at english.

Yeah, if they have selected a language that doesn't exist, they'll have errors everywhere. They may need to ditch their cookies before they can login - as there's a cookie which stores langages too.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
8.0.1 Patch Changelog Discussion
by isaac - 11/26/2025 1:34 PM
Who's Online Now
0 members (), 296 guests, and 109 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)