Upgrade from 2.0.16 to 2.0.21 - Database errors

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785

Upgrade from 2.0.16 to 2.0.21 - Database errors

Postby pinkpanther465 » Tue Feb 27, 2007 5:14 am

So along time ago I ran a site that had about 6,000 users, I closed the site after it got to expensive to run. Now I once again have money to run the site and I would like to re-launch the forum from the backup I made. The old board version was 2.2.16, I inserted the old users into the database and than ran threw the normal steps to update to 2.2.22 and everything went threw ok. Every thing appears to be working except the fields don't match, the location field displays numbers, and the website field displays the users comments. How can I fix this and clear the comments & locations field.

See http://abouttp.com/forum/memberlist.php
Last edited by pinkpanther465 on Tue Feb 27, 2007 7:50 am, edited 1 time in total.
pinkpanther465
Registered User
 
Posts: 7
Joined: Thu Jan 11, 2007 4:47 pm

Postby espicom » Tue Feb 27, 2007 6:20 am

Some confusion on version numbers... I assume you mean "2.0.16" and "2.0.22" (the latest).

When you restored the database, did you run the install/update_to_latest.php script that came with the 2.0.22 installation package?
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
User avatar
espicom
Registered User
 
Posts: 17906
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL

Postby pinkpanther465 » Tue Feb 27, 2007 7:49 am

Yes I did, and someone over IRC suggested replacing memberlist.php with a fresh copy and I did that as well to no avail.
pinkpanther465
Registered User
 
Posts: 7
Joined: Thu Jan 11, 2007 4:47 pm

Postby geocator » Tue Feb 27, 2007 3:58 pm

Look in your database, browse the users table and see if that appears in the location filed there.
User avatar
geocator
Registered User
 
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land

Postby pinkpanther465 » Wed Feb 28, 2007 5:05 am

All the fields are off, it appears to be because of an additional table installed between .16 and .22.
pinkpanther465
Registered User
 
Posts: 7
Joined: Thu Jan 11, 2007 4:47 pm

Postby geocator » Wed Feb 28, 2007 5:10 am

pinkpanther465 wrote:All the fields are off, it appears to be because of an additional table installed between .16 and .22.


That makes no sense though as your backup should relate the data to specific fields.
User avatar
geocator
Registered User
 
Posts: 16242
Joined: Fri Jan 09, 2004 11:56 pm
Location: On dry land

Postby pinkpanther465 » Wed Feb 28, 2007 8:14 am

I thought so to, this is the first issue Ive had with upgrading since forever.

I am going to create another database and dump it again.
pinkpanther465
Registered User
 
Posts: 7
Joined: Thu Jan 11, 2007 4:47 pm

Postby espicom » Wed Feb 28, 2007 4:19 pm

What you are describing should not happen in phpBB, because all variables read from the tables are accessed by name - even if you add additional fields to the user record, for example, the variable "username" should point to the user's name field.

Mixing up the fields is something that will happen when accessing table fields by position, rather than name, which will be affected by adding fields to a table. The 14th column in the record does not necessarily point to the same column name, for example. I, unfortunately, have to deal with someone that codes that way, on other projects.
Jeff
Fixing 1016/1030/1034 Errors | (obsolete link) | MySQL 4.1/5.x Client Error | phpBBv2 Logo in ACP
Support requests via PM are ignored!
"To be fully alive is to feel that everything is possible." - Eric Hoffer
User avatar
espicom
Registered User
 
Posts: 17906
Joined: Wed Dec 22, 2004 1:14 am
Location: Woodstock, IL


Return to 2.0.x Support Forum

Who is online

Users browsing this forum: No registered users and 10 guests