Problems upgrading core 1.4.1 to full 1.6
Posted: 29 September 2007 03:20 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

I am trying to update a site that had been running EE Core 1.4.1 to the full version of 1.6. I followed the “Upgrading from ExpressionEngine Core to Full Version” instructions and then the standard update instructions.

When I ran update.php, the first few upgrade steps went fine and then I got an error:

MySQL ERROR:

Error Number: 1050

Description: Table ‘exp_member_search’ already exists

At this point, I tried to restore the db from my backed up file, but i got an error in phpMyAdmin.  I was able to restore from my ISP’s backup file, and then reverted back to my original config.php file, but when I ran update.php again, I am still getting the MySQL errors.

If I try to visit my site, or log in to the CP, i get this error:

MySQL ERROR:

Error Number: 1146

Description: Table ‘databaseName.exp_sites’ doesn’t exist

Query: SELECT es.* FROM exp_sites AS es WHERE es.site_id = ‘1’

My question is, where do I go from here? My db backup file that I made before I started is corrupt, though I can still use my ISP’s backup. Is there anything that can be done, or do have I completely lost the site?

 Signature 

Artificial Memory

Profile
 
 
Posted: 29 September 2007 06:04 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

I discovered that I had an archived version of 1.4 lying around, so I was able to replace the system folder from there, and restore the database, so now I’m back to running a working version of 1.4.1. I’ll try the upgrade again later.

 Signature 

Artificial Memory

Profile
 
 
Posted: 29 September 2007 06:38 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

I just tried to update again. The update from 1.4.1 to 1.4.2 works fine, but when I try to upgrade from there to 1.5 i get the following error:

MySQL ERROR:

Error Number: 1050

Description: Table ‘exp_member_search’ already exists

Query: CREATE TABLE `exp_member_search` ( `search_id` varchar(32) NOT NULL, `search_date` int(10) unsigned NOT NULL, `keywords` varchar(200) NOT NULL, `fields` varchar(200) NOT NULL, `member_id` int(10) unsigned NOT NULL, `ip_address` varchar(16) NOT NULL, `total_results` int(8) unsigned NOT NULL, `query` text NOT NULL, PRIMARY KEY (`search_id`), KEY `member_id` (`member_id`) )

I’m not sure if the archived ee version that I reverted the site to was different from the original version that it was running before I started this process or what. At this point, the site works if I revert to the 1.4.1 system folder and restore the database, but I can’t get it to upgrade past 1.4.2.

 Signature 

Artificial Memory

Profile
 
 
Posted: 30 September 2007 08:14 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21199
Joined  05-20-2002

It’s borking because the exp_member_search table is the first change to the db 1.5 makes.  Looks like at least a partial upgrade to 1.5 must have happened and then on the second attempt to upgrade to 1.5 it runs into pre-existing changes.

Do you have phpmyadmin or something to take a look at the db?  Does exp_member_bulletin_board table exist?  If so- take a look at exp_actions- see if there’s a row with class = ‘Member’, method = ‘member_delete’.  That’s the last alteration in the 1.5 upgrade.

And your config.php is definitely chmod 666?

Also- going to shift this one over to install.

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 30 September 2007 10:30 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

exp_member_bulletin_board does exist, but under exp_actions, there is no row with “class = ‘Member’, method = ‘member_delete’”.

I’ve attached a screen shot of what is under exp_actions, in case that provides some helpful informatin.

Config.php is chmod 666.

Thanks for your help.

Image Attachments
Picture 1.png
Click thumbnail to see full-size image
 Signature 

Artificial Memory

Profile
 
 
Posted: 30 September 2007 10:38 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21199
Joined  05-20-2002

Why are thumbnails not opening for me today?  Blarg.  But I take your word for it.  Basically- the addition to the actions table was the last db alteration.  The addition of the exp_member_bulletin_board table was the very next query after the search addition.  So- we know somewhere in there, the upgrade failed.

What I’d generally do is go in and pinpoint where- by comparing the current db to the db changes in system/updates/ud_150.php.  Depending on what I spotted, I’d either roll back a few additions or I’d manually make a few.  Depends on which would be easier to do.

I’m not sure how comfy you are poking the db- so if you want me to go in and take a look for myself, pm me over phpmyadmin login info and I’ll do it.  Won’t make any changes before clearing things with you.  On the other hand, if you are comfortable taking a look and what I said made sense?  You could likely do the poking yourself.

Either is good by me- just depends on what you’d prefer.  If you want me to go in there- just pm me the info.

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 30 September 2007 10:40 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

I’ll give it a try myself and let you know how it goes. Thanks.

 Signature 

Artificial Memory

Profile
 
 
Posted: 18 October 2007 07:54 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

Well, I thought I removed all of the remnants of the 1.5 upgrade from the database, but I guess not. I tried running the upgrade again, and the first couple steps went okay, but then I got this error:

