News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Undefined index: upgrade_upgrade_utility

Started by bluemonkmn, September 10, 2014, 02:26:39 PM

Previous topic - Next topic

bluemonkmn

I'm getting many errors when I try to run upgrade.php, starting with:

Notice: Undefined index: upgrade_upgrade_utility in /(my directory)/upgrade.php on line 3476
Notice: Undefined index: upgrade_progress in /(my directory)/upgrade.php on line 3488


Also, when I navitgate to the root of the site, I did not get automatically directed to upgrade.php as the readme suggests would happen. I got the message:

Unknown column 'a.attachment_type' in 'field list'

I saw someone having the same error back at 2.0.6 at http://www.simplemachines.org/community/index.php?topic=516952.20. I too have deleted everything except avatars and attachments, yet after extracting the archive into this mostly empty structure, I still get this message.
I'm trying to upgradfrom 1.1.19 to 2.0.8

kat



Have you put Upgrade.php in the same place as Settings.php?

It needs to go in the root of your FORUM. Not in the root of your site.

I don't see how that could produce the errors you're getting, to be honest. Worth checking, though. :)

bluemonkmn

Yes, upgrade.php and Settings.php ended up both in the same directory in the root of my forum, which also happens to be the directory assigned to the root of my domain.

kat


bluemonkmn

#4
I'm using the readme file that came with the Large Upgrade archive, which looks very similar to hxxp:mediacomcable.com/CustomerSupport/forum/readme.html [nonactive].

I copied the database and updated Settings.php to refer to it. I also created a new domain referring to its own directory, and updated Settings.php to refer to that also. So I had two clones of the same 1.1.19 forum. Then I deleted everything except Settings.php, Settings_bak.php, avatars and attachments. I extracted the archive into that directory, and then navigated to upgrade.php, and then I saw the error. I am not sure about permissions, but I assume extracting them from a tar.gz in a remote shell, lets the permissions come with it. And I thought according to the readme that I would have had a helpful error if that were the problem.

Farther down the error page I do see a paragraph beginning with "The upgrader found some old or outdated language files, for the forum default language, english." Not sure if that relates to this at all, but it's not the first error that appears.

Edit: I noticed that the error page tried to output some images referring to the old domain, which I don't understand. I though I had eliminated all references to the old domain in the new directory. I also found 3 references to it in the copied database and changed those, but it's still referring to the old domain. Should I delete the content of the sessions table too?

kat

That readme says:

QuoteIf you are using additional languages it will be useful to upload also the updated versions of the language files along with the upgrading packages. Doing so all updated text strings will appear correctly after the upgrade, and will allow the upgrade to run in your selected language.

You can get those, from here:

http://download.simplemachines.org/?smflanguages

The bit about being redirected to Upgrade,php... I don't believe that, for one second. Try physically going to that URL.

bluemonkmn

I found half a dozen to a dozen more references to my old domain in the smf_themes table. After updating those to refer to my new domain, things are looking much better. Is there a "correct" way to switch domains including all the themes in the database? Seems rather extreme that the upgrade can't even start if my themes aren't set up properly.


Kindred

basically - you did is incorrectly.

You were trying to do three things in one go instead of taking them step by step.

1- moving the database - requires changes to Settings.php
2- moving the domain - requires changes to Settings.php AND fields in the database - done normally through repair_settings.php
http://wiki.simplemachines.org/smf/Hosting_-_How_do_I_move_my_SMF_forum_to_a_different_host
(same thing if you change the database location or the domain name)

3- THEN upgrade
http://wiki.simplemachines.org/smf/Upgrading


Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

I "studied" this issue with upgrades and language files not found some weeks ago.
I have to get to the computer to try and find that topic...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

margarett

I see you marked this as solved, can you tell us what the problem was?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

bluemonkmn

Quote from: margarett on September 10, 2014, 06:41:16 PM
I see you marked this as solved, can you tell us what the problem was?

The problem, as hinted earlier, was that I had not fully updated the forums to refer to the cloned domain name. Some pieces in the smf_themes table were still referring to the old domain which still had the old files in it. When I corrected the smf_themes table, everything worked. I suspect the error reporting could have been better, but if I understand earlier comments correctly, there was a proper way to update the themes before putting the new SMF 2.0 upgrader in place.

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: