Recently I had an error message while migrating and old Joomla! 1.5 site to the new Joomla! 2.5, jupgrade failed with “Migrating undefined” error.

After digging in the code I found a solution:

You have to edit two files:

jupgrade/installation/models/configuration.php
jupgrade/installation/models/database.php

and insert the following line near the top of the script:

require_once JPATH_ROOT.'/jupgrade/libraries/cms/model/legacy.php';

When done (after the failed upgrade), you can retry the migration checking the following options in Jupgrade configuration:

Jupgrade options

 

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on LinkedInPin on PinterestShare on RedditShare on Google+

40 Responses to “How to fix Jupgrade Migrating undefined error when upgrading to Joomla 2.5”

  • dalton

    In some cases JPATH_ROOT don`t work. Change the line for : require_once JPATH_INSTALLATION.’../libraries/cms/model/legacy.php’;

  • bob

    Many, many thanks.

    Who knows why these two lines are missing in the original JUpgrade script.

  • Andreas

    Not work for me?
    What do i wrong? I insert that line under “require_once JPATH_INSTALLATION.’/helpers/database.php’;”, are that wrong or not?

  • Antonio Nieto

    I join the congratulatory remarks, I was going crazy.
    Thank you very much.

    Me uno a los comentarios de felicitación, me estaba volviendo loco.
    Muchas gracias.

  • CD

    I don’t see the folder jupgrade/installation
    couldn’t find it anywhere… so I have no idea how to go to those files. Please help!!

  • kais

    where to find the folder jupgrade/installation???

    i dont see this files ??

    jupgrade/installation/models/configuration.php
    jupgrade/installation/models/database.php

    please help weher can i find this folders and files?

  • Artemeey

    jupgrade/installation/models/configuration.php
    jupgrade/installation/models/database.php

    See in root of site.

  • Ole

    I don´t work on my site. I have more than 2.000 content and menu records. Any other ideas?

    Thx

  • Mayur Panchal

    I am still getting “migrating undefined” error i had also put that line in both file still it give me error plz help me

  • Mayur Panchal

    Hello
    Plz Help me i am trying to upgrade my joomla 1.5.26 to 2.5.9 and i got “Migration Undefined” Error. i have already tried your solution. but it does not work for me 🙁

    thanks in advance

  • Aaron

    Thank you very much for your help. This solved the problem where many other options were not effective.

    Mahalo!

  • Maik

    YEAHHH!!!
    Für die die es nicht schaffen:
    1. Im root-Verzeichnis der 1.5 Installation einen Ordner jupgrade anlegen
    2. die neueste 2.5.x in dieses Verzeichnis entpacken.
    3. in diesem Verzeichnis den oberen Pfad folgen und die beiden Dateien modifizieren, am besten gleich unter: require_once JPATH_INSTALLATION.’/helpers/database.php’;
    das hier schreiben:
    require_once JPATH_ROOT.’/jupgrade/libraries/cms/model/legacy.php’;
    4.Einstellungen wie im Bild oben vornehmen und ab gehts…

    mfg

  • Tanita

    Ciao, After looking for in many website and forums, I can do it the upgrade perfect, thanks to you.

    Grazie mille Andrea!

  • Sawan

    in the joomla 1.5.26 => click component jupgrade=>then click “parameter” option i was asking you
    there is not showing parameter option what can i do to fix this error

  • Sawan

    in the joomla 1.5.26 => click component jupgrade=>then click “parameter” option so i was asking you
    there is not showing parameter option what can i do to fix this error.

  • sawan

    I’ve try to migrate a website in Joomla from 1.5 to 2.5 using jUpgrade but I’ve receive the “undefined migrating” error.

    Fatal error: Uncaught exception ‘Exception’ with message ‘Unknown column ‘rawpassword’ in ‘field list’ SQL=INSERT INTO `j25_users` (`id`,`name`,`username`,`email`,`password`,`rawpassword`,`usertype`,`block`,`sendEmail`,`registerDate`,`lastvisitDate`,`activation`,`params`,`newsletter`,`blog`) VALUES (’62’,’Administrator’,’idnadmin’,’webmaster@idnxchange.com’,’a67042770b2ebf18e330abbef9453a06:LKQiBAD5PjxFacEoXzHLSV7uhIAEfNGX’,”,’Super Administrator’,’0′,’1′,’2011-06-09 23:43:07′,’2014-07-07 04:17:19′,’66b5d829f602c13165caecbe88d4f19f:RDRr56vAoRMkaVaQUnjRacD1xiCkDNgM’,'{\”admin_language\”:\”\”,\”language\”:\”\”,\”editor\”:\”\”,\”helpsite\”:\”\”,\”timezone\”:\”UTC\”}’,’0′,’1′)’ in /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php:347 Stack trace: #0 /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/controller.php(45): jUpgrade->upgrade() #1 {main} thrown in /home/tesit126/public_html/wm/administrator/components/com_jupgrade/includes/jupgrade.class.php on line 347

    ==========
    [undefined] [undefined]

  • sawan

    I have a requirement to build one parent site and few child sites..using domain and sub-domain concept and want to have installations of joomla at parent and all sub-domains. But I want only my parent site to hold user data and Alpha user points data while my child sites would be hosting components and modules separately and use user data and Alpha user points data from parent site.

    Could any one suggest me is it a good Architecture to go and is there any extension or component already available to achieve it. Example
    below:

    parent site movies.com Child sites braveheart.movies.com, troy.movies.com

    I will have forums, blogs and other component installations at braveheart and troy sub-domains seperately while my Alpha user points and users db/tables would reside at movies.com(main domain).

    It’s like single-sign on or Centralised Alhpa user points, but free to install same component and modules at different sub-domains.

    Highly appreciate any replies or solutions proposed

  • wfa

    There is no “Parameters” icon… Do you know what can be wrong?
    (Joomla 1.5.25 + jUpgrade 2.5.2)

Trackbacks/Pingbacks

  1.  Actualizar Joomla! 1.5 a 2.5 »