OrangeHRM Blog
Voice of Free & Open Source HR System
12
Mar

Upgrading from 2.4.0.1 to 2.4.1

Posted in General  by admin

OrangeHRM version 2.4.1 contained automated upgraders for version 2.2.2.2, 2.3 and 2.4. But it didn’t support version 2.4.0.1.

OrangeHRM 2.4.0.1 is almost similar to version 2.4 except for few minor file changes. Therefore you might have noticed that 2.4.0.1 has been generally called as version 2.4.

Since we observed that some users have used version 2.4.0.1 and are unable to upgrade to version 2.4.1, we decided to offer a patch.

This patch should be applied to version 2.4.1 before starting the upgrade. It contains two files and those two should be applied to following file paths (Paths are shown relative to root of OrangeHRM).

upgrade/index.php
upgrade/templates/copyConfFiles.inc

Download the patch
Upgrade instructions

Update on 20th March 2009:

The patch was updated. Now upgrader will create a log file called upgraderLog.log at upgrade directory in newversion during the data import stage. This will let you know the cause if an error occurred during the import.

4 Responses

  1. Yoshi

    I tried it twice, but both are failed at 99% saying the following message:

    Data Import from Current Database
    There were errors when importing data. You may delete this database and start with a new one.

    Any successful upgrade?

    http://orangehrm.com/forum/viewtopic.php?t=2889&highlight=upgrade

  2. Yoshi

    Hi Gayanath,

    It seems that new database which is created this script is missing foreign keys. I am not sure that it is related to my error. just FYI.

  3. Gayanath

    Hi Yoshi,

    Make sure the version number at lib/confs/Conf.php in your 2.4.0.1 version is 2.4.0.1. If you upgraded to 2.4.0.1 from an earlier version using a script, this may still contain the old version number. Change it and try again.

  4. Nilesh Pancholi

    When i try to upgrade from 2.4.2 to 2.5, i am unable to do so. Here are the steps i could reach till.

    1) put admin details
    2) Version Check - it says

    “Congratulations!

    Your version is 2.4.2 and supported by orangehrm-2.5-upgrader-alpha.3. Next, upgrader will check for any data incompatibilities. ”

    3) Data Check -
    “Congratulations!

    Upgrader found no data incompatibilities. Upgrader will next create database tables and import data.

    Please provide the name of new database for upgrade. Note that new database should be an empty database and should be under database user “nilesh” (database user of current database).”

    NOW, when i put the database name and press continue i get error as below -

    “Data Import from Current Database

    There were errors when importing data. You may delete this database and start with a new one.
    0% ”

    Please let me know where am i going wrong. I check the update log file and i see many errors there.

    Importing from hs_hr_workshift failed

    Reason: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-hrm.hs_hr_workshift’ at line 1

    Importing from hs_pr_salary_currency_detail failed

    Reason: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-hrm.hs_pr_salary_currency_detail’ at line 1

    Importing from hs_pr_salary_grade failed

    Reason: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘-hrm.hs_pr_salary_grade’ at line 1

    I see such errors for many tables.

    please help !!!!

Leave a Comment

 

Copyright © 2018 OrangeHRM Inc All rights reserved. Powered By WordPress