News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Upgrading issues from 2.0 to 2.1

Started by Blade~, December 24, 2016, 01:07:45 PM

Previous topic - Next topic

Blade~

Hello everyone,

We are ready for the move from 2.0.12 to 2.1 but having issues implementing it.

I followed directions, unzipped the files and copied the upgrade.php, upgrade_2-1_mysql.sql and upgrade_2-1_postgresql.sql files from Other to the main folder and also copied Settings.php here renaming it to Settings_bak.php. I then uploaded all to the root directory, separate from our live forum (permissions are set to 777). Fortunately we have a test forum so if we mess up at any time it's no problem. So after all these were done I tried running upgrade.php from the browser but says 'No input file specified'. Looks like missing a step?

Another question is since we have two forums a live and test forum (in two separate folders under root), does the upgrade searches for all instances and asks which to upgrade?

Any help is appreciated!
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Blade~

Hold on with this question, I am getting somewhere now ... sorry ...
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Blade~

All right so I got as far as I figuring out that it needed the Settings.php file, even thought the instructions says to rename it as Settings_bak.php. So I created both, ran it again and went this far:

Parse error: syntax error, unexpected T_FUNCTION in D:\Hosting\2138779\html\SMF2.1-release-2.1\Sources\Class-Package.php on line 621

'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Illori

why are you trying to upgrade to SMF 2.1? it should not be used in production and if you are using it you should be using what is on github and report any issues on github so the developers can track the issues.

Kindred

To do upgrade, you do not use the settings.php in the other folder... you use the settings.php fro your original 2.0 installation

But also, as Illori has mentioned..,  do not use 2.1 beta in a production site.
Сл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."

Antes

Another question is since we have two forums a live and test forum (in two separate folders under root), does the upgrade searches for all instances and asks which to upgrade?

No our upgrade file only works with the dir its in. As long as your databases are also separated you don't have anything to worry.

If you took files here, they are probably dated for some time, use these files; https://github.com/SimpleMachines/SMF2.1/archive/release-2.1.zip

Blade~

Thanks for the advice so far, I'm back at it again after X-mas.

I am not using the upgrade on a live forum, I am trying to get it working on our test forum.

I copied the 'Settings' file from my test forum over to the SMF2.1-release-2.1 folder and tried running the upgrade again, it did take me one step further but hanging again (see screen cap below).

Let me recap what I did, again, I followed the instructions: after unzipping the downloaded files I moved the files mentioned in the instructions to the main folder (upgrade.php, upgrade_2.1_sql files), then I uploaded everything on our server under root and is called 'SMF2.1-release-2.1'. As kindred suggested I copied the Settings file from our Test Forum over to the upgrade folder. The I ran the upgrade again from the SMF2.1 folder, again getting the error shown below.
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Kindred

You have missed the point

In order to properly upgrade, you need to have a fully working 2.0.x installation alreayd installed.
If the 2.0.x forum is not working in that exact location, then the upgrade will fail

I don't know what instructions you are following that tell you to make an installation in a separate directory... but that will not work.
Сл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."

Blade~

Kindred:

Our test forum is a fully functional forum but only us Admins have access to it, it's not visible to public.

Which instructions? LOL ... yours: http://www.simplemachines.org/community/index.php?topic=530252.0 . Right under step 6 says make sure the uploaded files are in a folder separate from any live installs. Are you saying all the upgrade files need to be copied to the forum we're upgrading?
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Colin

Hi Blade~,

Thanks for trying to help test out SMF 2.1. Make a copy of your live file structure to another directory then add the upgrade files to that copied directory. Let us know if you have any other questions.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Kindred

Colin, that is wrong..,  if you are making a copy, then there is another critical step that is missing..

As I said above, in order for the upgrade to complete, you ***MUST*** have a WORKING installation of smf...    so, making a copy of your forum can only be done if you make a copy AND THEN configure that copy to run in the new location BEFORE doing the upgrade

Blade, I apologize, those instructions are incorrect...   and you are the first person to report a trip up on them (which implies that most folks have ignored them to start with)

Сл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."

Blade~

Understood, thanks guys for the clarification! It's getting a little too late where I am so I'll get at it again tomorrow.

Again, thanks for sticking with us on this!
'Do nothing and there is nothing that's not done' - Lao Tzu

Running SMF 2.1.4
PHP version: 8.1.16

Advertisement: