Can not migrate OJS 2.4.8-3 to 3.1.1-2

Hello.

I am working on migration OJS 2.4.8-3 to 3.1.1-2.
I downloaded the full package, unpack it in new dir, copy there “public” dir, changed the config.inc.php with the data from the old version, and copy all in old dir.
If I turn in config.inc.php “installed = Off”, then I see HTTP ERROR 500.
If I turn “installed = On”, then I see DB Error: Unknown column ‘context_id’ in ‘on clause’.
In error_log are 2 entries, respectively:
“Cannot read configuration file /home/socioni/public_html/physics/config.inc.php”
and
"ojs2: DB Error: Unknown column ‘context_id’ in ‘on clause’ "

What should I do in this case?

Thanks.
Olga

Hi @Olga_Karpenko,

Have you tried the upgrade script? See docs/UPGRADE for instructions on how to upgrade your database.

Regards,
Alec Smecher
Public Knowledge Project Team

I can not running the upgrade script, because when I try to open my OJS site, I get HTTP ERROR 500.

Hi @Olga_Karpenko,

Do you have access to the command line upgrade tool? That’s the recommended way to do it in any case.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I don’t have access to the command line. So I would like to use some other method.
Our institute has two sites on OJS with 5 journals on one of them and with one on the other.
I did not have any problems with the 2.4.x version updates by web script.

Regards,
Olga

Hi @Olga_Karpenko,

Can you turn on the show_stacktrace option in config.inc.php, try again, and post the results?

Regards,
Alec Smecher
Public Knowledge Project Team