Upgrade OJS 3.4.0-4 to 3.4.0-7: Inconsistent versions of code and database

Yesterday I upgraded OJS from OJS 3.4.0-4 to 3.4.0-7. Upon completion of the upgrade, it also shows:There is a new version of OJS available! You are currently using OJS 3.4.0.4. The most recent version is OJS 3.4.0.7.
from the url: How do I determine my PKP software's version?. I get the information below



Look at dbscripts/xml/version.xml in your OJS installation. Find the release ,

Although in use, no problems have been found for the time being, but inwardly I always want to keep the code in the same version as the database.

What should I do, HELP~

Hi @LucyDRP,

Did you run the database upgrade portion of the upgrade steps? If not; you’ll need to do that in order to finish the upgrade; if you did, then it probably didn’t complete successfully and you’ll likely have an error message logged with more details.

However, OJS is database-compatible between builds – so your 3.4.0-4 database will work with a 3.4.0-7 database without problems.

Regards,
Alec Smecher
Public Knowledge Project Team

Many thanks for your kind help. @asmecher
After multiple attempts, I found that after the one click upgrade in Cpanel, I only changed the installed=Off in config. inc. php to On.
But before setting up config.inc.php, you should click on the official website and follow the installation process. Until it shows the following inf., then go to set up config. inc. php. Finally, the problem was perfectly resolved. Thank you again!

1 Like