php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#262020 - 11/04/03 10:36 AM 6.4b1 Upgrade Error
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
I used the change file method to upgrade because I have so many hacks and I ran the altertable for 6.3 to 6.4. At this point my forums will not display, here is the error I get on the top of the main site: <br /> <br />
Code:
 SQL ERROR: Tue, Nov 04 2003 08:32:37 -0800 Database error only visible to forum administrators <br /> <br />Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/vhfansco/public_html/boards/mysql.inc.php on line 133 <br /> <br />Warning: Cannot modify header information - headers already sent by (output started at /home/vhfansco/public_html/boards/mysql.inc.php:219) in <br />/home/vhfansco/public_html/boards/ubbt.inc.php on line 264 <br /> 

Top
#262021 - 11/04/03 10:46 AM Re: 6.4b1 Upgrade Error [Re: BlarC]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I would look in mysql error logs for a detail of the problem.<br /><br />I would think offhand from my experience that it is related to the user table and the addition of the birthday field. You need to use phpmyadmin and check out the table. You can open up the altertable file and may have to manually add the user table query <br /><br /> ALTER TABLE w3t_Users<br /> ADD U_Birthday VARCHAR(10) NOT NULL DEFAULT '0',<br /> ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',<br /> ADD U_TimeFormat VARCHAR(6),<br /> ADD U_Ignored TEXT,<br /> ADD U_OC_Userid VARCHAR(64),<br /> ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)<br /><br />Now if the above query does not run try running<br /><br /> ALTER TABLE w3t_Users<br /> ADD U_ShowBday INT(1) NOT NULL DEFAULT '0',<br /> ADD U_TimeFormat VARCHAR(6),<br /> ADD U_Ignored TEXT,<br /> ADD U_OC_Userid VARCHAR(64),<br /> ADD INDEX birthday_ndx (U_Birthday,U_ShowBday)<br /><br />At least thats what I remember when I upgraded a clean a few clean installs but all that had the birthday hack.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262022 - 11/04/03 10:58 AM Re: 6.4b1 Upgrade Error [Re: sf49rminer]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Neither of those worked. I suspected out of all the hacks I have installed that this wouldn't be a clean upgrade lol. Any other ideas?

Top
#262023 - 11/04/03 11:00 AM Re: 6.4b1 Upgrade Error [Re: BlarC]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
update, even though I got errors with the command something took because the site is displaying properly now.

Top
#262024 - 11/04/03 11:03 AM Re: 6.4b1 Upgrade Error [Re: BlarC]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Glad it worked for you.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262025 - 11/10/03 01:24 PM Re: 6.4b1 Upgrade Error [Re: sf49rminer]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Omegatron, I am not sure if this is causing my issue or not but when birthday's are entered they are not kept (I am also having this issue with avars, it only seems to be on my site) you can enter it fine but then when you go back it's gone.

