News:

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

Main Menu

Upgrading from 2.0.19 to 2.1.2 problem

Started by gloudiesaurus, June 24, 2022, 04:13:53 AM

Previous topic - Next topic

Doug Heffernan

Quote from: gloudiesaurus on September 14, 2022, 01:49:59 PMI deleted all forum files and put back the back up of 2.0.19. Then it worked.
Changed language to English and upload the 2.1.02 files again.

Choose English for installation and I got exact the same as before. See screenshots.

The error in your second screenshot is what is preventing the upgrade imo. Your urls/paths do not seem to be pointing to the right location, as mentioned in the error message. Can you run the repair_settings.php tool and click on all recommended values?

gloudiesaurus

I ran repair_settings.php.
Also changed language to English.

After that upload the 2.1.02 files again.
But the same problem again, see screenshots.

Doug Heffernan

Quote from: gloudiesaurus on September 14, 2022, 03:41:55 PMI ran repair_settings.php.
Also changed language to English.

After that upload the 2.1.02 files again.
But the same problem again, see screenshots.

Did you click the recommened values and save the changes? If the paths and urs were straightened out, the error message would have been gone.

Can you run the following sql queries at the phpmyadmin and post the results here?

SELECT value FROM smf_themes WHERE variable = 'theme_url';
SELECT value FROM smf_themes WHERE variable = 'theme_dir';

If you are using a different prefix for your database tables, other than smf_, append that to the themes table name in queries above.

gloudiesaurus

Quote from: Doug Heffernan on September 14, 2022, 04:16:25 PM
Quote from: gloudiesaurus on September 14, 2022, 03:41:55 PMI ran repair_settings.php.
Also changed language to English.

After that upload the 2.1.02 files again.
But the same problem again, see screenshots.

Did you click the recommened values and save the changes? If the paths and urs were straightened out, the error message would have been gone.

Can you run the following sql queries at the phpmyadmin and post the results here?

SELECT value FROM smf_themes WHERE variable = 'theme_url';
SELECT value FROM smf_themes WHERE variable = 'theme_dir';

If you are using a different prefix for your database tables, other than smf_, append that to the themes table name in queries above.

Yes I did. See screenshots.


Sir Osis of Liver

You shouldn't be seeing the "Try English" prompt.  Restore forum files and database to 2.0.19, make sure it's running correctly, set default language to english in Admin > Languages.  Upload 2.1.2 upgrade package, run upgrade.php.  It should run from beginning and not ask you about language.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

gloudiesaurus

Quote from: Sir Osis of Liver on September 14, 2022, 10:12:44 PMYou shouldn't be seeing the "Try English" prompt.  Restore forum files and database to 2.0.19, make sure it's running correctly, set default language to english in Admin > Languages.  Upload 2.1.2 upgrade package, run upgrade.php.  It should run from beginning and not ask you about language.

This is exact what I did. But it didnt run from the beginning.
My website uses Cloudfare, is it possible that this plays a role?

Sir Osis of Liver

Not sure how upgrade.php detects a previous upgrade attempt, but that procedure should restart upgrade.  You may have to purge Cloudflare cache, should be in Dashboard > Configuration > Purge Cache. 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Illori

Quote from: Sir Osis of Liver on September 15, 2022, 06:53:39 PMNot sure how upgrade.php detects a previous upgrade attempt, but that procedure should restart upgrade.

there should be a line added in Settings.php to give it the status and after it is done i believe that line is deleted.

gloudiesaurus

Quote from: Sir Osis of Liver on September 15, 2022, 06:53:39 PMNot sure how upgrade.php detects a previous upgrade attempt, but that procedure should restart upgrade.  You may have to purge Cloudflare cache, should be in Dashboard > Configuration > Purge Cache. 

So the best thing I can do now, is purge Cloudfare cache.
Running repair_settings.php. Upload 2.1.2 files, and try to run upgrade.php again?
Correct?  :)

Steve

DO NOT pm me for support!

Sir Osis of Liver

#51
Just make sure 2.0.19 is running correctly before attempting upgrade again.

Quote from: Illori on September 15, 2022, 07:53:16 PMthere should be a line added in Settings.php to give it the status and after it is done i believe that line is deleted.

That being the case, it should be removed when restoring 2.0.19 backup, which has been tried.  I'm guessing it's a caching issue.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

gloudiesaurus

You dont believe it, after those steps:


So the best thing I can do now, is purge Cloudfare cache.
Running repair_settings.php. Upload 2.1.2 files, and try to run upgrade.php again?

It worked, the forum is updated now  :D  ;D  ;D  ;D  ;D

gloudiesaurus

Thanks you all so much for your help and time!

Doug Heffernan

Glad to see that you managed to upgrade your forum successfully.

Advertisement: