upgrade from 1.1.19 to 2.0.6 undefined index

Started by ormuz, January 14, 2014, 04:39:40 PM

Previous topic - Next topic

ormuz

So, I've deleted all the files and folders, with the exception for:

/attachments
/avatars
Settings.php
Settings-bak.php

And then I've uploaded the large upgrade package, then I went to the /upgrade.php and I got a lot of errors saying:
Undefined index: upgrade_upgrade_utility in /home/www/test.site.pt/public_html/upgrade.php on line 3476
Notice: Undefined index: upgrade_step in /home/www/teste.site.pt/public_html/upgrade.php on line 3493 2: Upgrade Options

for instance...

And then in the footer I've the following message:
The upgrader found some old or outdated files.
Please make certain you uploaded the new versions of all the files included in the package.


Any ideas for what can I be doing wrong?

margarett

"upgrade_upgrade_utility" is a text string defined in Themes/default/languages/Install.english.php.
Same for "upgrade_step".

Make sure you uploaded all files from large upgrade, as it seems you missed some ;)
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

ormuz

Quote from: margarett on January 15, 2014, 03:05:00 PM
"upgrade_upgrade_utility" is a text string defined in Themes/default/languages/Install.english.php.
Same for "upgrade_step".

Make sure you uploaded all files from large upgrade, as it seems you missed some ;)

I've triple check that. Install.english.php is there and is up-to-date. repair_settings.php doesn't give any error on the folders and paths :(

margarett

No idea. Permissions on the file also looks good.

One thing I did notice was 2 paths on the warning messages:
Quote
Undefined index: upgrade_upgrade_utility in /home/www/test.site.pt/public_html/upgrade.php on line 3476
Notice: Undefined index: upgrade_step in     /home/www/teste.site.pt/public_html/upgrade.php on line 3493
(see the missing/extra "e"?)

edit: who is the owner "500" in the right column? Could this be an ownership issue?
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

ormuz

Quote from: margarett on January 15, 2014, 03:16:43 PM
(see the missing/extra "e"?)

That was just a typo here do hide the current url I'm using to test the upgrade...

Quote from: margarett on January 15, 2014, 03:16:43 PM
edit: who is the owner "500" in the right column? Could this be an ownership issue?

I don't think it is related to that, the live site is running on the same server with the same owner...

Any more ideas? Or ways to debug this?

ormuz

my host deactivate the "notices" and made sure that the owner thing was not a problem...

It seems that the problem is related to the language files, but they are there and up-to-date :(

In the attach is what I'm seeing right now.


ormuz

my host deactivate the "notices" and made sure that the owner thing was not a problem...

It seems that the problem is related to the language files, but they are there and up-to-date :(

In the attach is what I'm seeing right now.


Illori

can you try running repair_settings.php and see if fixing your paths helps any?

What is repair_settings.php?

ormuz

Quote from: Illori on January 15, 2014, 04:43:40 PM
can you try running repair_settings.php and see if fixing your paths helps any?

What is repair_settings.php?

Yep, just did that again... Everything is perfect there, even the language is set to "english"

Illori

you dont have any mix of forward and backward slashes in your paths?

ormuz

Quote from: Illori on January 15, 2014, 04:59:50 PM
you dont have any mix of forward and backward slashes in your paths?

Nop, they are all fine.

PS: The last version of repair_settings.php available for download here is broken, I had to download a older version...

ormuz

When I delete te files inside the default/languages the error in upgrade.php is still the same. Does that mean that for some reason, the path to the default theme is wrong somewhere?

margarett

Or that the access to file is denied, eg due to ownership issues :P
That's one of those "have to see cases..."

Anyway, since you are in a more-or-less urgent, you can try to import your database and those files you saved to your local machine (xampp, wamp, etc), do the upgrade in localhost and return the converted database + files to the server...
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

Illori

i am not sure i would recommend that... it would not fix a paths issue.

ormuz

Ok, so I will focus on the paths/owner possibility... Any recommendation to make sure that is from the paths or from the owner?

It is not urgent, I'm not doing this in production, I'm doing in a test environment just to prepare the upgrade.

Kindred

the error that you are seeing indicates that some of the basic forum files are detected at PRE 2.0.x levels.

This suggests that you have not correctly uploaded all of the files from the large upgrade (overwriting the 1.1.x files)
Since you insist that you have done so, this in turn suggests that ownership permissions on your server are preventing you from overwriting those files.

Your best bet would be to actually DELETE everything except the attachments and avatars directories and the Settings.php and Settings_bak.php files
(in other words, keep those 4 things, delete everything else)
THEN load the upgrade files and run upgrade
Сл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."

ormuz

Kindred, that was the way I started...  :'(

Quote from: ormuz on January 14, 2014, 04:39:40 PM
So, I've deleted all the files and folders, with the exception for:

/attachments
/avatars
Settings.php
Settings-bak.php

Kindred

#17
indeed...   you did say that. Sorry.

I can not imagine what could be causing your error then... I just tried it on three different servers and could not replicate your problem.
Сл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."

ormuz

I'm still stuck on this... I've checked everything a lot of times. It is possible that this code had a bug?

// Do a quick version spot check.
$temp = substr(@implode('', @file($boarddir . '/index.php')), 0, 4096);
preg_match('~\*\s@version\s+(.+)[\s]{2}~i', $temp, $match);
if (empty($match[1]) || $match[1] != SMF_VERSION)
return throw_error('The upgrader found some old or outdated files.<br /><br />Please make certain you uploaded the new versions of all the files included in the package.');


I will just comment this lines and try it... f@ck it! Wish me luck  :o

ormuz

Ok, the upgrade went perfect... And there is definitely a bug in the smf upgrade (I wonder how many people give up from smf because of this, I found a lot of topics reporting this error...).

And the bug is that I had a theme installed, that I eventually deleted the files when I overwrite for the new ones. For some reason the upgrade.php was looking for that files. When the upgraded finished the theme turned on, wasn't there. And I had to change to the default/curve theme manually.

Hope I made my self clear on the explanation... If not I can try to explain it better.

Thanks for all you time and help.

Advertisement: