Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2007
Posts: 57
journeyman
journeyman
Joined: Feb 2007
Posts: 57
After importing from UBB Classic, some people had invalid avatars (I don't know why). Trying to remove these using the Member Management section of the control panel returned the following error:

Code
UPDATE ubbt_USER_PROFILE SET USER_EXTRA_FIELD_1 = '10 so far' , USER_EXTRA_FIELD_2 = 'myuser', USER_EXTRA_FIELD_3 = 'here and there' , USER_EXTRA_FIELD_4 = 'my own' , USER_EXTRA_FIELD_5 = '' , USER_CUSTOM_TITLE = '' , USER_NAME_COLOR = '' , USER_REAL_EMAIL = 'myemail@myemail.com' , USER_DISPLAY_EMAIL = 'myemail@myemail.com' , USER_LOCATION = 'usually in the kitchen' , USER_OCCUPATION = 'full time mom' , USER_HOBBIES = 'just about everything' , USER_HOMEPAGE = '' , USER_SIGNATURE = 'x' , USER_DEFAULT_SIGNATURE = 'x' , USER_ICQ = '' , USER_YAHOO = '' , USER_MSN = '' , USER_AIM = '' , USER_PUBLIC_BIRTHDAY = 0 , USER_TIME_FORMAT = 'd/m/y | h:i A' , USER_TIME_OFFSET = '0' , USER_TOPIC_VIEW_TYPE = 'flat' , USER_TOPICS_PER_PAGE = '10' , USER_POSTS_PER_TOPIC = '10' , USER_SHOW_SIGNATURES = 'yes' , USER_VISIBLE_ONLINE_STATUS = 'yes' , USER_ACCEPT_PM = 'yes' , USER_NOTIFY_ON_PM = 'On' , USER_FLOOD_CONTROL_OVERRIDE = '-1' , USER_AVATAR = '',USER_AVATAR_WIDTH= '' ,USER_AVATAR_HEIGHT= '' WHERE USER_ID = '3' 

Incorrect integer value: '' for column 'USER_AVATAR_WIDTH' at row 1


RnJpZW5kc2hpcCB3aXRoIHRoZSB3b3JsZCBpcyBob3N0aWxpdH
kgdG93YXJkcyBHb2QuICBKYW1lcyA0OjQ=
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It looks like your mysql server is running in strict mode. I'm still cleaning things up so it doesn't bark about these errors, but you can take your mysql server out of strict mode by running the following SQL command:

SET GLOBAL SQL_MODE='';

Joined: Feb 2007
Posts: 57
journeyman
journeyman
Joined: Feb 2007
Posts: 57
That's probably why it wouldn't import forums without categories assigned to them.

Thanks!


RnJpZW5kc2hpcCB3aXRoIHRoZSB3b3JsZCBpcyBob3N0aWxpdH
kgdG93YXJkcyBHb2QuICBKYW1lcyA0OjQ=
Joined: Feb 2007
Posts: 57
journeyman
journeyman
Joined: Feb 2007
Posts: 57
frown It doesn't work. I executed the SQL command on the server (the MySQL Command Line Client); it accepted it without a problem. But the error persists.


RnJpZW5kc2hpcCB3aXRoIHRoZSB3b3JsZCBpcyBob3N0aWxpdH
kgdG93YXJkcyBHb2QuICBKYW1lcyA0OjQ=
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This is something I'm patching up for 7.2. So instead of inserting a blank which some installs of MySQL won't accept, it will insert a 0. This is a quick fix by editing admin/changeuser.php. Line 171 of that file has these 2 lines:

$imagewidth = "";
$imageheight = "";

Change those, to this:

$imagewidth = "0";
$imageheight = "0";


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 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 20230217)