Top
#262026 - 11/10/03 02:06 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
You would have to check your tables and check and see if they were formed.<br /><br />Josh posted a birthday script to modify and update peoples birthdays to the new 6.4 on here
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262027 - 11/10/03 02:19 PM Re: 6.4b1 Upgrade Error [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Yes, if you were running the birthday mod - then the altertable will fail until you run my conversion script - because the U_Birthday field already exists.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#262028 - 11/10/03 02:24 PM Re: 6.4b1 Upgrade Error [Re: Daine]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Not sure which script that is, is it the bday cron script? http://www.ubbdev.com/forum/showflat...prev=#Post86334

Top
#262029 - 11/10/03 03:02 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
No - did you run the Birthday mod before?<br /><br />If so you need this:<br />http://www.ubbdev.com/forum/showflat...art/3#Post96491
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#262030 - 11/10/03 03:17 PM Re: 6.4b1 Upgrade Error [Re: Daine]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Okay I ran this, also keep in mind that I did what Omegatron explained above. Nothing is working now, I can't explain all of it just jump in over there and try to look at posts or profiles. If need be I will shut down and pull out a backup, please let me know.

Top
#262031 - 11/10/03 03:55 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
Here is what the error log reports. I went ahead and closed the boards until it's worked out. <br /> <br />Unable to do_query: SELECT t1.B_Number,t2.U_Username,t1.B_Posted,t1.B_IP,t1.B_Subject,t1.B_Body,t1.B_File,t1.B_Status,t1.B_Approved,t2.U_Picture,t1.B_Reged,t2.U_Title,t2.U_Color,t1.B_Icon,t1.B_Poll,t1.B_Parent,t2.U_Status,t2.U_Signature,t1.B_LastEdit,t1.B_LastEditBy,t2.U_Location,t2.U_TotalPosts,t2.U_Registered,t2.U_Rating,t2.U_Rates,t2.U_RealRating,t2.U_PicWidth,t2.U_PicHeight,t2.U_Number,t1.B_FileCounter,t1.B_AnonName,t1.B_ParentUser,t2.U_Birthday,t2.U_ShowBday,t1.B_AddSig,t2.U_Visible FROM w3t_Posts AS t1, w3t_Users AS t2 WHERE t1.B_Main = 16373 AND t1.B_PosterId = t2.U_Number AND B_Approved = 'yes' ORDER BY B_Number LIMIT 20 - Unknown column 't2.U_Birthday' in 'field list' <br /> <br />(sorry about the scroll)


Edited by ericgtr (11/10/03 03:56 PM)

Top
#262032 - 11/10/03 04:54 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
I am going to pull out a backup. This disclaimer in your post Josh (Backup your database first! I developed this for my own needs so use at your own risk. ) is not kidding <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" />

Top
#262033 - 11/10/03 05:12 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
I found that his script added the birthday fields for the users but then made everything out of whack as it renames U_Birthday to U_BirthdayOLD and never made a NEW U_Birthday
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262034 - 11/10/03 05:19 PM Re: 6.4b1 Upgrade Error [Re: sf49rminer]
ericgtr Offline
Junior Member

Registered: 05/12/03
Posts: 1109
It has this in it, doesn't this add it?<br />
Code:
 	ALTER TABLE {$config['tbprefix']}Users<br />	ADD   U_Birthday VARCHAR(10) NOT NULL DEFAULT '0',<br />	ADD   U_ShowBday INT(1) NOT NULL DEFAULT '0',<br />	ADD   U_TimeFormat VARCHAR(6),<br />	ADD   U_Ignored TEXT,<br />	ADD   U_OC_Userid VARCHAR(64),<br />	ADD   INDEX birthday_ndx (U_Birthday,U_ShowBday) 

Top
#262035 - 11/10/03 06:16 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Yeah well when I ran mine it said database only available to admins LOL I was logged in as admin
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262036 - 11/10/03 06:17 PM Re: 6.4b1 Upgrade Error [Re: BlarC]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
It should add it. <br /><br />Were there any errors that it couldn't be run.<br /><br />The problem is that we had a U_BirthDay field from the old mod - the the 6.4 altertable fails on the whole query when it tries to add a bunch of new stuff.<br /><br />I can help you get it fixed - but right now I get "forbidden" errors.<br /><br />If you've got PhpMyAdmin - PM me with access and I should be able to get you all fixed up.<br /><br />I think that some fields didn't get properly added when you did the 6.4 upgrade. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#262037 - 11/10/03 06:32 PM Re: 6.4b1 Upgrade Error [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Well just as an FYI Josh when I ran it on my test forum it converted the users and changed the field name to old but never created a new one.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#262038 - 11/10/03 06:35 PM Re: 6.4b1 Upgrade Error [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I wonder if the initial 6.4 altertable query did not fail for you - then mine just redoes that query - but some of the fields already existed, so the query failed.<br /><br />In other words - it puzzled me that the altertable failed, although it doesn't on all servers. My Field was U_BirthDay - the new field is U_Birthday but on a Linux server, it says the field already exists. Not sure if different setups might not have had a problem with it.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#262039 - 11/10/03 06:37 PM Re: 6.4b1 Upgrade Error [Re: Daine]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Try this one - rename it .php and run it.<br /><br />I split the creation of the new fields into separate queries, so if one of the fields already exists, it won't blow the whole thing. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />


Attachments
99328-convertbday.txt (6 downloads)

_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 1 of 2 1 2 >


Moderator:  Gizmo 
Who's Online
1 registered (Gizmo), 30 Guests and 10 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks