How to migrate Joomfish content (j1.5) to 2.5?

With Joomla 2.5 released, alot of people want to Upgrade (migration from Joomla 1.0 1.5 to joomla 2.5), easy to Upgrade Joomla content from Joomla 1.5 to joomla 2.5 with JUPGRADE component here is tutorials: How to migrate a Joomla 1.5 to Joomla 2.5 – joomla 2.5 tutorials and Migrating from Joomla 1.5 to Joomla 1.6+, joomla 1.7

But some one using Joomfish for multileage website, there have been a lot of questions as to how to migrate or upgrade joomfish to Joomla 2.5 from 1.5. This guide will take you step-by-step through the general procedure of how to migrate joomfish to Joomla 2.5.

 

Fisrt please read 2 articles How to migrate a Joomla 1.5 to Joomla 2.5 – joomla 2.5 tutorials and Migrating from Joomla 1.5 to Joomla 1.6+, joomla 1.7 and UPGRADE your Joomla contents to joomla 2.5.

Affter that download component called Falang at http://joomquery.com/en/joomla/joomla-extensions.html or http://extensions.joomla.org/extensions/languages/multi-lingual-content/18210

The Falang component allows you to manage all your content translations, even the content of all your components/modules, on your web site. The component is so flexible that you can easily add new components at a later date and then translate the new content.

Upload and Installation it as Joomla component.

and then Use my Code save as migration-joomfish-to-joomla-25.php and place in your Joomla directory.

example: http://joomquery.com/migration-joomfish-to-joomla-25.php and here is code

<?php
set_time_limit(0);
//init Joomla Framework
define( '_JEXEC', 1 );
define( 'JPATH_BASE', dirname("."));
define( 'DS', DIRECTORY_SEPARATOR );
?><html>

<head>
<title>Joomfish Upgrade from joomla 1.5 to joomla 2.5
deverloped by http://joomquery.com
</title>
</head>
<body style="text-align:center;">
<div style="width:980px; margin:0 auto; text-align:center">
<?php
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
require_once( JPATH_CONFIGURATION   .DS.'configuration.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'database.php' );
require_once ( JPATH_LIBRARIES .DS.'joomla'.DS.'import.php' );
//require_once ( JPATH_BASE .DS.'libraries'.DS.'joomla'.DS.'factory.php' );

//DB Connection
$Config = new JConfig();

$option['driver']   = $Config->dbtype;   // Database driver name
$option['host']     = $Config->host;     // Database host name
$option['user']     = $Config->user;     // User for database authentication
$option['password'] = $Config->password; // Password for database authentication
$option['database'] = $Config->db;       // Database name
$option['prefix']   = $Config->dbprefix; // Database prefix (may be empty)
//echo $Config->dbprefix;
$db = & JDatabase::getInstance($option);
$query = $db->getQuery(true);

$query = "SELECT * FROM ".$Config->dbprefix."jf_content ORDER by id";

$db->setQuery($query);
$rows = $db->loadObjectList();

echo 'Total: '.count($rows).'Rows';
if($rows){
foreach ($rows as $row){
$insert_query = "INSERT INTO j25_falang_content VALUES (".$row->id.";'".$row->language_id."';'".$row->reference_id."';'".$row->reference_table."';'".$row->reference_field."';'".$row->value."';'".$row->original_value."';'".$row->original_text."';'".$row->modified."';'".$row->modified_by."';'".$row->published."';)";

setQuery($insert_query);
echo '<p style="color:green"><span>'.$row->id.'  </span><span>'.$row->reference_table.'  </span><span>'.$row->modified.'</span></p><br />';
}
}
//jos_jf_tableinfo
$query_tableinfo = "SELECT * FROM ".$Config->dbprefix."jf_tableinfo ORDER by id";
$db->setQuery($query_tableinfo);
$rows_tableinfo = $db->loadObjectList();
if($rows_tableinfo){
foreach ($rows_tableinfo as $row){
$insert_query_tableinfo = "INSERT INTO j25_falang_tableinfo VALUES (".$row->id.";'".$row->joomlatablename."';'".$row->tablepkID."')";

setQuery($insert_query_tableinfo);
//echo '<p style="color:green"><span>'.$row->id.'  </span><span>'.$row->reference_table.'  </span><span>'.$row->modified.'</span></p><br />';
}
}
?>
<p>
This script developed by Mr Lamvt <br />
Website:<a href="http://joomquery.com" title="Joomla free templates">JoomQuery.Com</a> <br />
Website:<a href="http://www.softbuzz.net" title="Download your favorite software! - softbuzz.net">SoftBuzz.Net</a> <br />

</p>
</div>
</body>
</html>

Your can download as txt file here:

http://joomquery.com/migration-joomfish-to-joomla-25.txt

Run my script and check your New joomla admin

 

Goodluck

 

 

One thought on “How to migrate Joomfish content (j1.5) to 2.5?

  1. Hay,

    I tried with this script to do the migration, but throws a mistake.

    On the line 20 and 21 it says: failed to open stream: No such file or directory

    Requested php files do not exist at all at this location.

    That you can tell me how to change my script to function properly?

Leave a comment