Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: Novice on September 12, 2015, 05:16:09 PM

Title: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 05:16:09 PM
Our site is running ver1.1.21 and is doing fine. We want to upgrade to ver2.0.10 without killing the site were are on. Everyone tells me to install a 2.0.x version, drop all the server tables, upload the 1.1.21 server backup tables, upload all of the files and folders for the upgrade utility and then run the upgrade utility. This is what I see when all of this has been done.

This is line #3476
<h1 class="forumtitle">', $txt['upgrade_upgrade_utility'], '</h1>

Notice: Undefined index: upgrade_upgrade_utility in /home/content/11/13951611/html/testsite/upgrade.php on line 3476

Simple Machines Forum

Notice: Undefined index: upgrade_progress in /home/content/11/13951611/html/testsite/upgrade.php on line 3488


Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3493
1: Login

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3493
2: Upgrade Options

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3493
3: Backup

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3493
4: Database Changes

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3493
5: Delete Upgrade

0%

Notice: Undefined index: upgrade_overall_progress in /home/content/11/13951611/html/testsite/upgrade.php on line 3502


Notice: Undefined index: upgrade_time_elapsed in /home/content/11/13951611/html/testsite/upgrade.php on line 3527
: 0
Notice: Undefined index: upgrade_time_mins in /home/content/11/13951611/html/testsite/upgrade.php on line 3528
, 0
Notice: Undefined index: upgrade_time_secs in /home/content/11/13951611/html/testsite/upgrade.php on line 3528


I got this message that older language files were detected and I updated all of those that I could find. I've clicked try English and it does nothing but refresh the page. If I click skip, this error message comes up

!!Notice: Undefined index: upgrade_critical_error in /home/content/11/13951611/html/testsite/upgrade.php on line 3689

This is line #3689
<strong style="text-decoration: underline;">', $txt['upgrade_critical_error'], '</strong><br />

Notice: Undefined index: upgrade_error_script_js in /home/content/11/13951611/html/testsite/upgrade.php on line 3691

The upgrader found some old or outdated language files, for the forum default language, english.

Please make certain you uploaded the new versions of all the files included in the package, even the theme and language files for the default theme.
   [SKIP] [Try English]

Click here to try again.

SMF ©2013, Simple Machines
-------------------------
I really could use some help with this. I feel like I've done everything I was supposed to do, yet I'm getting no closer to completion.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 05:41:54 PM
That undefined index is caused by missing languages files (specifically, install.english.php in this case). So, you can't have uploaded all the 2.0.x files. Somehow you've missed some.

Just to be clear: you are uploading everything in the large upgrade pack from this page? http://download.simplemachines.org/

IOW, this file: http://download.simplemachines.org/index.php?thanks;filename=smf_2-0-10_upgrade.zip

So you'd grab that zip, upload it to your forum root directory, and extract there. Or, if your host doesn't allow extracting in place, you'd be extracting all the files on desktop and then uploading them all by ftp.

If everything has been uploaded, you should be able to see the files in your forum root directory. Are they there?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 05:59:41 PM
I see the file your referring to. But, I went ahead and uploaded all of them again and overwritten the existing files.

What is up with this error? Is this related to the language files?
This is line #3476

<h1 class="forumtitle">', $txt['upgrade_upgrade_utility'], '</h1>

Notice: Undefined index: upgrade_upgrade_utility in /home/content/11/13951611/html/testsite/upgrade.php on line 3476
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 06:07:07 PM
Yup. It means the upgrade.php script can't find the install.english.php language file (the $txt string it's looking for is in that language file).

So that language file should be sitting at Themes/default/languages/install.english.php. Is it there?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Illori on September 12, 2015, 06:23:34 PM
Quote from: margarett on September 10, 2015, 11:06:00 AM
We've seen some strange issues with the upgrade tool for 2.0.x and they all relate to odd themes configurations in the 1.1.x version. Usually the default theme folder doesn't exist or the theme with ID = 1 is missing (which is something not supposed to happen...).
Check this post and let us know if it helps: http://www.simplemachines.org/community/index.php?topic=538721.msg3828374#msg3828374

maybe that will help you?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 06:29:23 PM
This bloke is not a coder. That post is likely to make him go "WTF?" :D

Has anyone suggested repair_settings.php? It may be something simple.

ETA: We've already established that the default folder exists.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 06:33:11 PM
This is the first I've heard of repair_settings.php - Explain please...
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 06:36:08 PM
It's a script that will reset any broken paths to files and folders. Commonly used when transferring a working forum to a different directory or domain.