Notice: Undefined index: prv_msg_send_limit in /var/www/html/pi/piddleloop.com/admin/updates/ud_150.php on line 116

Notice
: Undefined index: prv_msg_storage_limit in /var/www/html/pi/piddleloop.com/admin/updates/ud_150.php on line 117
Error
: The following error was encountered
MySQL ERROR
:

Error Number: 1050

Description
: Table 'exp_member_search' already exists

Query
: CREATE TABLE `exp_member_search` ( `search_id` varchar(32) NOT NULL, `search_date` int(10) unsigned NOT NULL, `keywords` varchar(200) NOT NULL, `fields` varchar(200) NOT NULL, `member_id` int(10) unsigned NOT NULL, `ip_address` varchar(16) NOT NULL, `total_results` int(8) unsigned NOT NULL, `query` text NOT NULL, PRIMARY KEY (`search_id`), KEY `member_id` (`member_id`) )

So now I’ve reverted back to 1.4 again. I tried just exporting the contents of the blog, but since this installation is from before the embed tag allowed variables, I am unable to export comments. I’m beginning to think I should just give up on salvaging this site and start over with no content and a fresh install.

 Signature 

Artificial Memory

Profile
 
 
Posted: 18 October 2007 08:12 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21199
Joined  05-20-2002

That first warning is coming because the prv_mssg config variables aren’t set in config.php- which it’s just a warning so if you skipped it it wouldn’t be a crisis.  Or- just add in the two config variables:

// Use existing settings
        $Q[] = "UPDATE exp_member_groups SET prv_msg_send_limit = '".$DB->escape_str($conf['prv_msg_send_limit'])."'";
        
$Q[] = "UPDATE exp_member_groups SET prv_msg_storage_limit = '".$DB->escape_str($conf['prv_msg_storage_limit'])."'";

Spot what’s up?  Second error- exp_member_search is already in there- it needs to be dropped.

I think this was likely borked before you got in there.  But it’s bound to be salvageable from an upgrade perspective.  Messy, but salvageable.  If you want me to go in, say the word and I’ll tell you what I need.

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 18 October 2007 12:29 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

That makes sense. I think I’m in a bit over my head here, so if you wouldn’t mind taking a look…

Thanks.

 Signature 

Artificial Memory

Profile
 
 
Posted: 28 October 2007 08:50 AM   [ Ignore ]   [ # 10 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6492
Joined  03-23-2006

Before we go in, could you try logging into phpmyadmin (or some other database tool) and manually dropping the exp_member_search table for us?  As always, be sure you have a full backup first.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 28 October 2007 11:53 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  261
Joined  02-03-2005

Sorry, it’s been fixed. Robin took care of it last week, and everything is fine now.

 Signature 

Artificial Memory

Profile
 
 
Posted: 28 October 2007 12:51 PM   [ Ignore ]   [ # 12 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6492
Joined  03-23-2006

OK, glad we were able to get you up and running again.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 29 November 2007 09:13 AM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  19
Joined  11-14-2007

Just a comment to ExpressionEngine.  Why don’t you include a separate update.php file for those who are jumping versions from 1.5.2 to 1.6.1, for example? 

I have a 1.5.2 EE that I need to upgrade to 1.6.1, but it is borkin because of the missing exp_sites table.  I’m now poking around the db to see if I can manually add it.

Another option is to upgrade from 1.5.2 to whatever the next version was, then upgrade from there to 1.6.1.  Cumbersome, but it probably will address the errors along the way.

Just my 2 cents.

Profile
 
 
Posted: 29 November 2007 09:24 AM   [ Ignore ]   [ # 14 ]  
Administrator
Avatar
RankRankRankRankRankRank
Total Posts:  6492
Joined  03-23-2006

Thanks ASLFilms.  In fact, the updates between each build are different.  The updates folder has separate files for each “jump”, and the update process takes you through them one at a time.  So you should be able to go from 1.5.2 to 1.6.1, as the updates will move you through all the relevant point releases.

 Signature 

DerekAllard.com - CodeIgniter, ExpressionEngine, and the World of Web Design

Profile
MSG
 
 
Posted: 10 June 2008 02:49 PM   [ Ignore ]   [ # 15 ]  
Grad Student
Rank
Total Posts:  52
Joined  07-05-2004

I too am having trouble moving beyond 1.4.3, getting mySQL errors..  Is there somewhere which lists the table structure for each major version?

Profile
 
 
Posted: 10 June 2008 03:17 PM   [ Ignore ]   [ # 16 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12918
Joined  05-15-2004

Not that I know; you can take a look at the update scripts and the SQL commands they use, though.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60726 Total Logged-in Users: 19
Total Topics: 73184 Total Anonymous Users: 11
Total Replies: 394699 Total Guests: 529
Total Posts: 467883    
Members ( View Memberlist )