Previous Thread
Next Thread
Print Thread
Hop To
Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
After upgrading from version 6.7.3 to version 7.1 and importing all of the posts successfully we are having a minor problem with users updating their preferences when they click on MY STUFF / MY PREFERENCES.

If a User tries to save their preferences the following error is logged in the MYSQL Error log and they receive a message that only Administrators can see the error message, however if a user who IS AN ADMINISTRATOR saves their preferences, there is no error and nothing is logged in the MYSQL error log.

The MYSQL Error is:

[ERROR][Mon, Mar 26 2007 01:00:46 -0400] [/forums/ubbthreads.php] [Dan] Script: D:\.........\Forums\scripts\changedisplay.inc.php - Line: 141
UPDATE ubbt_USER_PROFILE
SET
USER_START_VIEW = 'cfrm',
USER_FAVORITES_TAB = 'forums',
USER_FAVORITES_SORT = 'reply',
USER_TOPIC_VIEW_TYPE = 'flat',
USER_SHOW_AVATARS = 1,
USER_NOTIFY_ON_PM = 'no',
USER_POSTS_PER_TOPIC = 20,
USER_TOPICS_PER_PAGE = 20,
USER_ACCEPT_PM = 'yes',
USER_TIME_FORMAT = 'm/d/y | h:i A',
USER_TIME_OFFSET = 0,
USER_VISIBLE_ONLINE_STATUS = 'yes',
USER_SHOW_SIGNATURES = 'yes',
USER_STYLE = 0,
USER_UNAPPROVED_POST_NOTIFY = 0 ,
USER_HIDE_LEFT_COLUMN = 0 ,
USER_HIDE_RIGHT_COLUMN = 0 ,
USER_EMAIL_WATCHLISTS = 0 ,
USER_LANGUAGE = 'english' ,
USER_REPORT_POST_NOTIFY = '' ,
USER_RELATIVE_TIME = 0
WHERE USER_ID = 3
- Incorrect integer value: '' for column 'USER_REPORT_POST_NOTIFY' at row 1


My guess is that the USER_REPORT_POST_NOTIFY field in the database is the wrong type (or the script is incorrect) because in the error above it is trying to store a quoted string
USER_REPORT_POST_NOTIFY = '' ,
and the database field appears to be an integer.
"show fields from ubbt_USER_PROFILE" SQL command shows the following for USER_REPORT_POST_NOTIFY:
USER_REPORT_POST_NOTIFY tinyint(1) NO 0

Last edited by ECNet; 03/26/2007 1:41 AM. Reason: additional info
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'm going to address this for 7.1.1. What happens is some MySQL servers are set to run in strict mode, so when an int field is used it requires that an int value be passed to it, and will error on an empty value.

Until then, if you have the access to change strict mode, you can run the following SQL command to disable it:

SET GLOBAL SQL_MODE='';

Joined: Mar 2007
Posts: 285
Likes: 1
E
Enthusiast
Enthusiast
E Offline
Joined: Mar 2007
Posts: 285
Likes: 1
Rick,

Excellent. I turned it off and it worked.
Thanks

Last edited by ECNet; 03/26/2007 10:13 PM.

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 (Ruben), 1,248 guests, and 268 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)