I'm just thinking this is sounding like a problem with paths, since it's obvious the languages and css files aren't being picked up even though they're on the server.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 06:38:59 PM
Found it. It's at the bottom of this page. http://download.simplemachines.org/?tools

Upload that file to your forum root, then go to ..../repair_settings.php in your browser. See what happens.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 06:39:53 PM
Where or how do I use this? Doesn't sound like it would hurt anything.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 06:45:22 PM
Yeah I figure it can't hurt. You just upload the thing to your forum root directory, same as you uploaded the upgrade pack files. Then you just go to example.com/testsite/repair_settings.php and work your way through the options.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 07:01:58 PM
What file has the attachments directory default path so I can edit it?

This is the path:/home/content/11/13951611/html/membersforum2/attachments
It needs to read:/home/content/11/13951611/html/testsite/attachments

Also got this error. Are they related?
Fatal error: Call to undefined function allowedTo() in /home/content/11/13951611/html/testsite/Sources/Subs-Db-mysql.php on line 595
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 07:16:37 PM
Don't worry about attachments for now. You can rest that path in admin later. The fatal error is probably because the path to Sources is (or was) broken.

So what about the rest of the repair settings process? Is it working?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 07:18:41 PM
It just stopped on this screen. Their is no button to continue or to fix. It just all looks informational. Did the error stop this from finishing?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 07:28:58 PM
Meh. Yeah probably.

Ok, can you take a look inside Settings.php (it'll be in the forum root directory) and check paths are correct here:

########## Forum Info ##########
$mbname = 'NotChalkCat'; # The name of your forum.
$language = 'english'; # The default language file set for the forum.
$boardurl = 'http://127.0.0.1/ChalkCat_mirror'; # URL to your forum's folder. (without the trailing /!)


And here:


########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = 'K:\\VertrigoServ\\www\\ChalkCat_mirror'; # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = 'K:\\VertrigoServ\\www\\ChalkCat_mirror/Sources'; # Path to the Sources directory.
$cachedir = 'K:\\VertrigoServ\\www\\ChalkCat_mirror/cache'; # Path to the cache directory.


These are just examples from my local server, so substitute your own domain and directory to suit. So it you were at example.com/testsite then Sources should be at http//:www.example.com/testsite/Sources
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Illori on September 12, 2015, 07:37:10 PM
Quote from: Antechinus on September 12, 2015, 06:29:23 PM
This bloke is not a coder. That post is likely to make him go "WTF?" :D


if the default theme is not found in the database, running repair_settings.php will not help it to appear.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 07:38:38 PM
They are OK.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 07:39:38 PM
Quote from: Illori on September 12, 2015, 07:37:10 PM
Quote from: Antechinus on September 12, 2015, 06:29:23 PM
This bloke is not a coder. That post is likely to make him go "WTF?" :D


if the default theme is not found in the database, running repair_settings.php will not help it to appear.

But if the db backup came from a working site, why would that value suddenly be dropped from the db on import?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 07:42:24 PM
The backup came from a working site and was uploaded into a newer version of a working site.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 07:55:01 PM
Ok so we try margarett's idea from the thread Illori linked to.

I've already made the suggested edit to a copy of upgrade.php. If you upload this file (ie: overwrite the existing copy) and try the upgrade script again, it may do the trick.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 08:04:28 PM
Now the error is:

Notice: Undefined index: upgrade_upgrade_utility in /home/content/11/13951611/html/testsite/upgrade.php on line 3486

Simple Machines Forum

Notice: Undefined index: upgrade_progress in /home/content/11/13951611/html/testsite/upgrade.php on line 3498


Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3503
1: Login

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3503
2: Upgrade Options

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3503
3: Backup

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3503
4: Database Changes

Notice: Undefined index: upgrade_step in /home/content/11/13951611/html/testsite/upgrade.php on line 3503
5: Delete Upgrade

0%

Notice: Undefined index: upgrade_overall_progress in /home/content/11/13951611/html/testsite/upgrade.php on line 3512

Notice: Undefined index: upgrade_time_elapsed in /home/content/11/13951611/html/testsite/upgrade.php on line 3537
: 0
Notice: Undefined index: upgrade_time_mins in /home/content/11/13951611/html/testsite/upgrade.php on line 3538
, 0
Notice: Undefined index: upgrade_time_secs in /home/content/11/13951611/html/testsite/upgrade.php on line 3538

Updating Your SMF Install!

The upgrader found some old or outdated language files, for the forum default language, english.

Please make certain you uploaded the new versions of all the files included in the package, even the theme and language files for the default theme.
   [SKIP] [Try English]

Click here to try again.

SMF ©2013, Simple Machines
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 08:06:55 PM
I have another subdirectory with ver2.0.10 running fine with no errors. Do you think that if I drop those sql tables and upload the backup of the 1.1.21 into it and run the upgrade, that it will recognize everything new and just convert the tables?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 08:12:05 PM
Crap. So it's still not finding the languages file. That fix no good then.

You could try stripping and importing on the other 2.0.10 test site if you like. At the moment I have no idea if it will work, but if you're up for giving it a go then sure.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 08:21:50 PM
I'm going to backup the existing database - Dump the tables - Upload the backup - scream bloody murder

I shouldn't need all the folders uploaded in this one. They should all be up to date, right? Just upload all of the upgrade files?
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 08:25:35 PM
In theory, yes.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 08:32:52 PM
We will test the theory this time. If it errors about old files this time SMF has the issues, not us. Everything about this version said it was up to date. So, the database conversion is the only thing this update has to do.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 12, 2015, 08:33:34 PM
Ok, go for it. :)
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 08:55:19 PM
Same thing.... I'm at a loss here.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Illori on September 12, 2015, 09:00:21 PM
since you moved the database, you need to run repair_settings.php first to correct the paths.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 09:04:22 PM
I thought the settings were located in the program hosting settings file? This never moved, only the tables in it's database.

