Yesterday I underwent my second abortive attempt at installing EE 2.X. The first go-around was on April 3, started at EE 1.6.8, and is documented here. The install program appeared to run successfully, but the site was unreachable. Going to the URL gave an empty page (no HTML), and I couldn’t debug the thing because I couldn’t get into the control panel. I backed out the changes and restored my database. After that I upgraded to 1.7.0 and let things sit for a while.
Yesterday’s fiasco ended in the following partway through the update:
A Database Error Occurred
Error Number: 1050
Table ‘exp_snippets’ already exists
CREATE TABLE `exp_snippets` ( `snippet_id` int(10) unsigned NOT NULL auto_increment, `site_id` int(4) NOT NULL, `snippet_name` varchar(75) NOT NULL, `snippet_contents` text NULL, PRIMARY KEY (`snippet_id`), KEY `site_id` (`site_id`) )
Filename: updates/ud_200.php
Line Number: 1382
This didn’t seem like the kind of thing I’d get a quick answer on on a Sunday afternoon, so I again backed out the changes and got the database restored.
Before trying again, I want to go through what I did and point out everywhere I was the slightest bit unsure about. A couple of possibly useful pieces of info: My system directory is named fssys (the name EngineHosting gave it). My existing template directory is /templates/ under the site root. The pertinent part of my .htaccess file is:
RewriteEngine on
RewriteCond $1 !^(content|fssys|images|templates|themes|favicon\.ico|index\.php|robots\.txt) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
Here’s what I did:
1. Took the site offline as directed in the instructions. I had some trouble with this because (I think) of the info in the .htaccess. I only point this out to alert you to possible trouble spots farther on.
2. Renamed (rather than deleted) 1.X directories. Uploaded the new system directory and renamed it as fssys, to match my existing system directory name. Uploaded new themes directory. (The instructions make no mention of the images directory. Do I keep the old one?). Uploaded new index.php into the site root. Copied old config.php into new /fssys/expressionengine/config/.
Next, the instructions say to open index.php and update system path to reflect renamed system folder. Given the info in my .htaccess, is this the index.php in the root or the one in the /fssys/ directory? And please give me the exact code to put into the appropriate file – I had some trouble with this specification prior to running the update.
3. Saving templates as flat files: during the first go-around I started a thread about the lack of clarity in the instructions about this, but I’m still hazy. The instructions have you do this before uploading files, which makes no sense, since you’d be uploading to the 1.X files that you’d delete (in my case, rename) in the next step. So I did it after uploading files. My existing templates are in /templates/ under the site root, with the EE 1.X control panel setting matching this. I copied everything from /templates/ to /fssys/expressionengine/templates/default_site/. Is this correct?
4. Set permissions as instructed.
5. Started update and and ran into the 1050 error above.
Before tracking that error down I want to make sure I’ve got everything else set up correctly. Specifically, given the name of my system directory, the info in my .htaccess, and the current location of my templates directory:
1. Which index.php am I fooling with and exactly how do I change it?
2. Am I putting my copy of the 1.X templates in the right place?
3. Is there anything else I’m missing?
Thanks,
Nathan