<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: PHP-Nuke 6.0/6.5 to Drupal 4.7.x/5.x migration (conversion)</title> <atom:link href="https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Mon, 01 Jan 2024 17:12:20 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-208085</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sun, 10 Nov 2013 16:06:58 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-208085</guid> <description><![CDATA[Hi Carlos,
I&#039;m definitely glad to know that this blog post back from 2006 helped you achieve the state of life you seem to like/enjoy :) Sharing this feedback was very kind of you - thanks!
Yes, I&#039;m fine, too. I had somewhat departed from [professional] web-development, including Drupal... I&#039;m moving towards higher involvement into various data analysis projects. Right now I&#039;m a &quot;microbial bioinformatician&quot; :)
Within the next few weeks I&#039;ll need to develop a web-interface to one of the tools I&#039;ve developed, but since my favourite language is Python, I&#039;ll most probably do that using Django. It will be interesting to see how different Django and Drupal are from the developer&#039;s viewpoint...
Best wishes,
Bogdan]]></description> <content:encoded><![CDATA[<p>Hi Carlos,</p><p>I&#8217;m definitely glad to know that this blog post back from 2006 helped you achieve the state of life you seem to like/enjoy <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> Sharing this feedback was very kind of you &#8211; thanks!</p><p>Yes, I&#8217;m fine, too. I had somewhat departed from [professional] web-development, including Drupal&#8230; I&#8217;m moving towards higher involvement into various data analysis projects. Right now I&#8217;m a &#8220;microbial bioinformatician&#8221; <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /></p><p>Within the next few weeks I&#8217;ll need to develop a web-interface to one of the tools I&#8217;ve developed, but since my favourite language is Python, I&#8217;ll most probably do that using Django. It will be interesting to see how different Django and Drupal are from the developer&#8217;s viewpoint&#8230;</p><p>Best wishes,<br
/> Bogdan</p> ]]></content:encoded> </item> <item><title>By: Carlos</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-208066</link> <dc:creator><![CDATA[Carlos]]></dc:creator> <pubDate>Sun, 10 Nov 2013 12:42:28 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-208066</guid> <description><![CDATA[Thanks Bogdan for stopping the large amount of spam messages arriving to our mailboxes. I have to say, however, that this time receiving spam has proved to be good, because it has made me come back here after so many years. You may like to know that thanks to your script and patient guidelins I managed to migrate from nuke to drupal, and since then I&#039;ve been a drupal user myself and I&#039;ve been learning a lot (in fact now I am ashamed of some of the comments I made so long ago). Currently I have developed some interesting drupal sites and lately I started working as drupal developer working at &lt;a href=&quot;http://ymbra.com&quot; rel=&quot;nofollow&quot;&gt;Ymbra&lt;/a&gt; a drupal-based company. So, in all, I wanted to thank you again for your work, without that it&#039;s very likely that my present would be really different from what it is today. Hope you are doing fine as well.
Best,
Carlos]]></description> <content:encoded><![CDATA[<p>Thanks Bogdan for stopping the large amount of spam messages arriving to our mailboxes. I have to say, however, that this time receiving spam has proved to be good, because it has made me come back here after so many years. You may like to know that thanks to your script and patient guidelins I managed to migrate from nuke to drupal, and since then I&#8217;ve been a drupal user myself and I&#8217;ve been learning a lot (in fact now I am ashamed of some of the comments I made so long ago). Currently I have developed some interesting drupal sites and lately I started working as drupal developer working at <a
href="http://ymbra.com" rel="nofollow">Ymbra</a> a drupal-based company. So, in all, I wanted to thank you again for your work, without that it&#8217;s very likely that my present would be really different from what it is today. Hope you are doing fine as well.</p><p>Best,</p><p>Carlos</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-207935</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sat, 09 Nov 2013 13:57:10 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-207935</guid> <description><![CDATA[Sorry for the recent comment spam. I&#039;ve enabled moderation for *all* comments now, so garbage from spam-idiots should no longer make it through.]]></description> <content:encoded><![CDATA[<p>Sorry for the recent comment spam. I&#8217;ve enabled moderation for *all* comments now, so garbage from spam-idiots should no longer make it through.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-105219</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sun, 18 Apr 2010 18:01:23 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-105219</guid> <description><![CDATA[Thanks for the info, I&#039;ve added the link to the module page to the top of the post.]]></description> <content:encoded><![CDATA[<p>Thanks for the info, I&#8217;ve added the link to the module page to the top of the post.</p> ]]></content:encoded> </item> <item><title>By: jonhattan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-105212</link> <dc:creator><![CDATA[jonhattan]]></dc:creator> <pubDate>Sun, 18 Apr 2010 10:13:42 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-105212</guid> <description><![CDATA[FYI: I&#039;ve created a module for drupal 6 that performs a migration using the drupal batch api. It is implemented from scratch, not based on current scripts and is easily customizable/extendable if you know php.
https://drupal.org/project/phpnuke2drupal]]></description> <content:encoded><![CDATA[<p>FYI: I&#8217;ve created a module for drupal 6 that performs a migration using the drupal batch api. It is implemented from scratch, not based on current scripts and is easily customizable/extendable if you know php.</p><p><a
href="https://drupal.org/project/phpnuke2drupal" rel="nofollow">https://drupal.org/project/phpnuke2drupal</a></p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103323</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sun, 03 Jan 2010 22:09:06 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103323</guid> <description><![CDATA[I feel a little dumb by not offering the use of &lt;a href=&quot;http://api.drupal.org/api/drupal/includes--database.inc/function/db_query/5&quot; rel=&quot;nofollow&quot;&gt;db_query&lt;/a&gt; in &lt;a href=&quot;http://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html?trashed=1&amp;ids=8#comment-103093&quot; rel=&quot;nofollow&quot;&gt;my comment&lt;/a&gt; above - that could have solved the problem Zmeharen had, and improve the script by extending the use of proper Drupal API...
Here&#039;s an example of the proper use of db_query (with 2 substitution variables):
&lt;pre&gt;&lt;code&gt;
$query = &quot;SELECT nid, title, created FROM &quot; .
&quot;{node} WHERE created &gt;= &#039;%d&#039; &quot; .
&quot; AND created &lt;= &#039;%d&#039;&quot;;
$query_result =  db_query($query, $start_time, $end_time);
&lt;/code&gt;&lt;/pre&gt;
For SELECT, we could then proceed with e.g.
&lt;pre&gt;&lt;code&gt;
while ($links = db_fetch_object($query_result)) {
// $content .=  $links;
}
&lt;/code&gt;&lt;/pre&gt;]]></description> <content:encoded><![CDATA[<p>I feel a little dumb by not offering the use of <a
href="http://api.drupal.org/api/drupal/includes--database.inc/function/db_query/5" rel="nofollow">db_query</a> in <a
href="http://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html?trashed=1&#038;ids=8#comment-103093" rel="nofollow">my comment</a> above &#8211; that could have solved the problem Zmeharen had, and improve the script by extending the use of proper Drupal API&#8230;</p><p>Here&#8217;s an example of the proper use of db_query (with 2 substitution variables):</p><pre><code>
  $query = "SELECT nid, title, created FROM " .
    "{node} WHERE created >= '%d' " .
    " AND created < = '%d'";
  $query_result =  db_query($query, $start_time, $end_time);
</code></code></pre><p>For SELECT, we could then proceed with e.g.</p><pre><code>
while ($links = db_fetch_object($query_result)) {
  // $content .=  $links;
}
</code></pre>]]></content:encoded> </item> <item><title>By: zmeharen</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103129</link> <dc:creator><![CDATA[zmeharen]]></dc:creator> <pubDate>Sat, 19 Dec 2009 07:10:33 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103129</guid> <description><![CDATA[Hey Bogdan,
Still working on the script.
I was able to figure out the solution to my previous problem, since I created another connection to the drupal database outside the function I had to declare the global database link in the function. I added this in all areas that the global d_sequences was declared.
&lt;blockquote&gt;
$d_sequences = $GLOBALS[&quot;d_sequences&quot;];
$link_drupal = $GLOBALS[&quot;link_drupal&quot;];
&lt;/blockquote&gt;
I am now able to get the max id at least for users, but I think this should work for the other areas of the code too.
The second problem that I&#039;m running into is copying the Nuke users and moving them to the Drupal database. Initially in the script this was done with a single INSERT ... SELECT query. This is doable in the script if you have the same username and password for both databases. This was not going to work with me however. I decided then to divide the query into two sections.
First to execute the SELECT query on the Nuke database. Then loop through the results and INSERT them individually into the drupal database.
Here is that section of the code, and this is all I have so far.
&lt;pre&gt;&lt;code&gt;
$maxuid = get_max_id(&quot;users_uid&quot;);
message(&quot;Transferring User Details to Drupal.&quot;);
$query = &quot;SELECT user_id, username, user_password, user_email, user_regdate, user_lastvisit, user_email&quot;;
$query .= &quot; FROM $n_users&quot;;
$query .= &quot; WHERE 1=1&quot;;
for ($i = 0; $i &lt; count($user_array); $i++) {
$query .= &quot; AND username != &#039;$user_array[$i]&#039; &quot;;
}
message(&quot;$query&quot;);
$result = mysql_query($query, $link);
while ( $row = mysql_fetch_array($result, MYSQL_NUM) ) {
//set user id
$u_id = $row[0]+$maxuid+1;
$date_c = strtotime($row[4]);
//$date_created = UNIX_TIMESTAMP(STR_TO_DATE($row[4], &#039;%b %d, %Y&#039;));
$query = &quot;INSERT into $d_users(uid, name, pass, mail, created, access, status, init, data) &quot;;
$query .= &quot;VALUES ($u_id, &#039;$row[1]&#039;, &#039;$row[2]&#039;, &#039;$row[3]&#039;, $date_c, &#039;$row[5]&#039;, 1, &#039;$row[6]&#039;, &#039;$role_string&#039;) &quot;;
message(&quot; $query &quot;);
$result = mysql_query($query, $link_drupal);
if ($result) {
// ...
}
else {
failure(&quot;Users could not be added.&quot;);
echo &quot;Query used: $query ; \n&quot;;
echo &quot;Error returned by MySQL: (&quot; . mysql_errno() . &quot;) &quot; . mysql_error() . &quot; \n&quot;;
exit();
}
}
&lt;/code&gt;&lt;/pre&gt;]]></description> <content:encoded><![CDATA[<p>Hey Bogdan,</p><p>Still working on the script.</p><p>I was able to figure out the solution to my previous problem, since I created another connection to the drupal database outside the function I had to declare the global database link in the function. I added this in all areas that the global d_sequences was declared.</p><blockquote><p> $d_sequences = $GLOBALS["d_sequences"];<br
/> $link_drupal = $GLOBALS["link_drupal"];</p></blockquote><p>I am now able to get the max id at least for users, but I think this should work for the other areas of the code too.</p><p>The second problem that I&#8217;m running into is copying the Nuke users and moving them to the Drupal database. Initially in the script this was done with a single INSERT &#8230; SELECT query. This is doable in the script if you have the same username and password for both databases. This was not going to work with me however. I decided then to divide the query into two sections.</p><p>First to execute the SELECT query on the Nuke database. Then loop through the results and INSERT them individually into the drupal database.</p><p>Here is that section of the code, and this is all I have so far.</p><pre><code>
$maxuid = get_max_id("users_uid");
message("Transferring User Details to Drupal.");
$query = "SELECT user_id, username, user_password, user_email, user_regdate, user_lastvisit, user_email";
$query .= " FROM $n_users";
$query .= " WHERE 1=1";
for ($i = 0; $i < count($user_array); $i++) {
	$query .= " AND username != '$user_array[$i]' ";
}
message("$query");
$result = mysql_query($query, $link);
while ( $row = mysql_fetch_array($result, MYSQL_NUM) ) {
	//set user id
	$u_id = $row[0]+$maxuid+1;
	$date_c = strtotime($row[4]);
	//$date_created = UNIX_TIMESTAMP(STR_TO_DATE($row[4], '%b %d, %Y'));
	$query = "INSERT into $d_users(uid, name, pass, mail, created, access, status, init, data) ";
	$query .= "VALUES ($u_id, '$row[1]', '$row[2]', '$row[3]', $date_c, '$row[5]', 1, '$row[6]', '$role_string') ";
	message(" $query ");
	$result = mysql_query($query, $link_drupal);
	if ($result) {
		// ...
	}
	else {
		failure("Users could not be added.");
		echo "Query used: $query ; \n";
		echo "Error returned by MySQL: (" . mysql_errno() . ") " . mysql_error() . " \n";
		exit();
	}
}
</code></code></pre>]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103095</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 15 Dec 2009 22:16:38 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103095</guid> <description><![CDATA[You can send the updated script to me at &lt;strong&gt;webmaster _at_ bogdan.org.ua&lt;/strong&gt;, I&#039;ll post it here within a few days.
Your problem is similar to what is discussed in comments 65-68 on this page. This shouldn&#039;t be happening for Drupal 5. However, you could try using my suggestions in comments 65-68 (from comment 68, for users, you would only need to set sequences.users_uid to whatever is the maximum or maximum+1 of the users table).]]></description> <content:encoded><![CDATA[<p>You can send the updated script to me at <strong>webmaster _at_ bogdan.org.ua</strong>, I&#8217;ll post it here within a few days.</p><p>Your problem is similar to what is discussed in comments 65-68 on this page. This shouldn&#8217;t be happening for Drupal 5. However, you could try using my suggestions in comments 65-68 (from comment 68, for users, you would only need to set sequences.users_uid to whatever is the maximum or maximum+1 of the users table).</p> ]]></content:encoded> </item> <item><title>By: zmeharen</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103094</link> <dc:creator><![CDATA[zmeharen]]></dc:creator> <pubDate>Tue, 15 Dec 2009 21:57:00 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103094</guid> <description><![CDATA[Thanks for the quick reply Bogden,
Thats exactly the approach i made. I was easily able to find all insert and update queries to adjust to the drupal database. Where do I post my final working version?
I think I&#039;ve done all I could now I&#039;m still stuck at the beginning and I&#039;m not sure why.
Here&#039;s what the script has done and the error I recieved.
Giving blank user names a default value (their login)
UPDATE d*******1.nuke_users set name=username where name=&#039;&#039;
Default values set..(1 rows affected)
MySQL Error: Max ID for users_uid could not be retrieved
Back To Main?
Query used to get the Max ID: SELECT id FROM d*******7.sequences WHERE name=&#039;users_uid&#039; ; Error returned by MySQL: (0)
I&#039;ve placed the *** for the database names for safety.
Here is the code I&#039;ve changed in the get_max_id function:
&lt;code&gt;
function get_max_id($field)
{
//message(&quot;Getting Max ID for $field&quot;);
$d_sequences = $GLOBALS[&quot;d_sequences&quot;];
$query = &quot;SELECT id FROM $d_sequences WHERE name=&#039;$field&#039;&quot;;
$result = mysql_query($query, $link_drupal);
if ($row = mysql_fetch_object($result))
{
//success(&quot;Max ID for $field retrieved!&quot;);
return($row-&gt;id);
}
else
{
failure(&quot;MySQL Error: Max ID for $field could not be retrieved&quot;);
echo &quot; Query used to get the Max ID: $query ; \n&quot;;
echo &quot; Error returned by MySQL: (&quot; . mysql_errno() . &quot;) &quot; . mysql_error() . &quot; \n&quot;;
exit();
}
}
&lt;/code&gt;
As you can see i&#039;ve changed the $link to $link_drupal.]]></description> <content:encoded><![CDATA[<p>Thanks for the quick reply Bogden,</p><p>Thats exactly the approach i made. I was easily able to find all insert and update queries to adjust to the drupal database. Where do I post my final working version?</p><p>I think I&#8217;ve done all I could now I&#8217;m still stuck at the beginning and I&#8217;m not sure why.</p><p>Here&#8217;s what the script has done and the error I recieved.</p><p>Giving blank user names a default value (their login)<br
/> UPDATE d*******1.nuke_users set name=username where name=&#8221;<br
/> Default values set..(1 rows affected)<br
/> MySQL Error: Max ID for users_uid could not be retrieved<br
/> Back To Main?<br
/> Query used to get the Max ID: SELECT id FROM d*******7.sequences WHERE name=&#8217;users_uid&#8217; ; Error returned by MySQL: (0)</p><p>I&#8217;ve placed the *** for the database names for safety.</p><p>Here is the code I&#8217;ve changed in the get_max_id function:</p><p><code><br
/> function get_max_id($field)<br
/> {<br
/> //message("Getting Max ID for $field");<br
/> $d_sequences = $GLOBALS["d_sequences"];<br
/> $query = "SELECT id FROM $d_sequences WHERE name='$field'";<br
/> $result = mysql_query($query, $link_drupal);<br
/> if ($row = mysql_fetch_object($result))<br
/> {<br
/> //success("Max ID for $field retrieved!");<br
/> return($row-&gt;id);<br
/> }<br
/> else<br
/> {<br
/> failure("MySQL Error: Max ID for $field could not be retrieved");<br
/> echo " Query used to get the Max ID: $query ; \n";<br
/> echo " Error returned by MySQL: (" . mysql_errno() . ") " . mysql_error() . " \n";<br
/> exit();<br
/> }<br
/> }<br
/> </code></p><p>As you can see i&#8217;ve changed the $link to $link_drupal.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103093</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 15 Dec 2009 20:54:38 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103093</guid> <description><![CDATA[This should be easy.
First, in addition to these:
&lt;blockquote&gt;$host = &quot;localhost&quot;; //Host address for MySQL
$username = &quot;root&quot;; //Username to connect to MySQL
$password = &quot;&quot;; //Password to connect to MySQL
&lt;/blockquote&gt;
add something like
&lt;blockquote&gt;$host_drupal = &quot;localhost&quot;; //Host address for Drupal MySQL
$username_drupal = &quot;root&quot;; //Username to connect to Drupal MySQL
$password_drupal = &quot;&quot;; //Password to connect to Drupal MySQL
&lt;/blockquote&gt;
It might be nice to rename $host and company into $host_nuke, ...
Then, around lines 268-282, modify the code to connect to 2 databases, and store an extra database link in e.g. $link_drupal variable.
After that, you will have to look for each and every MySQL $query to modify it, so that is uses either $link[_nuke] or $link_drupal.
I&#039;m not doing that myself, as I am currently very badly pressed for time, and wouldn&#039;t be able to test the modified version anyway. However, feel free to ask if you encounter any problems while modifying the script.
Also, please do not forget to share your final working version.]]></description> <content:encoded><![CDATA[<p>This should be easy.</p><p>First, in addition to these:</p><blockquote><p>$host = &#8220;localhost&#8221;; //Host address for MySQL<br
/> $username = &#8220;root&#8221;; //Username to connect to MySQL<br
/> $password = &#8220;&#8221;; //Password to connect to MySQL</p></blockquote><p>add something like</p><blockquote><p>$host_drupal = &#8220;localhost&#8221;; //Host address for Drupal MySQL<br
/> $username_drupal = &#8220;root&#8221;; //Username to connect to Drupal MySQL<br
/> $password_drupal = &#8220;&#8221;; //Password to connect to Drupal MySQL</p></blockquote><p>It might be nice to rename $host and company into $host_nuke, &#8230;</p><p>Then, around lines 268-282, modify the code to connect to 2 databases, and store an extra database link in e.g. $link_drupal variable.</p><p>After that, you will have to look for each and every MySQL $query to modify it, so that is uses either $link[_nuke] or $link_drupal.</p><p>I&#8217;m not doing that myself, as I am currently very badly pressed for time, and wouldn&#8217;t be able to test the modified version anyway. However, feel free to ask if you encounter any problems while modifying the script.</p><p>Also, please do not forget to share your final working version.</p> ]]></content:encoded> </item> <item><title>By: zmeharen</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-103092</link> <dc:creator><![CDATA[zmeharen]]></dc:creator> <pubDate>Tue, 15 Dec 2009 20:37:31 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-103092</guid> <description><![CDATA[Hey Bogdan and/or Waldo
I&#039;m making my first migration from Nuke 7.5 to drupal 5 and hopefully next to 6 from there.
I love the migrate script and it seems to be very handy. My main object is to move the users and articles/stories.
The problem I&#039;m having is with the database connections. Your script assumes that there is only one MySql host username and password for both nuke and drupal. However my domain host has my drupal and nuke databases with different user names and passwords. I attempted to add the same users and passwords in each but when I create new users I&#039;m not given permission to specify the username and when I attempt to change the password I get massive errors.
The script is able to connect to the nuke database but the drupal database being seperate is the issue.
My next option is to change the migrate code to reflect the two different databases and their respective usernames. I think I have a general idea just by reading the code but if you can instruct me as to what areas need to have what changed so I don&#039;t miss anything it would be greatly appreciated.
Thank You.
Zmeharen]]></description> <content:encoded><![CDATA[<p>Hey Bogdan and/or Waldo</p><p>I&#8217;m making my first migration from Nuke 7.5 to drupal 5 and hopefully next to 6 from there.</p><p>I love the migrate script and it seems to be very handy. My main object is to move the users and articles/stories.</p><p>The problem I&#8217;m having is with the database connections. Your script assumes that there is only one MySql host username and password for both nuke and drupal. However my domain host has my drupal and nuke databases with different user names and passwords. I attempted to add the same users and passwords in each but when I create new users I&#8217;m not given permission to specify the username and when I attempt to change the password I get massive errors.</p><p>The script is able to connect to the nuke database but the drupal database being seperate is the issue.</p><p>My next option is to change the migrate code to reflect the two different databases and their respective usernames. I think I have a general idea just by reading the code but if you can instruct me as to what areas need to have what changed so I don&#8217;t miss anything it would be greatly appreciated.</p><p>Thank You.</p><p>Zmeharen</p> ]]></content:encoded> </item> <item><title>By: Waldo</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102688</link> <dc:creator><![CDATA[Waldo]]></dc:creator> <pubDate>Sun, 01 Nov 2009 22:20:04 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102688</guid> <description><![CDATA[Hey-- if/when you do get it working for d6, can you post your modified script for more people to use?
Send to Bogdan and/or post here:
https://drupal.org/node/498
Thx!
W]]></description> <content:encoded><![CDATA[<p>Hey&#8211; if/when you do get it working for d6, can you post your modified script for more people to use?</p><p>Send to Bogdan and/or post here:</p><p><a
href="https://drupal.org/node/498" rel="nofollow">https://drupal.org/node/498</a></p><p>Thx!</p><p>W</p> ]]></content:encoded> </item> <item><title>By: catella</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102594</link> <dc:creator><![CDATA[catella]]></dc:creator> <pubDate>Tue, 20 Oct 2009 12:41:32 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102594</guid> <description><![CDATA[Thanks!!! It worked (for users) I&#039;m trying to understand what&#039;s was wrong with stories and forum....
Bye and thanks again!]]></description> <content:encoded><![CDATA[<p>Thanks!!! It worked (for users) I&#8217;m trying to understand what&#8217;s was wrong with stories and forum&#8230;.<br
/> Bye and thanks again!</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102592</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 20 Oct 2009 10:57:22 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102592</guid> <description><![CDATA[Here&#039;s what I have:
CREATE TABLE IF NOT EXISTS `sequences` (
`name` varchar(255) NOT NULL default &#039;&#039;,
`id` int(10) unsigned NOT NULL default &#039;0&#039;,
PRIMARY KEY  (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sequences`
--
INSERT INTO `sequences` (`name`, `id`) VALUES
(&#039;menu_mid&#039;, 140),
(&#039;users_uid&#039;, 84),
(&#039;vocabulary_vid&#039;, 2),
(&#039;node_nid&#039;, 265),
(&#039;node_revisions_vid&#039;, 265),
(&#039;i18n_node_trid&#039;, 4),
(&#039;aggregator_category_cid&#039;, 5),
(&#039;aggregator_feed_fid&#039;, 15),
(&#039;aggregator_item_iid&#039;, 1697853),
(&#039;comments_cid&#039;, 440),
(&#039;term_data_tid&#039;, 24),
(&#039;i18n_blocks_delta&#039;, 1);
I&#039;m not sure if you have to pre-populate the table with some values, but it won&#039;t hurt if you do - just set all the values to whatever is the maximum of the mentioned ID.]]></description> <content:encoded><![CDATA[<p>Here&#8217;s what I have:</p><p>CREATE TABLE IF NOT EXISTS `sequences` (<br
/> `name` varchar(255) NOT NULL default &#8221;,<br
/> `id` int(10) unsigned NOT NULL default &#8217;0&#8242;,<br
/> PRIMARY KEY  (`name`)<br
/> ) ENGINE=MyISAM DEFAULT CHARSET=utf8;</p><p>&#8211;<br
/> &#8211; Dumping data for table `sequences`<br
/> &#8211;</p><p>INSERT INTO `sequences` (`name`, `id`) VALUES<br
/> (&#8216;menu_mid&#8217;, 140),<br
/> (&#8216;users_uid&#8217;, 84),<br
/> (&#8216;vocabulary_vid&#8217;, 2),<br
/> (&#8216;node_nid&#8217;, 265),<br
/> (&#8216;node_revisions_vid&#8217;, 265),<br
/> (&#8216;i18n_node_trid&#8217;, 4),<br
/> (&#8216;aggregator_category_cid&#8217;, 5),<br
/> (&#8216;aggregator_feed_fid&#8217;, 15),<br
/> (&#8216;aggregator_item_iid&#8217;, 1697853),<br
/> (&#8216;comments_cid&#8217;, 440),<br
/> (&#8216;term_data_tid&#8217;, 24),<br
/> (&#8216;i18n_blocks_delta&#8217;, 1);</p><p>I&#8217;m not sure if you have to pre-populate the table with some values, but it won&#8217;t hurt if you do &#8211; just set all the values to whatever is the maximum of the mentioned ID.</p> ]]></content:encoded> </item> <item><title>By: catella</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102591</link> <dc:creator><![CDATA[catella]]></dc:creator> <pubDate>Tue, 20 Oct 2009 10:27:07 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102591</guid> <description><![CDATA[Thanks for the quick answer. I think the easiest way for me is create the table and then delete it, but.....
Can you tell me the structure of the table sequences?? Sorry but I&#039;m new for Drupal....]]></description> <content:encoded><![CDATA[<p>Thanks for the quick answer. I think the easiest way for me is create the table and then delete it, but&#8230;..<br
/> Can you tell me the structure of the table sequences?? Sorry but I&#8217;m new for Drupal&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102590</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 20 Oct 2009 10:08:36 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102590</guid> <description><![CDATA[You have 3 options:
- migrate to Drupal 5 first, then upgrade to Drupal 6
- modify the script
- solution #3 (at the very bottom of this comment)
To modify the script, you will only need to know this:
&lt;a href=&quot;http://drupal.org/node/114774#db_last_insert_id&quot; rel=&quot;nofollow&quot;&gt;http://drupal.org/node/114774#db_last_insert_id&lt;/a&gt;
It is clear that set_max_id() function is now obsolete, and get_max_id() will have to be modified (I believe one could either call Drupal&#039;s db_last_insert_id(), or just SELECT the ID column, ORDERED BY ID DESC).
Alternatively, you can manually create the &quot;sequences&quot; table in your Drupal 6 database (preserving the structure it had in Drupal 5), run the import (if there are no other errors), then just delete the sequences table you created.]]></description> <content:encoded><![CDATA[<p>You have 3 options:<br
/> - migrate to Drupal 5 first, then upgrade to Drupal 6<br
/> - modify the script<br
/> - solution #3 (at the very bottom of this comment)</p><p>To modify the script, you will only need to know this:<br
/> <a
href="http://drupal.org/node/114774#db_last_insert_id" rel="nofollow">http://drupal.org/node/114774#db_last_insert_id</a></p><p>It is clear that set_max_id() function is now obsolete, and get_max_id() will have to be modified (I believe one could either call Drupal&#8217;s db_last_insert_id(), or just SELECT the ID column, ORDERED BY ID DESC).</p><p>Alternatively, you can manually create the &#8220;sequences&#8221; table in your Drupal 6 database (preserving the structure it had in Drupal 5), run the import (if there are no other errors), then just delete the sequences table you created.</p> ]]></content:encoded> </item> <item><title>By: catella</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-102589</link> <dc:creator><![CDATA[catella]]></dc:creator> <pubDate>Tue, 20 Oct 2009 09:27:26 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-102589</guid> <description><![CDATA[Hi I&#039;m trying to use the migrate.php script to leave phpnuke and move everything (almost) in Drupal 6.14, when I run the script it says &lt;i&gt;Query used to get the Max ID: SELECT id FROM xxxx.sequences WHERE name=&#039;users_uid&#039; ; Error returned by MySQL: (1146) Table &#039;xxxx.sequences&#039; doesn&#039;t exist &lt;/i&gt; I&#039;ve seen that this table doesn&#039;t exist anymore in version later than 6.....
How can I do?
Thanks]]></description> <content:encoded><![CDATA[<p>Hi I&#8217;m trying to use the migrate.php script to leave phpnuke and move everything (almost) in Drupal 6.14, when I run the script it says <i>Query used to get the Max ID: SELECT id FROM xxxx.sequences WHERE name=&#8217;users_uid&#8217; ; Error returned by MySQL: (1146) Table &#8216;xxxx.sequences&#8217; doesn&#8217;t exist </i> I&#8217;ve seen that this table doesn&#8217;t exist anymore in version later than 6&#8230;..<br
/> How can I do?<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: David L</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-86930</link> <dc:creator><![CDATA[David L]]></dc:creator> <pubDate>Tue, 11 Nov 2008 12:56:20 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-86930</guid> <description><![CDATA[Disregard my previous post.. I did an install of Drupal 5.12, and the conversion worked! I had an error that the users could not be imported, but found that they had been brought into the system.  I then changed the url to =stories to move to the second step.
cheers,
David.]]></description> <content:encoded><![CDATA[<p>Disregard my previous post.. I did an install of Drupal 5.12, and the conversion worked! I had an error that the users could not be imported, but found that they had been brought into the system.  I then changed the url to =stories to move to the second step.</p><p>cheers,<br
/> David.</p> ]]></content:encoded> </item> <item><title>By: David L</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-86901</link> <dc:creator><![CDATA[David L]]></dc:creator> <pubDate>Mon, 10 Nov 2008 13:17:39 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-86901</guid> <description><![CDATA[G&#039;day, I&#039;m another PHPNuke user (8.1) looking to make the leap to Drupal 6.x. If someone is successfully able to make the migration work on their own site, I&#039;d love to know how you did it.
cheers,
David.]]></description> <content:encoded><![CDATA[<p>G&#8217;day, I&#8217;m another PHPNuke user (8.1) looking to make the leap to Drupal 6.x. If someone is successfully able to make the migration work on their own site, I&#8217;d love to know how you did it.</p><p>cheers,<br
/> David.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/08/php-nuke-6-06-5-to-drupal-4-7-x5-x-migration-conversion.html#comment-78364</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Fri, 15 Aug 2008 13:21:11 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/08/php-nuke-60-to-drupal-473-migration-conversion.html#comment-78364</guid> <description><![CDATA[Maniaka,
no new version. If you are willing to create such a version, I&#039;ll do my best to help you. Also, if you could come up with the list of changes necessary to make the current script work for nuke7-2-drupal6 conversion, I &lt;i&gt;might&lt;/i&gt; modify the script appropriately for you to test.]]></description> <content:encoded><![CDATA[<p>Maniaka,</p><p>no new version. If you are willing to create such a version, I&#8217;ll do my best to help you. Also, if you could come up with the list of changes necessary to make the current script work for nuke7-2-drupal6 conversion, I <i>might</i> modify the script appropriately for you to test.</p> ]]></content:encoded> </item> </channel> </rss>