Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2008
Posts: 13
stranger
stranger
Joined: Jan 2008
Posts: 13
I get the following error when adding a new Forum to existing Gallery, but can create new Gallery without errors. Anyone familiar with this, or know how to fix?

The table for 'FORUM_SORT_DIR' is varchar(3).

Code
Script: E:\Inetpub\wwwroot\devbb\forums\admin\docreateforum.php
Line#: 140
SQL Error: Data too long for column 'FORUM_SORT_DIR' at row 1
SQL Error #: 1406
Query: INSERT INTO ubbt_FORUMS (FORUM_TITLE,FORUM_DESCRIPTION,FORUM_DEFAULT_TOPIC_AGE,FORUM_CUSTOM_HEADER,FORUM_STYLE,FORUM_IMAGE,FORUM_IS_ACTIVE,CATEGORY_ID,FORUM_POSTS,FORUM_TOPICS,FORUM_CREATED_ON,FORUM_LAST_POST_TIME,FORUM_LAST_POSTER_ID,FORUM_LAST_POST_ID,FORUM_PARENT,FORUM_ISLAND_INSERT,FORUM_IS_RSS,FORUM_RSS_TITLE,FORUM_SHOW_INTRO,FORUM_INTRO_TITLE,FORUM_IS_TEASER,FORUM_IS_GALLERY,FORUM_POSTS_COUNT,FORUM_SORT_FIELD,FORUM_SORT_DIR) VALUES ( 1 , '' , 93 , 0 , 0 , '' , 1 , 10 , 0 , 0 , 1248188539 , 0 , 0 , 0 , 0 , 0 , 0 , 'RSS Feed for 1' , 0 , '' , 0 , 0 , 1 , 'last' , 'desc') 

ยป Return 

Last edited by Gizmo; 07/21/2009 12:28 PM. Reason: [code] tags
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
Change forum_sort_dir to a varchar4; it's trying to put "desc" (4 chars) in a 3 char field... Your "new" gallery forums must be ascending (asc)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,566
Likes: 78
Joined: Dec 2003
Posts: 6,566
Likes: 78
Maybe I missed something here.
Why would they need to change any table properties Giz?
From what I see they are using ubb7.5


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2008
Posts: 13
stranger
stranger
Joined: Jan 2008
Posts: 13
I made the change and received the following error:

ALTER TABLE `ubb`.`ubbt_forums` MODIFY COLUMN `FORUM_SORT_DIR` VARCHAR(4) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL;

I'm on 7.5 - ran the upgrade some time back but almost looks like the upgrade changed the DB charset to something other than English?

Thoughts?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
This was a bug in 7.5 where the column was only 3 characters in length when it should have been 4.

As for the error you're getting now, you should just be able to run this:

ALTER TABLE `ubb`.`ubbt_forums` MODIFY COLUMN `FORUM_SORT_DIR` VARCHAR(4)

Joined: Jan 2008
Posts: 13
stranger
stranger
Joined: Jan 2008
Posts: 13
OK - I changed the Default order from Descending to Ascending and was able to create the new forum needed. thanks.


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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
2 members (Geoff, Ruben), 1,031 guests, and 180 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)