I’m running XAMPP for MacOS X v7.3.11 and try to make a local OJS test upgrade from 2.4.8 to 3.1.2-3 before upgrading the main OJS system online.
But I got stuck: Trying to upgrade via install page results in timeout (blank page). Reloading leads to DB Error: Table 'db35967.articles' doesn't exist.
But how can I upgrade with the cli tool? I tried to do this via terminal with php /tools/upgrade.php upgrade, but nothing happens (yes, php is in PATH).
Hi,
I’m experienceing the same issue. Trying to upgrade from ojs 3.0.2.0 to ojs 3.2.1-1. I also updated php from 5.64 to 7.2 as I understood the new ojs is compatibile with version >=7.2.
When I type:
php tools/upgrade.php
or
php tools/upgrade.php check
or
php tools/upgrade.php upgrade
I have no response (the terminal does not print anything to the screen).
Any idea about what could cause it?
BTW, under ojs 3.0.2.0 the php tools/upgrade.php works.
You’ll have to check the service provider’s knowledge base or contact them for information on how to access the PHP logs – unfortunately this will be provider-specific.
Regards,
Alec Smecher
Public Knowledge Project Team
I partially solved the issue by changing mysql to mysqli in the config.inc.php file. Now the upgrade is launching, however, after a short while it throws an error:
I don’t see an error there – that’s part of the normal output of the upgrade process. It looks like it was cut short, though. Did anything appear in the PHP error log?
Regards,
Alec Smecher
Public Knowledge Project Team
The table review_assignments_tmp is created during the upgrade process as a temporary storage area, then deleted when the upgrade completes. If it already exists, it’s because a failed upgrade attempt left it behind.
When an upgrade fails, make sure to totally delete the database, create an empty one, then load it with the contents of a backup you took before running the upgrade.
Regards,
Alec Smecher
Public Knowledge Project Team
This is similar – that table is created during the upgrade, and doesn’t exist in OJS 3.0.2. Are you sure you’re restoring for a backup taken before the first upgrade attempt?
Regards,
Alec Smecher
Public Knowledge Project Team
@asmecher, yes I’m restoring the database to a date before any upgrade was done. I repeated the recovery now and I can still see that the “submission_galley_settings” table in the db. Would it be okay to just delete it?
Does your OJS 3.0.2 database backup have a table called article_galley_settings? It shouldn’t – this should have been removed when you upgraded from OJS 2.x to 3.x. I’d recommend reloading your 3.0.2 database backup, dropping the article_galley_settings table, and trying the upgrade again.
Regards,
Alec Smecher
Public Knowledge Project Team
@asmecher, thank you very much, removing the article_galley_settings did help me move forward in the upgrade. Then, it encounters yet another duplicate entry:
…