Previous Thread
Next Thread
Print Thread
Hop To
#224786 03/25/2009 1:58 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I am probably missing something but I am getting a failure here. I am upgrading my test site from 7.4.2
Code
Inserting GlobalModerators Group into the ubbt_GROUPS table.	FAILED
 	SQL Query:	insert into ubbt_GROUPS (GROUP_NAME,GROUP_ID,GROUP_IS_DISABLED,GROUP_CUSTOM_TITLE) values ('GlobalModerators','2','0','0')
 	Reason for failure:	Unknown column 'GROUP_CUSTOM_TITLE' in 'field list'
 	Upgrade Step:	/install/upgrade.php?step=altertable

gliderdad #224789 03/25/2009 2:34 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
This looks like a bug.
I have 7.5.2 and there is not a field called "GROUP_CUSTOM_TITLE"
but there is a field called "Group_name". Looking at the alter files this is not for your version either. It was for 7.1 and 7.3a2
I would bet if you edit the altertable files for 7.1 and 7.3a2 in the install folder and replace Group_custom_title with GROUP_NAME. It would fly but "Remember the case" all caps

Last edited by Ruben; 03/25/2009 2:38 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224805 03/25/2009 3:54 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Went through the 7.5.x altertables and couldn't find the addition of a "GROUP_CUSTOM_TITLE" column...


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!
Gizmo #224807 03/25/2009 3:59 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
altertable-7.1.php line 132
altertable-7.3a2.php line 191
Thanks to windows grep
This is from the 7.5.2 zip


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224812 03/25/2009 4:19 PM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
That's weird; I've been upgrading via the upgrade.php file and don't have the column... Lol... Makes me wonder what else I'm missing tongue


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!
Gizmo #224814 03/25/2009 4:22 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I have never had an issue like this on an upgrade so I was surprised, lol. I meant to post this in bugs blush

Gizmo #224815 03/25/2009 4:24 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well like I said in the prior post there is a custom_title field in the user table but not groups.
The Group_Name field is where globalmoderator is placed. So I think it is a bug.
I never had the issue so maybe I skipped 7.1 but I don't think so.
The query only appears in the two alter files I posted.
So I think gliderdad is not trying to upgrade 7.4.2 but a older version.

But in any case don't you think this should be in the Bug Forum?

Last edited by Ruben; 03/25/2009 4:26 PM. Reason: Added comment

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224816 03/25/2009 4:26 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
My bad, 7.4.1

gliderdad #224818 03/25/2009 4:28 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
That sounds better then one of the files should apply which is still incorrect.

Last edited by Ruben; 03/25/2009 4:41 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224836 03/26/2009 3:17 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
GROUP_CUSTOM_TITLE was added back in 7.1 and we used it for a few versions. We dropped it in 7.3.2 at the tail end of that altertable script. If you're still stuck on this you can manually add that field back in and then the altertable will run properly and drop it at the end. You can do that with this query:

SQL Query
alter table ubbt_GROUPS
add GROUP_CUSTOM_TITLE tinyint(1)

Rick #224845 03/26/2009 10:12 AM
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Ahh, so we're NOT supposed to have it; so those of us who don't are good :X... Other than Glider breaking things hehe


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!
Rick #224854 03/26/2009 2:12 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Thanks Rick that worked, but it faild again on step 7 of alter table.

Code
Adding default permissions to the ubbt_FORUM_PERMISSIONS table for existing groups.	FAILED
 	SQL Query:	update ubbt_FORUM_PERMISSIONS set SEE_FORUM = 1, READ_TOPICS = 1, READ_REPLIES = 1, CAN_DOWNLOAD = 1, EDIT_POSTS = 2160, DELETE_POSTS = 0 where FORUM_PERMISSION_CAN_READ = 1
 	Reason for failure:	Unknown column 'FORUM_PERMISSION_CAN_READ' in 'where clause'
 	Upgrade Step:	/install/upgrade.php?step=altertable

gliderdad #224859 03/26/2009 2:31 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Looks like the same issue but you are going to get at least two more in step 8
From altertable-7.3a2.php
Quote
drop FORUM_PERMISSION_CAN_READ,
drop FORUM_PERMISSION_CAN_CREATE_REPLY,
drop FORUM_PERMISSION_CAN_CREATE_TOPIC
Somewhere around step 18 there are several more that are dropped so not sure what your version does or does not have as far a fields are concerned.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224862 03/26/2009 2:53 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
It actually looks like maybe it's trying to run through that altertable a second time maybe, since it's obviously already dropped those fields.

Are you working on a test forum and database or is this your live board?

Rick #224874 03/26/2009 3:42 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
This is on a test forum and separate db. I is pretty much identical to my live site, wanted to test the install and make mods before going to live.

gliderdad #224889 03/26/2009 5:48 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
I'd do another fresh test. It just seems that somewhere, something with the altertables got out of whack. I just did an upgrade from 7.3 today to 7.5.2 for a customer and everything went ok.

Rick #224901 03/26/2009 6:35 PM
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well Rick the weird thing to me is he is upgrading from 7.4.1.
Not 7.3x
Could the problem also be cheating a little on a prior upgrade. Meaning did not run the upgrade script from a prior upgrade.
The displayed version at the footer shows 7.4.1 but why is the altertable running a 7.3x version?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Ruben #224938 03/27/2009 9:04 AM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I have restarted the upgrade a few times with the same results. Going to go back to 7.4.1 make sure all permissions are right and try again I guess.

gliderdad #224941 03/27/2009 11:00 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, so what you can do now is take a look at your ubbt_VERSION table and let me know what you have in there.

SQL Query
select * from ubbt_VERSION

Rick #224942 03/27/2009 11:16 AM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
SCRIPT_VERSION-- 7.3a2

DB_VERSION --7.3a2

LAST_ALTER_STEP -- 7

IS_RUNNING --1


Last edited by gliderdad; 03/27/2009 11:18 AM.
gliderdad #224992 03/28/2009 11:00 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, so it looks like somehow your 7.3 upgrade got cut off and never updated the table. You can run this query and then you should be all set

SQL Query
update ubbt_VERSION 
set SCRIPT_VERSION='7.4.1',
DB_VERSION='7.4.1',
LAST_ALTER_STEP='0',
IS_RUNNING='0'

Rick #225094 03/31/2009 2:27 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Great, thanks Rick it worked. Sorry I didn't get back to this sooner, I was away.


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
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (1 invisible), 875 guests, and 141 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)