I have dumped the backup files and restored the original 2.0.10 tables and it fired right up as if nothing happened.

I need to call it a day. Or should I say day #8
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 12, 2015, 10:36:28 PM
Couldn't walk away... But good news! The database is updated!
SMF ver2.0.10 is alive and well with data dating back to 2007. I had to go into MYSQL admin and manually edit the source paths in the settings, smiley & theme tables. Once this was done, it was all smooth sailing. Until these were corrected, repair_settings.php was only an informational tool. It repaired nothing. It should be written in the update.php script to first edit these files, especially if someone is trying to restore one to a new server.

Hats off and thanks to all! Especially Antechnius and Illori. Two helpers are always better than one!

Thanks again!!!!!

Novice
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Kindred on September 13, 2015, 01:06:18 AM
just to be clear... your initial process was just plain wrong - which led to the confusion - and I would like to make sure that anyone who comes across this thread in the future understands it.

You should NOT install 2.0.10, drop tables and then try to import the 1.1.x tables.

instead, you take a copy of the 1.1.x files and database -- and place those files and database in a different location -- then run repair_settings.php (still on 1.1.x) and confirm that 1.1.x is running correctly.

THEN, and ONLY THEN, you upload the 2.0.x files, overwriting all of the 1.1.x stuff and run upgrade.php

Title: Re: Upgrade Error - Been at it for a week now...
Post by: Novice on September 13, 2015, 02:58:12 PM
Correct...If you have the other files. I know they can be downloaded from this site from archive but, I have yet to get any of these installs to get passed the very first install page. Once you put in your info, the install errors out from install.php beginning in my case at line 500 thru 520 with thirteen errors.

My only choice was to install the software that would install. Also, after the conversion of tables, the program ver2.0.10 stopped functioning correctly. No PM, email, registering of new members or replies to posts. It is now a view only forum. Members can log in, but this is all they can do beside view the boards.

I'm glad I didn't attempt to upgrade the original site. I would have likely killed it.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Kindred on September 13, 2015, 03:22:21 PM
WHY THE HECK ARE YOU EVEN TRYING TO DO AN INSTALL?? ??? ???

DON"T DO AN INSTALL!

copy the files from your existing site to your empty, brand new directory/server
copy the database from your existing site to your EMPTY, brand new, test database (on the new server)
run repair_settings.php to correct/update the database connection info to point to the new database.
run repair_settings.php AGAIN to update the URLs and PATHs to point to your new server location.

NOW you have 1,1,x installed, just like your live site.

THEN, and only then, start the upgrade process.

DO NOT *INSTALL* anything.
Title: Re: Upgrade Error - Been at it for a week now...
Post by: Antechinus on September 13, 2015, 04:45:59 PM
If you're going to do it that way, lock down your live site while you are messing with the test site. This is because until you get all the paths corrected, any changes on one forum will affect both.