Changing database on 2.14

Started by Topman, December 04, 2023, 08:10:14 AM

Previous topic - Next topic

Topman

Ive just managed to set up SMF 2.14 on a new website and new database so my existing forum can keep going until I am happy everythging is completyed.
My question is:
Can you change the database in SMF2.14?

I also want the packages I did have in 2.019 most of which do not seem to be able to be installed. Pretty URLs Country Flags NoFollowBBcode Prevent signatures and links etc

Steve

A lot of the mods for 2.0.19 no longer work in 2.1.4 ...
My pet rock is not feeling well. I think it's stoned.

Kindred

so, your goals are not fully clear, and your questions seem to be suggesting a bad path, however...

1- yes, you can change the database for an installed version by changing the details in Settings.php - either by editing directly or by using repair_settings.php

2- You CAN NOT use a 2.0.19 database in a 2.1.4 installation. There are database changes (some of them major) between the 2.0.x and 2.1.x lines. You **MUST** run the upgrade process to correctly update the 2.0.x database to 2.1.x format.

3- During a major upgrade, all mods get removed. You have to re-install the mods in the upgraded forum -- if the mods have also been updated to work in the new version.  As Steve points out, there are many mods (especially old ones) which have not been upgraded to run on 2.1.x


Instead of installing a fresh installation of 2.1.4 and then just copying the database (which is what you seem to be implying that you plan) -- you are going to have to UPGRADE your current production forum
Сл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."

Topman

I had been hoping the 2.0.19 database could be as is with 2.1.4.

Looks like this is going to be a bit of a steep learning curve!


Topman

I've just downloaded the smf_2.1.4-upgrade.zip to my 2.1.19 forum and have got the message:

 pAn Error Has Occurred!
vsprintf(): Argument #2 ($values) must be of type array, string given

Back

No idea.  I may seem thick but I don't do this very often and my PHP support runs out at the end of the year.

Topman

I've just changed the PHP version to 8.2 which previously didn't work on SMF 2.0.19 and now it does!  :D  so I don't think I have to upgrade to 2.1.4 anytime soon at least until Dec 2025 when support for php8.2 ends.

Thanks for your help.

Doug Heffernan

Quote from: Topman on December 09, 2023, 06:44:10 AMI've just downloaded the smf_2.1.4-upgrade.zip to my 2.1.19 forum and have got the message:

How did you try to upgrade to Smf 2.1.4, through the package manager? If that was the case and for future reference, such a large upgrade should alsways be performed manually.

Upgrading SMF

Sir Osis of Liver

SMF 2.0.19 supports up to php 8.0.  It may run in 8.2, but will log a lot of errors and things may break, especially if you're using old 2.0 mods.
When in Emor, do as the Snamors.
                              - D. Lister

Kindred

2.0.19 does not support php 8.2

To upgrade you need to follow ALL of the steps on the upgrade instructions article
Сл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."

Advertisement: