QuoteConverting topic notifications... Unsuccessful!
This query:
INSERT INTO `smf`.smf_log_notify
(ID_MEMBER, ID_TOPIC)
VALUES ('3', '2'),
('2', '3'),
('3', '4'),
('10', '10'),
[ed. ....]
('12', '360'),
('16', '360'),
('12', '361');
Caused the error:
Duplicate entry '3-2-0' for key 1
/******************************************************************************/
--- Converting topic notifications...
/******************************************************************************/
TRUNCATE {$to_prefix}log_notify;
---* {$to_prefix}log_notify
SELECT user_id AS ID_MEMBER, topic_id AS ID_TOPIC
FROM {$from_prefix}topics_watch
GROUP BY ID_MEMBER, ID_TOPIC;
---*
/******************************************************************************/Quote from: Ferny on August 23, 2006, 06:12:56 PM
I get the same errors as rejetto. I'll use his fixed sql file to begin my tests.
133
* SUBSTRING(u.user_email AS emailAddress, 1, 255) AS emailAddress,
# SUBSTRING(u.user_email, 1, 255) AS emailAddress,
135
* SUBSTRING(u.user_msnm AS MSN, 1, 255) AS MSN,
# SUBSTRING(u.user_msnm, 1, 255) AS MSN,
136
* SUBSTRING(u.user_aim AS AIM, 1, 16) AS AIM,
# SUBSTRING(u.user_aim, 1, 16) AS AIM,
367
* SUBSTRING(uf.username AS fromName, 1, 255) AS fromName,
# SUBSTRING(uf.username, 1, 255) AS fromName,
* Software Version: SMF 1.1 RC3 */******************************************************************************/
--- Converting groups...
/******************************************************************************/
---* {$to_prefix}membergroups
SELECT
SUBSTRING(CONCAT('phpBB ', group_name), 1, 255) AS groupName,
-1 AS minPosts, '' AS stars, '' AS onlineColor
FROM {$from_prefix}groups
WHERE group_single_user = 0;
---*
/******************************************************************************/
--- Converting smileys...
/******************************************************************************/
---# Copying over smilies directory...
---{
function copy_smilies($source, $dest)
{
if (!is_dir($source) || !($dir = opendir($source)))
return;
while ($file = readdir($dir))
{
if ($file == '.' || $file == '..')
continue;
// If we have a directory create it on the destination and copy contents into it!
if (is_dir($source . '/' . $file))
{
@mkdir($dest . '/' . $file, 0777);
copy_dir($source . '/' . $file, $dest . '/' . $file);
}
else
copy($source . '/' . $file, $dest . '/' . $file);
}
closedir($dir);
}
// Find the path for phpBB smileys.
$request = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'smilies_path'
LIMIT 1");
list ($phpbb_smilies_path) = mysql_fetch_row($request);
mysql_free_result($request);
// Find the path for SMF smileys.
$request = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'smileys_dir'
LIMIT 1");
list ($smf_smileys_dir) = mysql_fetch_row($request);
mysql_free_result($request);
$phpbb_smilies_path = $_POST['path_from'] . '/' . $phpbb_smilies_path;
copy_smilies($phpbb_smilies_path, $smf_smileys_dir . "/default");
---}
---#
---* {$to_prefix}smileys
SELECT code AS code, smile_url AS filename, emoticon AS description
FROM {$from_prefix}smilies;
---*Quote from: MrPrise on August 24, 2006, 12:13:02 PM
The converter script removes the first character of the signatures.
$row['avatar'] = substr('gallery/' . $row['avatar'], 1, 255);$row['signature'] = substr($row['signature'], 1, 65534);QuoteConverting topics... Unsuccessful!
This query:
INSERT INTO `acentermedia_main`.smf_topics
(ID_TOPIC, isSticky, ID_FIRST_MSG, ID_LAST_MSG, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_BOARD, ID_POLL, locked, numReplies, numViews)
VALUES ('3', '0', '3', '32', '2', '2', '2', '', '0', '1', '370'),
('4', '0', '4', '118', '2', '2', '1', '', '0', '10', '1318'),
('5', '0', '6', '81', '3', '2', '2', '', '0', '27', '2207'),
('6', '0', '14', '2822', '3', '27', '2', '', '0', '34', '5462'),
('7', '0', '19', '139', '4', '4', '6', '', '0', '2', '483'),
('8', '0', '23', '328', '3', '3', '2', '', '0', '6', '815'),
('9', '0', '24', '102', '3', '4', '7', '', '0', '3', '48'),
('10', '0', '42', '46', '2', '4', '6', '', '0', '1', '292'),
('12', '1', '59', '2774', '3', '4', '2', '', '0', '9', '1237'),
('13', '0', '87', '280', '4', '4', '3', '', '1', '83', '5912'),
Caused the error:
Incorrect integer value: '' for column 'ID_POLL' at row 1
Quote from: Ferny on August 24, 2006, 12:59:58 PMThanks for the fix. I have a new problem. The convert doesn't try to convert birthdays.
Not only there but also in the avatar field of members table, making avatars not to work (only if avatars are type 3, those which are in phpBB's gallery)
The following changes in sql file should fix it
QuoteAfter the convert finished, it starts to "Recalculating forum statistics..." It takes a very long time, maybe forever?
Quote from: Ferny on August 24, 2006, 04:04:33 PMAhh. Now, it is ok. Thank you!QuoteAfter the convert finished, it starts to "Recalculating forum statistics..." It takes a very long time, maybe forever?
It's a bug, see my post about convert.php above ;-)
Quote from: Person on August 24, 2006, 01:26:08 PM
Still this error :(QuoteConverting topics... Unsuccessful!
This query:
INSERT INTO `acentermedia_main`.smf_topics
(ID_TOPIC, isSticky, ID_FIRST_MSG, ID_LAST_MSG, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_BOARD, ID_POLL, locked, numReplies, numViews)
VALUES ('3', '0', '3', '32', '2', '2', '2', '', '0', '1', '370'),
('4', '0', '4', '118', '2', '2', '1', '', '0', '10', '1318'),
('5', '0', '6', '81', '3', '2', '2', '', '0', '27', '2207'),
('6', '0', '14', '2822', '3', '27', '2', '', '0', '34', '5462'),
('7', '0', '19', '139', '4', '4', '6', '', '0', '2', '483'),
('8', '0', '23', '328', '3', '3', '2', '', '0', '6', '815'),
('9', '0', '24', '102', '3', '4', '7', '', '0', '3', '48'),
('10', '0', '42', '46', '2', '4', '6', '', '0', '1', '292'),
('12', '1', '59', '2774', '3', '4', '2', '', '0', '9', '1237'),
('13', '0', '87', '280', '4', '4', '3', '', '1', '83', '5912'),
Caused the error:
Incorrect integer value: '' for column 'ID_POLL' at row 1
:(
/******************************************************************************/
--- Converting topics...
/******************************************************************************/
TRUNCATE {$to_prefix}topics;
TRUNCATE {$to_prefix}log_topics;
TRUNCATE {$to_prefix}log_boards;
TRUNCATE {$to_prefix}log_mark_read;
---* {$to_prefix}topics
SELECT
t.topic_id AS ID_TOPIC, t.topic_type = 1 AS isSticky,
t.topic_first_post_id AS ID_FIRST_MSG, t.topic_last_post_id AS ID_LAST_MSG,
t.topic_poster AS ID_MEMBER_STARTED, p.poster_id AS ID_MEMBER_UPDATED,
t.forum_id AS ID_BOARD, v.vote_id AS ID_POLL, t.topic_status = 1 AS locked,
t.topic_replies AS numReplies, t.topic_views AS numViews
FROM {$from_prefix}topics AS t
LEFT JOIN {$from_prefix}posts AS p ON (p.post_id = t.topic_last_post_id)
LEFT JOIN {$from_prefix}vote_desc AS v ON (v.topic_id = t.topic_id)
/* // !!! WHERE t.topic_moved_id = 0 */
GROUP BY t.topic_id
HAVING ID_FIRST_MSG != 0
AND ID_LAST_MSG != 0;
---*v.vote_id AS ID_POLLIF(v.vote_id <> 0, v.vote_id, 0) AS ID_POLL/******************************************************************************/
--- Converting posts (this may take some time)...
/******************************************************************************/
TRUNCATE {$to_prefix}messages;
---* {$to_prefix}messages 200
---{
$row['body'] = preg_replace('~\[size=([789]|[012]\d)\]~is', '[size=$1px]', $row['body']);
---}
SELECT
p.post_id AS ID_MSG, p.topic_id AS ID_TOPIC, p.post_time AS posterTime,
p.poster_id AS ID_MEMBER,
SUBSTRING(IFNULL(u.user_email, ''), 1, 255) AS posterEmail,
SUBSTRING(IF(IFNULL(pt.post_subject, '') = '', t.topic_title, pt.post_subject), 1, 255) AS subject,
SUBSTRING(IF(IFNULL(p.post_username, '') = '', u.username, p.post_username), 1, 255) AS posterName,
p.enable_smilies AS smileysEnabled, p.post_edit_time AS modifiedTime,
CONCAT_WS('.', CONV(SUBSTRING(p.poster_ip, 1, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 3, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 5, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 7, 2), 16, 10)) AS posterIP,
SUBSTRING(REPLACE(REPLACE(IF(pt.bbcode_uid = '', pt.post_text, REPLACE(REPLACE(REPLACE(pt.post_text, CONCAT(':u:', pt.bbcode_uid), ''), CONCAT(':1:', pt.bbcode_uid), ''), CONCAT(':', pt.bbcode_uid), '')), '\n', '<br />'), '"', '"'), 1, 65534) AS body,
p.forum_id AS ID_BOARD, '' AS modifiedName, 'xx' AS icon
FROM ({$from_prefix}posts AS p, {$from_prefix}posts_text AS pt, {$from_prefix}topics AS t)
LEFT JOIN {$from_prefix}users AS u ON (u.user_id = p.poster_id)
WHERE pt.post_id = p.post_id
AND t.topic_id = p.topic_id;
---*p.post_edit_time AS modifiedTimeIF(p.post_edit_time > 0, p.post_edit_time, 0) AS modifiedTimeQuoteConverting topic notifications... Unsuccessful!
This query:
GROUP BY ID_MEMBER, ID_TOPIC
LIMIT 0, 500;
Caused the error:
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 'GROUP BY ID_MEMBER, ID_TOPIC
LIMIT 0, 500' at line 1
/******************************************************************************/
--- Converting topic notifications...
/******************************************************************************/
TRUNCATE {$to_prefix}log_notify;
---* {$to_prefix}log_notify
SELECT user_id AS ID_MEMBER, topic_id AS ID_TOPIC
FROM {$from_prefix}topics_watch;
---*/******************************************************************************/
--- Converting topic notifications...
/******************************************************************************/
TRUNCATE {$to_prefix}log_notify;
---* {$to_prefix}log_notify
SELECT user_id AS ID_MEMBER, topic_id AS ID_TOPIC
FROM {$from_prefix}topics_watch;
GROUP BY ID_MEMBER, ID_TOPIC;
---*FROM {$from_prefix}topics_watch;/******************************************************************************/
--- Converting topic notifications...
/******************************************************************************/
TRUNCATE {$to_prefix}log_notify;
---* {$to_prefix}log_notify
SELECT user_id AS ID_MEMBER, topic_id AS ID_TOPIC
FROM {$from_prefix}topics_watch
GROUP BY ID_MEMBER, ID_TOPIC;
---*
An Error Has Occurred!
You were unable to login. Please check your cookie settings.QuotephpBB OK-SGmust be:
QuoteOK-SG
Converting posts (this may take some time)... Unsuccessful!
This query:
INSERT INTO `if_smf`.smf_messages
(ID_MSG, ID_TOPIC, posterTime, ID_MEMBER, posterEmail, subject, posterName, smileysEnabled, modifiedTime, posterIP, body, ID_BOARD, modifiedName, icon)
VALUES ('379072', '1949', '1126528814', '5863', '[email protected]', 'Ratchet & Clank vending machine', 'Demolition', '1', '', '70.56.201.95', 'U get sasha
<br />*inserts clank*', '6', '', 'xx'),
[...snip...]
Caused the error:
Duplicate entry '379072' for key 1
Quote from: Person on August 24, 2006, 06:09:00 PM
& another bug: At membergroups is prefix phpBB
Sample:QuotephpBB OK-SGmust be:QuoteOK-SG
SELECT
SUBSTRING(CONCAT('phpBB ', rank_title), 1, 255) AS groupName,
rank_image AS stars, IF(rank_special = 0, rank_min, -1) AS minPosts,
'' AS onlineColor
FROM {$from_prefix}ranks
ORDER BY rank_min;SELECT
SUBSTRING(rank_title, 1, 255) AS groupName,
rank_image AS stars, IF(rank_special = 0, rank_min, -1) AS minPosts,
'' AS onlineColor
FROM {$from_prefix}ranks
ORDER BY rank_min;QuoteConverting topic notifications... Unsuccessful!
This query:
INSERT INTO `forum`.smf_log_notify
(ID_MEMBER, ID_TOPIC)
VALUES ('2', '44'),
('3', '44'),
('6', '11'),
('6', '13'),
//snip
Caused the error:
Duplicate entry '2-44-0' for key 1
/******************************************************************************/
--- Converting topic notifications...
/******************************************************************************/
TRUNCATE {$to_prefix}log_notify;
---* {$to_prefix}log_notify
SELECT user_id AS ID_MEMBER, topic_id AS ID_TOPIC
FROM {$from_prefix}topics_watch
GROUP BY ID_MEMBER, ID_TOPIC;
---*
QuoteConverting members... Unsuccessful!
This query:
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm AS MSN, 1, 255) AS MSN,
SUBSTRING(u.user_aim AS AIM, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM `herbtalk_info_-_phpbb`.phpbb_users AS u
LEFT JOIN `herbtalk_info_-_phpbb`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `herbtalk_info_-_pmf`.smf_membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
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 'AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg
Quote from: pkeffect on August 25, 2006, 02:45:20 PMYes, but you will have corrupted private messages ... I'm waiting for fix ... ;)
No errors.
// Persist?
if (empty($db_persist))
mysql_connect($db_server, $db_user, $db_passwd);
else
mysql_pconnect($db_server, $db_user, $db_passwd);
// Persist?
if (empty($db_persist))
mysql_connect($db_server, $db_user, $db_passwd);
else
mysql_pconnect($db_server, $db_user, $db_passwd);
// UTF8
mysql_query("SET NAMES 'UTF8'");
mysql_query("SET CHARACTER SET 'UTF8'"); /******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type = 5 AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*/******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type = 5 AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'-1' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*$filename = $modSettings['custom_avatar_dir'] . '/' . $row['filename'];Quote from: pkeffect on August 25, 2006, 06:20:35 PM
Can I just run the part for the PM's alone and if so how would I go about doing that?
I would rather not go through eveything again.
--pk
Quote from: pkeffect on August 25, 2006, 06:20:35 PM
Can I just run the part for the PM's alone and if so how would I go about doing that?
/* ATTENTION: You don't need to run or use this file! The convert.php script does everything for you! */
/******************************************************************************/
---~ name: "phpBB2"
/******************************************************************************/
---~ version: "SMF 1.1 RC3"
---~ settings: "/extension.inc", "/config.php"
---~ defines: IN_PHPBB
---~ from_prefix: "`$dbname`.$table_prefix"
---~ table_test: "{$from_prefix}users"
/******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type = 5 AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'-1' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*
while ($row = mysql_fetch_assoc($request))
{
if ($row['attachmentType'] == 1)
$filename = $modSettings['custom_avatar_dir'] . '/' . $row['filename'];
else
$filename = getAttachmentFilename($row['filename'], $row['ID_ATTACH']);
// Probably not one of the converted ones, then?
if (!file_exists($filename))
continue;
$size = @getimagesize($filename);
if (!empty($size) && !empty($size[0]) && !empty($size[1]))
convert_query("
UPDATE {$to_prefix}attachments
SET
width = " . (int) $size[0] . ",
height = " . (int) $size[1] . "
WHERE ID_ATTACH = $row[ID_ATTACH]
LIMIT 1");
} while ($row = mysql_fetch_assoc($request))
{
if ($row['attachmentType'] == 1)
{
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'custom_avatar_dir'
LIMIT 1");
list ($custom_avatar_dir) = mysql_fetch_row($request2);
mysql_free_result($request2);
$filename = $custom_avatar_dir . '/' . $row['filename'];
}
else
$filename = getAttachmentFilename($row['filename'], $row['ID_ATTACH']);
// Probably not one of the converted ones, then?
if (!file_exists($filename))
continue;
$size = @getimagesize($filename);
$filesize = @filesize($filename);
if (!empty($size) && !empty($size[0]) && !empty($size[1]) && !empty($filesize))
convert_query("
UPDATE {$to_prefix}attachments
SET
size = " . (int) $filesize . ",
width = " . (int) $size[0] . ",
height = " . (int) $size[1] . "
WHERE ID_ATTACH = $row[ID_ATTACH]
LIMIT 1");
}/******************************************************************************/
--- Converting members...
/******************************************************************************/
TRUNCATE {$to_prefix}members;
TRUNCATE {$to_prefix}attachments;
---* {$to_prefix}members
---{
// Got the board timezone?
if (!isset($board_timezone))
{
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'board_timezone'
LIMIT 1");
list ($board_timezone) = mysql_fetch_row($request2);
mysql_free_result($request2);
// Find out where uploaded avatars go (attachments dir.)
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'attachmentUploadDir'
LIMIT 1");
list ($smf_attachments_dir) = mysql_fetch_row($request2);
mysql_free_result($request2);
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'avatar_path'
LIMIT 1");
$phpbb_avatar_upload_path = $_POST['path_from'] . '/' . mysql_result($request2, 0, 'config_value');
mysql_free_result($request2);
}
// timeOffset = phpBB user TZ - phpBB board TZ.
$row['timeOffset'] = $row['timeOffset'] - $board_timezone;
if ($row['user_avatar_type'] == 0)
$row['avatar'] = '';
// If the avatar type is uploaded (type = 1) copy avatar as an attachment with the correct name.
elseif ($row['user_avatar_type'] == 1 && strlen($row['avatar']) > 0)
{
$smf_avatar_filename = 'avatar_' . $row['ID_MEMBER'] . strrchr($row['avatar'], '.');
copy($phpbb_avatar_upload_path . '/' . $row['avatar'], $smf_attachments_dir . '/' . $smf_avatar_filename);
convert_query("
INSERT INTO {$to_prefix}attachments
(ID_MSG, ID_MEMBER, filename)
VALUES (0, $row[ID_MEMBER], SUBSTRING('" . addslashes($smf_avatar_filename) . "', 1, 255))");
$row['avatar'] = '';
}
elseif ($row['user_avatar_type'] == 3)
$row['avatar'] = substr('gallery/' . $row['avatar'], 0, 255);
unset($row['user_avatar_type']);
$row['signature'] = preg_replace('~\[size=([789]|[012]\d)\]~i', '[size=$1px]', $row['signature']);
if ($row['signature_uid'] != '')
$row['signature'] = preg_replace('~(:u:|:1:|:)' . preg_quote($row['signature_uid'], '~') . '~i', '', $row['signature']);
$row['signature'] = substr($row['signature'], 0, 65534);
unset($row['signature_uid']);
---}
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm, 1, 255) AS MSN,
SUBSTRING(u.user_aim, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM {$from_prefix}users AS u
LEFT JOIN {$from_prefix}ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN {$to_prefix}membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id;
---*/******************************************************************************/
--- Converting members...
/******************************************************************************/
TRUNCATE {$to_prefix}members;
TRUNCATE {$to_prefix}attachments;
---* {$to_prefix}members
---{
// Got the board timezone?
if (!isset($board_timezone))
{
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'board_timezone'
LIMIT 1");
list ($board_timezone) = mysql_fetch_row($request2);
mysql_free_result($request2);
// Find out where uploaded avatars go (uploaded avatars dir)
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'custom_avatar_dir'
LIMIT 1");
list ($custom_avatar_dir) = mysql_fetch_row($request2);
mysql_free_result($request2);
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'avatar_path'
LIMIT 1");
$phpbb_avatar_upload_path = $_POST['path_from'] . '/' . mysql_result($request2, 0, 'config_value');
mysql_free_result($request2);
}
// timeOffset = phpBB user TZ - phpBB board TZ.
$row['timeOffset'] = $row['timeOffset'] - $board_timezone;
if ($row['user_avatar_type'] == 0)
$row['avatar'] = '';
// If the avatar type is uploaded (type = 1) copy avatar with the correct name.
elseif ($row['user_avatar_type'] == 1 && strlen($row['avatar']) > 0)
{
$smf_avatar_filename = 'avatar_' . $row['ID_MEMBER'] . strrchr($row['avatar'], '.');
@copy($phpbb_avatar_upload_path . '/' . $row['avatar'], $custom_avatar_dir . '/' . $smf_avatar_filename);
convert_query("
INSERT INTO {$to_prefix}attachments
(ID_MSG, ID_MEMBER, filename, attachmentType)
VALUES (0, $row[ID_MEMBER], SUBSTRING('" . addslashes($smf_avatar_filename) . "', 1, 255), 1)");
$row['avatar'] = '';
}
elseif ($row['user_avatar_type'] == 3)
$row['avatar'] = substr('gallery/' . $row['avatar'], 0, 255);
unset($row['user_avatar_type']);
$row['signature'] = preg_replace('~\[size=([789]|[012]\d)\]~i', '[size=$1px]', $row['signature']);
if ($row['signature_uid'] != '')
$row['signature'] = preg_replace('~(:u:|:1:|:)' . preg_quote($row['signature_uid'], '~') . '~i', '', $row['signature']);
$row['signature'] = substr($row['signature'], 0, 65534);
unset($row['signature_uid']);
---}
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm, 1, 255) AS MSN,
SUBSTRING(u.user_aim, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM {$from_prefix}users AS u
LEFT JOIN {$from_prefix}ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN {$to_prefix}membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id;
---*/******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type = 5 AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'-1' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*/******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type = 0 AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'-1' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*/******************************************************************************/
--- Converting personal messages (step 2)...
/******************************************************************************/
TRUNCATE {$to_prefix}pm_recipients;
---* {$to_prefix}pm_recipients
SELECT
pm.privmsgs_id AS ID_PM, pm.privmsgs_to_userid AS ID_MEMBER,
pm.privmsgs_type IN (0,2,4)AS is_read, pm.privmsgs_type IN (2, 4) AS deleted,
'-1' AS labels
FROM ({$from_prefix}privmsgs AS pm, {$from_prefix}privmsgs_text AS pmt)
LEFT JOIN {$from_prefix}users AS uf ON (uf.user_id = pm.privmsgs_from_userid)
WHERE pmt.privmsgs_text_id = pm.privmsgs_id;
---*Converting...
Converting ranks... Successful.
Converting groups... Successful.
Converting members... Unsuccessful!
This query:
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm AS MSN, 1, 255) AS MSN,
SUBSTRING(u.user_aim AS AIM, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM `swapahome`.phpbb_users AS u
LEFT JOIN `swapahome`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `swapahome`.smf_membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
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 'AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessag' at line 9
Quote from: Ferny on August 27, 2006, 07:55:06 AMOh, sorry, I have did a mistake with correction ... in my uploaded file is correct ;)
Person, your last modification doesn't work. Maybe instead of pm.privmsgs_type = (0,2,4) should be pm.privmsgs_type IN (0,2,4)
?
I'll try with "IN"
pm.privmsgs_type IN (0,2,4)AS is_read is correct ;)
Quote from: kainelderan on August 31, 2006, 05:22:02 PM
I just converted over from phpBB2 and I'm now getting this error on my bridged Joomla.
Notice: Undefined index: custom_avatar_url in /var/www/html/si/silverfalls.org/SMF/Sources/Subs.php on line 3047
Can anyone help me fix this? I tried looking at the code in the Subs.php but I couldn't figure out where the problem was.
QuoteIMPORTANT: if you want to do this change, BEFORE converting your forum you should go to SMF control panel, and in Avatar settings you need to change this:
Upload avatars to... -> Specific directory
Upload directory -> [Select the directory you want]
This is necessary in order to create 'custom_avatar_dir' entry in settings table.
/******************************************************************************/
--- Converting members...
/******************************************************************************/
TRUNCATE {$to_prefix}members;
TRUNCATE {$to_prefix}attachments;
---* {$to_prefix}members
---{
// Got the board timezone?
if (!isset($board_timezone))
{
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'board_timezone'
LIMIT 1");
list ($board_timezone) = mysql_fetch_row($request2);
mysql_free_result($request2);
// Find out where uploaded avatars go
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'custom_avatar_enabled'
LIMIT 1");
if (mysql_num_rows($request2))
list ($custom_avatar_enabled) = mysql_fetch_row($request2);
else
$custom_avatar_enabled = false;
mysql_free_result($request2);
if ($custom_avatar_enabled)
{
// Custom avatar dir.
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'custom_avatar_dir'
LIMIT 1");
list ($avatar_dir) = mysql_fetch_row($request2);
$attachmentType = '1';
}
else
{
// Attachments dir.
$request2 = convert_query("
SELECT value
FROM {$to_prefix}settings
WHERE variable = 'attachmentUploadDir'
LIMIT 1");
list ($avatar_dir) = mysql_fetch_row($request2);
$attachmentType = '0';
}
mysql_free_result($request2);
$request2 = convert_query("
SELECT config_value
FROM {$from_prefix}config
WHERE config_name = 'avatar_path'
LIMIT 1");
$phpbb_avatar_upload_path = $_POST['path_from'] . '/' . mysql_result($request2, 0, 'config_value');
mysql_free_result($request2);
}
// timeOffset = phpBB user TZ - phpBB board TZ.
$row['timeOffset'] = $row['timeOffset'] - $board_timezone;
if ($row['user_avatar_type'] == 0)
$row['avatar'] = '';
// If the avatar type is uploaded (type = 1) copy avatar with the correct name.
elseif ($row['user_avatar_type'] == 1 && strlen($row['avatar']) > 0)
{
$smf_avatar_filename = 'avatar_' . $row['ID_MEMBER'] . strrchr($row['avatar'], '.');
@copy($phpbb_avatar_upload_path . '/' . $row['avatar'], $avatar_dir . '/' . $smf_avatar_filename);
convert_query("
INSERT INTO {$to_prefix}attachments
(ID_MSG, ID_MEMBER, filename, attachmentType)
VALUES (0, $row[ID_MEMBER], SUBSTRING('" . addslashes($smf_avatar_filename) . "', 1, 255), " . $attachmentType . ")");
$row['avatar'] = '';
}
elseif ($row['user_avatar_type'] == 3)
$row['avatar'] = substr('gallery/' . $row['avatar'], 0, 255);
unset($row['user_avatar_type']);
$row['signature'] = preg_replace('~\[size=([789]|[012]\d)\]~i', '[size=$1px]', $row['signature']);
if ($row['signature_uid'] != '')
$row['signature'] = preg_replace('~(:u:|:1:|:)' . preg_quote($row['signature_uid'], '~') . '~i', '', $row['signature']);
$row['signature'] = substr($row['signature'], 0, 65534);
unset($row['signature_uid']);
---}
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm, 1, 255) AS MSN,
SUBSTRING(u.user_aim, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM {$from_prefix}users AS u
LEFT JOIN {$from_prefix}ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN {$to_prefix}membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id;
---*/* // !!! WHERE t.topic_moved_id = 0 *Quote from: MrPrise on August 31, 2006, 09:00:03 AM
Thanks for all the fix.
There is a bug in the avatar conversion. If the avatar has the size bbcode the size value will not has the pt after the number as SMF wants it.
array(
'tag' => 'size',
'type' => 'unparsed_equals',
'test' => '[\d]\]',
// !!! line-height
'before' => '<font size="$1" style="line-height: 1.3em;">',
'after' => '</font>',
), array(
'tag' => 'size',
'type' => 'unparsed_equals',
'test' => '([\d]{1,2})\]',
// !!! line-height
'before' => '<font style="font-size: $1px; line-height: 1.3em;">',
'after' => '</font>',
), elseif ($row['config_name'] == 'record_users_online') elseif ($row['config_name'] == 'record_online_users')ID_ATTACH Descending ID_THUMB ID_MSG ID_MEMBER attachmentType filename size downloads width height 68 0 192 0 3 Who is this again.jpg_thumb 206866 0 400 300 67 68 192 0 0 Who is this again.jpg 600535 1 2048 1536 66 0 190 0 0 Ikea Job Interview.jpg 39305 2 0 0 65 0 178 0 0 P7050025.jpg 282518 1 0 0 64 0 177 0 0 rotk_hobbitfoot.jpg 138667 0 0 0 |
Quote from: J J Williams on September 14, 2006, 01:30:55 PMdaft question
A mod of phpBB which changes the structure like CH is likely needed to be removed :P
Converting ranks... Successful.
Converting groups... Successful.
Converting members... Unsuccessful!
This query:
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm AS MSN, 1, 255) AS MSN,
SUBSTRING(u.user_aim AS AIM, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM `forum`.phpbb_users AS u
LEFT JOIN `forum`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `site`.smf_membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
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 'AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessag' at line 9
Converting...
Converting ranks... Successful.
Converting groups... Successful.
Converting smileys...
// Persist?
if (empty($db_persist))
mysql_connect($db_server, $db_user, $db_passwd);
else
mysql_pconnect($db_server, $db_user, $db_passwd); // Persist?
if (empty($db_persist))
mysql_connect($db_server, $db_user, $db_passwd);
else
mysql_pconnect($db_server, $db_user, $db_passwd);
// UTF8
mysql_query("SET NAMES UTF8");
Converting topics... Unsuccessful!
This query:
INSERT INTO `site`.smf_topics
(ID_TOPIC, isSticky, ID_FIRST_MSG, ID_LAST_MSG, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_BOARD, ID_POLL, locked, numReplies, numViews)
VALUES ('3', '0', '6', '6', '4', '4', '7', '0', '1', '0', '460'),
('4', '0', '15', '4212', '4', '4', '7', '0', '1', '2', '2770'),
('5', '0', '20', '20', '4', '4', '7', '0', '1', '0', '467'),
('6', '0', '21', '21', '4', '4', '2', '0', '1', '0', '539'),
('7', '0', '22', '1486', '6', '16', '6', '0', '0', '21', '1037'),
('8', '0', '23', '697', '6', '109', '5', '0', '0', '17', '956'),
('10', '0', '29', '29', '4', '4', '9', '0', '1', '0', '304'),
('11', '0', '32', '6598', '9', '166', '6', '0', '0', '31', '1559'),
('12', '0', '34', '34', '4', '4', '4', '0', '1', '0', '392'),
('13', '0', '38', '38', '2', '2', '2', '0', '1', '0', '3109'),
('14', '0', '43', '308', '8', '36', '3', '0', '0', '19', '892'),
('16', '0', '47', '49', '8', '8', '5', '0', '0', '2', '314'),
('17', '0', '64', '3668', '8', '93', '5', '0', '0', '41', '2599'),
('19', '0', '99', '99', '6', '6', '3', '0', '0', '0', '225'),
('20', '0', '101', '109', '6', '6', '3', '0', '0', '5', '343'),
('21', '0', '103', '105', '16', '2', '5', '0', '1', '1', '313'),
('22', '0', '108', '6091', '4', '93', '12', '0', '1', '9', '441'),
('23', '0', '110', '407', '6', '6', '8', '0', '0', '9', '66'),
('24', '0', '111', '111', '6', '6', '3', '0', '0', '0', '197'),
('25', '0', '113', '113', '6', '6', '3', '0', '0', '0', '201'),
('26', '0', '119', '349', '6', '7', '3', '0', '0', '4', '299'),
...
('564', '0', '4518', '4524', '166', '193', '3', '0', '0', '3', '100'),
('565', '0', '4522', '4598', '93', '166', '8', '0', '0', '5', '40'),
('566', '0', '4554', '4566', '166', '193', '3', '0', '0', '1', '78'),
('567', '0', '4556', '4561', '280', '105', '9', '0', '0', '2', '101'),
('568', '0', '4557', '4567', '280', '154', '3', '0', '0', '3', '107');Caused the error:
Duplicate entry '833-5' for key 3
Converting...
Converting ranks... Successful.
Converting groups... Successful.
Converting smileys... Successful.
Converting members... Successful.
Converting additional member groups... Successful.
Converting categories... Successful.
Converting boards... Successful.
Converting topics... Unsuccessful!
This query:
INSERT INTO `sql740`.smf_topics
(ID_TOPIC, isSticky, ID_FIRST_MSG, ID_LAST_MSG, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_BOARD, ID_POLL, locked, numReplies, numViews)
VALUES ('2039', '0', '26421', '26461', '2', '148', '2', '0', '0', '1', '369'),
('2040', '0', '26438', '35943', '512', '674', '4', '0', '0', '6', '538'),
('2041', '0', '26443', '26616', '78', '181', '9', '0', '0', '33', '1196'),
('2042', '0', '26448', '26552', '512', '109', '8', '0', '0', '5', '373'),
('2043', '0', '26487', '26648', '286', '286', '9', '0', '0', '20', '683'),
('2044', '0', '26518', '26613', '35', '79', '2', '0', '0', '5', '527'),
('2045', '0', '26543', '30672', '517', '11', '15', '0', '0', '5', '353'),
('2046', '0', '26549', '26553', '106', '488', '8', '0', '0', '1', '240'),
('2047', '0', '26559', '26857', '526', '447', '5', '0', '0', '17', '757'),
('2048', '0', '26575', '26772', '181', '181', '9', '0', '0', '7', '363'),
('2049', '0', '26576', '26576', '13', '13', '1', '0', '0', '0', '395'),
... some SQL lines deleted...
('2071', '0', '26882', '27070', '445', '200', '10', '0', '0', '4', '343'),
('2072', '0', '26882', '26882', '445', '445', '10', '0', '0', '0', '15'),
('2073', '0', '26890', '26958', '530', '530', '5', '0', '0', '5', '207'),
('2074', '0', '26910', '26914', '62', '4', '6', '0', '0', '2', '254'),
('2075', '0', '26916', '26959', '-1', '181', '18', '0', '0', '11', '466'),
('2076', '0', '26922', '27399', '428', '28', '1', '0', '0', '10', '615'),
('2077', '0', '26936', '26967', '517', '517', '5', '0', '0', '8', '216'),
... some more SQL Lines deleted...
Caused the error:
Duplicate entry '26882-10' for key 3
[/quote]
I checked the Database of php2bb, and there are definately no two entries for 26882...
Any idea?
Quote from: Ferny on September 03, 2006, 03:41:33 PM
frwjd: see my post above yours and download that converter ;) It fixes this error and some others
Converting...
Converting ranks... Successful.
Converting groups... Successful.
Converting members... Unsuccessful!
This query:
SELECT
u.user_id AS ID_MEMBER, SUBSTRING(u.username, 1, 80) AS memberName,
SUBSTRING(u.username, 1, 255) AS realName,
SUBSTRING(u.user_password, 1, 64) AS passwd, u.user_lastvisit AS lastLogin,
u.user_regdate AS dateRegistered,
SUBSTRING(u.user_from, 1, 255) AS location,
u.user_posts AS posts, IF(u.user_level = 1, 1, mg.ID_GROUP) AS ID_GROUP,
u.user_new_privmsg AS instantMessages,
SUBSTRING(u.user_email AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privmsg AS unreadMessages,
SUBSTRING(u.user_msnm AS MSN, 1, 255) AS MSN,
SUBSTRING(u.user_aim AS AIM, 1, 16) AS AIM,
SUBSTRING(u.user_icq, 1, 255) AS ICQ,
SUBSTRING(u.user_yim, 1, 32) AS YIM,
SUBSTRING(u.user_website, 1, 255) AS websiteTitle,
SUBSTRING(u.user_website, 1, 255) AS websiteUrl,
u.user_allow_viewonline AS showOnline, u.user_timezone AS timeOffset,
IF(u.user_viewemail = 1, 0, 1) AS hideEmail, u.user_avatar AS avatar,
REPLACE(u.user_sig, '\n', '<br />') AS signature,
u.user_sig_bbcode_uid AS signature_uid, u.user_avatar_type,
u.user_notify_pm AS pm_email_notify, u.user_active AS is_activated,
'' AS lngfile, '' AS buddy_list, '' AS pm_ignore_list, '' AS messageLabels,
'' AS personalText, '' AS timeFormat, '' AS usertitle, '' AS memberIP,
'' AS secretQuestion, '' AS secretAnswer, '' AS validation_code,
'' AS additionalGroups, '' AS smileySet, '' AS passwordSalt,
'' AS memberIP2
FROM `database1`.phpbb_users AS u
LEFT JOIN `database1`.phpbb_ranks AS r ON (r.rank_id = u.user_rank AND r.rank_special = 1)
LEFT JOIN `database2`.smf_membergroups AS mg ON (BINARY mg.groupName = CONCAT('phpBB ', r.rank_title))
WHERE u.user_id != -1
GROUP BY u.user_id
LIMIT 0, 500;
Caused the error:
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 'AS emailAddress, 1, 255) AS emailAddress,
u.user_unread_privms
Quote from: Burke on October 09, 2006, 04:09:09 PM
Thanks, I did that. I tried all the convertion scripts. Using the latest update, this happens:
I still get errorr. It shows that error occurs with images, and with smileys. It is impossbile for me to get the log, as everything flows fast accros the screen, and then finally shows as the convertion was successful. While the Convert.php is running, it shows a lot of errors regarding at least images and smileys, but at the end it says that the convertion was successful. This is kind of a contradict I think. Can anyone tell me why I get this error, and perhpas tell me if the convertion was indeed succesful or not as the convert.php ends up reporting. Thanks.
Converting...
Converting ranks... Successful.
Converting groups... Successful.
Converting smileys... Successful.
Converting members... Successful.
Converting additional member groups... Successful.
Converting categories... Successful.
Converting boards... Successful.
Converting topics... Successful.
Converting posts (this may take some time)... Unsuccessful!
This query:
SELECT
p.post_id AS ID_MSG, p.topic_id AS ID_TOPIC, p.post_time AS posterTime,
p.poster_id AS ID_MEMBER,
SUBSTRING(IFNULL(u.user_email, ''), 1, 255) AS posterEmail,
SUBSTRING(IF(IFNULL(pt.post_subject, '') = '', t.topic_title, pt.post_subject), 1, 255) AS subject,
SUBSTRING(IF(IFNULL(p.post_username, '') = '', u.username, p.post_username), 1, 255) AS posterName,
p.enable_smilies AS smileysEnabled, IF(p.post_edit_time > 0, p.post_edit_time, 0) AS modifiedTime,
CONCAT_WS('.', CONV(SUBSTRING(p.poster_ip, 1, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 3, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 5, 2), 16, 10), CONV(SUBSTRING(p.poster_ip, 7, 2), 16, 10)) AS posterIP,
SUBSTRING(REPLACE(REPLACE(IF(pt.bbcode_uid = '', pt.post_text, REPLACE(REPLACE(REPLACE(pt.post_text, CONCAT(':u:', pt.bbcode_uid), ''), CONCAT(':1:', pt.bbcode_uid), ''), CONCAT(':', pt.bbcode_uid), '')), '\n', '<br />'), '"', '"'), 1, 65534) AS body,
p.forum_id AS ID_BOARD, '' AS modifiedName, 'xx' AS icon
FROM (`forum`.phpbb_posts AS p, `forum`.phpbb_posts_text AS pt, `forum`.phpbb_topics AS t)
LEFT JOIN `forum`.phpbb_users AS u ON (u.user_id = p.poster_id)
WHERE pt.post_id = p.post_id
AND t.topic_id = p.topic_id
LIMIT 0, 200;
Caused the error:
Champ 'pt.post_subject' inconnu dans field listConverting ranks... Successful.
Converting groups... Successful.
Converting smileys... Successful.
Converting members... Successful.
Converting additional member groups... Successful.
Converting categories... Successful.
Converting boards... Successful.
Converting topics... Unsuccessful!
This query:
INSERT INTO `iehova_smf1`.smf_topics
(ID_TOPIC, isSticky, ID_FIRST_MSG, ID_LAST_MSG, ID_MEMBER_STARTED, ID_MEMBER_UPDATED, ID_BOARD, ID_POLL, locked, numReplies, numViews)
VALUES ('530', '0', '20682', '24773', '138', '138', '29', '0', '0', '268', '4812'),
('531', '0', '20683', '24096', '2', '9', '11', '0', '1', '25', '78'),
('532', '0', '20684', '21335', '2', '115', '30', '0', '0', '26', '59'),
('533', '0', '20696', '21281', '2', '115', '30', '0', '0', '26', '59'),
('534', '0', '20774', '20875', '2', '115', '30', '0', '0', '1', '11'),
('535', '0', '20828', '22015', '34', '34', '22', '0', '0', '8', '20'),
[...]
('1008', '0', '34081', '34081', '83', '83', '37', '0', '0', '0', '3'),
('1009', '0', '34082', '34085', '83', '83', '37', '0', '0', '3', '5'),
('1010', '0', '34089', '34091', '83', '83', '9', '0', '0', '2', '9'),
('1011', '0', '34094', '34094', '2', '2', '9', '0', '0', '0', '3'),
('1012', '0', '34095', '34099', '2', '2', '3', '0', '0', '2', '6');
Caused the error:
Duplicate entry '6410-15' for key 2/* // !!! WHERE t.topic_moved_id = 0 */WHERE t.topic_moved_id = 0ALTER TABLE smf_messages DROP PRIMARY KEY;
ALTER TABLE smf_topics DROP PRIMARY KEY;ALTER TABLE smf_messages CHANGE ID_MSG ID_MSG int(10) unsigned not null auto_increment PRIMARY KEY;
ALTER TABLE smf_topics CHANGE ID_TOPIC ID_TOPIC mediumint(8) unsigned not null auto_increment PRIMARY KEY;
Converting ranks... Successful.
Converting groups... Successful.
Converting smileys... Successful.
Converting members... Unsuccessful!
This query:
INSERT INTO `webquadc_mambocms`.wqsmf_members
(ID_MEMBER, memberName, realName, passwd, lastLogin, dateRegistered, location, posts, ID_GROUP, instantMessages, emailAddress, unreadMessages, MSN, AIM, ICQ, YIM, websiteTitle, websiteUrl, showOnline, timeOffset, hideEmail, avatar, signature, pm_email_notify, is_activated, lngfile, buddy_list, pm_ignore_list, messageLabels, personalText, timeFormat, usertitle, memberIP, secretQuestion, secretAnswer, validation_code, additionalGroups, smileySet, passwordSalt, memberIP2)
VALUES ('2', 'admin', 'admin', '553ae6421f6984a2216ff05060012e80', '1161460454', '1161453034', '', '2', '1', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('4', 'KnightRobby', 'KnightRobby', '5eaa742981366419de211a0325b9170e', '1153680589', '1095526269', '', '153', '1', '2', '[email protected]', '41', '', '', '', '', '', '', '1', '0', '0', 'gallery/medalofhonor/35avatar.jpg', '', '0', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('5', 'SHAO KHAN 20', 'SHAO KHAN 20', '21bb5bb51758eab175d4d640334abba0', '1107556820', '1101761143', 'Dave\'s MK', '0', '', '6', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', 'gallery/mortalkombat/18avatar.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('6', 'Scorpion The Ninja', 'Scorpion The Ninja', 'ad9269b456a2aa8181665b3296b115d9', '1123034813', '1101762036', 'You Tell Me', '49', '683', '1', '[email protected]', '5', '', '', '', '', '', '', '1', '-5', '1', 'gallery/mortalkombat/50avatar.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('7', 'ermac_1324', 'ermac_1324', '2c5d15d4c2edf4b630cc300ded7a2ff8', '1111179681', '1101762218', 'New Zealand', '0', '', '0', '[email protected]', '0', '[email protected]', '', '', '', '', '', '1', '0', '1', 'gallery/mortalkombat/31avatar.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('8', 'kali', 'kali', '76be6d6dd0ac324ca57c73afc7dfe077', '1107006564', '1101763834', '', '0', '', '3', '[email protected]', '0', '', '', '', '', 'http://www.mkfanatic.net', 'http://www.mkfanatic.net', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('9', 'mileena', 'mileena', 'a29bac723ca2d59ed78a2d715e17e92f', '1113339860', '1101765308', '', '0', '', '3623', '[email protected]', '1', '', 'Mileena Kitana', '', '', '', '', '1', '0', '1', 'gallery/mortalkombat/20avatar.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('10', 'Jackson Briggs', 'Jackson Briggs', '7e65a9b554bbc9817aa049ce38c84a72', '1114303684', '1101768471', 'Dallas, TX', '0', '', '63', '[email protected]', '7', '[email protected]', 'jacksonbriggs37', '', '[email protected]', 'http://jacksonbriggs.proboards28.com', 'http://jacksonbriggs.proboards28.com', '1', '-6', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('11', 'KKW2', 'KKW2', 'e0208ae0d9cf8113885b1a90d0233a17', '1104797075', '1101777674', '', '0', '', '3', '[email protected]', '0', '', '', '', '', 'http://www.throughkenshiseyes.cjb.net', 'http://www.throug
<--------deleted some stuff here ------------------>
yea Add me on MSN', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('463', 'crapman', 'crapman', '79cfdd0e92b120faadd7eb253eb800d0', '1111239907', '1111235847', '', '0', '', '1', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('464', 'RedTyga', 'RedTyga', '87850caf3cc34ac152862d28e818d9c0', '1115163271', '1111242971', 'California', '0', '', '0', '[email protected]', '0', '', 'dezisabadmofo', '', '[email protected]', '', '', '1', '-8', '1', 'gallery/defjam/16defav.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('465', 'vicho', 'vicho', 'ed4d28b87a726bf1502ae9a530f0bf60', '1111243319', '1111243294', '', '0', '', '0', '[email protected]', '0', '[email protected]', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('466', 'GamePlayer16', 'GamePlayer16', '20d31c21944df5a6534181f2ae262ab9', '0', '1111270373', '??', '0', '', '0', '[email protected]', '0', '??', '??', '', '??', '', '', '0', '0', '1', '', '??????????', '1', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('467', 'CHI@ANG', 'CHI@ANG', '8a5f1e2bd269a9254cc2bdd7023a7d5b', '1111596094', '1111272745', '', '0', '', '0', '[email protected]', '1', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('468', 'stylz', 'stylz', '955fb354f3074f3505620d725ca95acb', '1111877874', '1111274311', 'London, Ontario', '0', '', '0', '[email protected]', '0', '[email protected]', '', '', '', '', '', '1', '-5', '1', 'gallery/defjam/16defav.jpg', 'Bow down to the champ, chump.', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('469', 'TaY That Compton Crip', 'TaY That Compton Crip', '25d55ad283aa400af464c76d713c07ad', '1111279727', '1111278393', 'Compton, California', '0', '', '0', '[email protected]', '0', '', '', '', '', 'http://www.streetgangs.com/compton/crips', 'http://www.streetgangs.com/compton/crips', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('470', 'ccandlejjack', 'ccandlejjack', '503e319a35297f9ee439654dc424468f', '1114631205', '1111280602', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '0', 'gallery/defjam/49defav.jpg', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('471', 'Ether', 'Ether', 'a4d2f0d23dcc84ce983ff9157f8b7f88', '1111289120', '1111288482', 'Dirty South', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('472', 'kindathirsty', 'kindathirsty', '42d6bc620071b80da379878bd861db96', '1111291616', '1111289050', '', '0', '', '0', '[email protected]', '0', '', 'kindathirsty', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('473', 'LOG@N', 'LOG@N', '9e86e748b6ac2ef1228c33fa71c6a8d5', '1111297492', '1111291594', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '0', '3', '1', '', 'LOGAN SCOTT RODOCKER', '0', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('474', 'thehitman', 'thehitman', '068ee9e9d43c26a82718ef89edffa3c8', '1111300465', '1111300354', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('475', 'cpc', 'cpc', '66622909e22e869ab282cdccd59c7f3d', '1111317618', '1111317599', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('476', 'koeli_G', 'koeli_G', 'edba6f3230922f75eae09423ecaba49b', '1111318228', '1111318205', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '0', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('477', 'sculasmi', 'sculasmi', 'a147fafa752cff0035c62c1c7765548a', '1111323652', '1111323260', 'cacd', '0', '', '0', '[email protected]', '0', '[email protected]', 'rua+ders', '67457987297', '[email protected]', 'http://www.defjamfight4ny.com', 'http://www.defjamfight4ny.com', '1', '0', '1', '', 'Sculasmi', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('478', 'BkBomber', 'BkBomber', '965dbaac085fc891bfbbd4f9d145bbc8', '1111324332', '1111323322', '', '0', '', '0', '[email protected]', '0', '', '', '', '', 'http://www.miseryartsink.com', 'http://www.miseryartsink.com', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('479', 'pelirrojo9', 'pelirrojo9', 'bd1941798f23a7c8cc03839aba79846b', '1111329714', '1111329697', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('480', 'Lil Mark The Compton Crip', 'Lil Mark The Compton Crip', '37430a92973d1adca9934f0a5ecc53d2', '1111339337', '1111338582', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('481', 'Dooper', 'Dooper', 'fdea1d0befd9055e97c25413cee7d83a', '1113159823', '1111343372', '', '0', '', '0', '[email protected]', '0', '', 'fusi0nbyt3', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('482', 'shad_2511', 'shad_2511', '16a43f607350d55f22b888004387b159', '1112371432', '1111349080', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('483', 'Raekwon The Chef', 'Raekwon The Chef', '2105a4479a0000a1ba07012d7f02672b', '1111352205', '1111351054', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('484', 'SOLO', 'SOLO', 'c4fc616543430eb35f01f70ee1bc1628', '0', '1111357328', 'pecos,tx', '0', '', '0', '[email protected]', '0', '[email protected]', '', '79772', 'texas_hotboi23', '', '', '1', '1', '1', '', '', '1', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('485', 'LOCK', 'LOCK', 'c4fc616543430eb35f01f70ee1bc1628', '0', '1111358126', 'Odessa,Tx', '0', '', '0', '[email protected]', '0', 'blr2369@hotmail', '', '79772', 'texas_hotboi23', '', '', '1', '0', '1', '', '', '1', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('486', 'Doc', 'Doc', 'd056025fbea3c4700729c5b96b0ff97b', '0', '1111358559', 'Odessa,Tx', '0', '', '0', '[email protected]', '0', '[email protected]', '', '79772', 'texas_hotboi23', '', '', '1', '0', '1', '', '', '1', '0', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('487', 'Trefizzle', 'Trefizzle', '04c3b57dc6aebc62a5e222c218a00f79', '1111370358', '1111370285', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '3', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('488', 'Tiltsis', 'Tiltsis', '21f1938bae2fda91f2cdca6060bdcfb1', '1113309752', '1111373716', 'Sydney - Australia', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('489', 'FlipHKD', 'FlipHKD', '8e2dcfd7e7e24b1ca76c1193f645902b', '1111375639', '1111375625', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('490', 'thegiver', 'thegiver', '28214f7adfc921bb4cb0d00efa882622', '1111376414', '1111375648', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('491', 'BATMAN', 'BATMAN', 'd099b25e9c797fc6ea02aa663632b98d', '1111377380', '1111376663', '', '0', '', '1', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('492', 'Gatman', 'Gatman', '6645af7ddb864a027899482f49ca1e74', '1111391506', '1111391224', '', '0', '', '0', '[email protected]', '0', '[email protected]', '', '', '', '', '', '0', '0', '0', '', 'DmanG', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('493', 's-karl', 's-karl', '1ba059b636fb449476d5e5d74d9bdf9e', '1111485452', '1111398914', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '0', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('494', 'Lukey-b', 'Lukey-b', '02e2110ce4dad6bf98792a1bb06208ad', '1111403726', '1111403665', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('495', 'grifo78', 'grifo78', '6ab8c071842e7bc2fe980fb075c71383', '1111416056', '1111415962', '', '0', '', '1', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('496', 'g blingout', 'g blingout', 'b86a2d98fe0a24f53860179baf2cdb59', '1111508086', '1111426739', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('497', 'sandman6262001', 'sandman6262001', '0aa08b5c91758a166d13e7cd3f455951', '1111433031', '1111432953', 'houston, tx', '0', '', '0', '[email protected]', '0', '', '', '', '[email protected]', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('498', 'AndrossMentaki', 'AndrossMentaki', 'ae21370e3292d3adfe5fbdbe6c9d702d', '1111433394', '1111433319', 'florida', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '0', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('499', 'Sapokiller', 'Sapokiller', 'cd644e316cfb3268c442b72791c2749b', '1111448828', '1111448789', 'Venezuela', '0', '', '0', '[email protected]', '0', '[email protected]', '', '', '', 'http://calicoelectronioco.com', 'http://calicoelectronioco.com', '1', '1', '0', '', 'i m just looking for cute girls dude !!
<br /> im a real street figther and i got the scars to prove it', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('500', 'CRG', 'CRG', '457b8e35ad9a1fa7939837bc71dda55b', '1111454126', '1111454108', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('501', 'reebokamaze', 'reebokamaze', '4346feb9ed5b01950e2b78bf196aa5c3', '1111458481', '1111458190', '', '0', '', '0', '[email protected]', '0', '', '', '', '', '', '', '0', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''),
('502', 'SnoopaLoop', 'Snoop'a'Loop', '13b5eb84acdcb1fbf868afe503584827', '1112408945', '1111461560', 'HR', '0', '', '2', '[email protected]', '0', '', 'VampiricCharm', '', '', '', '', '1', '0', '1', '', '', '1', '1', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '');
Caused the error:
Unknown column 'memberIP2' in 'field list'
Quote from: Oldiesmann on October 21, 2006, 07:17:51 PM
Yes, you should upgrade to 1.1 RC3, then try the converter at http://www.simplemachines.org/community/index.php?topic=107868.msg761440#msg761440
Quote from: nathan42100 on November 04, 2006, 06:09:44 PM
Sorry for bumping a semi-old topic but just to make sure, http://smf.person-lab.net/phpbb2_to_smf_2006_09_21.zip
The above link is the most recent and bug free version of the converter and fixes bugs such as the PM bug and the 1 letter sig chop off?
Quote from: Oldiesmann on October 21, 2006, 04:04:17 PM
I'm not sure what's going on. I'd just suggest dropping the primary keys from the topics and posts tables (this will allow duplicate values in the ID column) and then adding them back when you're done:Code SelectALTER TABLE smf_messages DROP PRIMARY KEY;
ALTER TABLE smf_topics DROP PRIMARY KEY;
Then when you're done:Code SelectALTER TABLE smf_messages CHANGE ID_MSG ID_MSG int(10) unsigned not null auto_increment PRIMARY KEY;
ALTER TABLE smf_topics CHANGE ID_TOPIC ID_TOPIC mediumint(8) unsigned not null auto_increment PRIMARY KEY;
Quotehad the some problem, tried some fixes mentioned here on the forums but they all dont work. Until I found the workaround with the old converter, which worked for me.
1) Install 1.0.9
2) convert phpbb2 with old converter to smf 1.0.9
3) upgrade smf 1.0.9 to 1.1.1
So it seems the new converter still has issues the old one has no trouble at all with.
Anyway it worked so I am happy :-)
Good new year!
CREATE TABLE smf_topics(
ID_TOPIC mediumint( 8 ) unsigned NOT NULL AUTO_INCREMENT ,
isSticky tinyint( 4 ) NOT NULL default '0',
ID_BOARD smallint( 5 ) unsigned NOT NULL default '0',
ID_FIRST_MSG int( 10 ) unsigned NOT NULL default '0',
ID_LAST_MSG int( 10 ) unsigned NOT NULL default '0',
ID_MEMBER_STARTED mediumint( 8 ) unsigned NOT NULL default '0',
ID_MEMBER_UPDATED mediumint( 8 ) unsigned NOT NULL default '0',
ID_POLL mediumint( 8 ) unsigned NOT NULL default '0',
numReplies int( 10 ) unsigned NOT NULL default '0',
numViews int( 10 ) unsigned NOT NULL default '0',
locked tinyint( 4 ) NOT NULL default '0',
PRIMARY KEY ( ID_TOPIC )
);
Quote
Which software are you using?
The converter did not find any conversion data files. Please check to see if the one you want is available for download at www.simplemachines.org. If it isn't, we may be able to write one for you - just ask us!
After you download it, simply upload it into the same folder as this convert.php file. If you're having any other problems with this converter, don't hesitate to look for help on our forum.
Try again
Warning: Unknown(): open(/mnt/133/sdb/9/c/noaneo/sessions/sess_034c162fa0a36f15042aa89f4fce91cf, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/mnt/133/sdb/9/c/noaneo/sessions) in Unknown on line 0
while ($row = mysql_fetch_assoc($result))
{
if (!file_exists($oldAttachmentDir . '/' . $row['encrypted']))
$row['encrypted'] = strtr($row['encrypted'], '& ', '__');
// Get the true filesize in case the old db lied!
$fileSize = filesize($oldAttachmentDir . '/' . $row['encrypted']);
if (!is_integer($fileSize))
continue;
// Frankly I don't care whether they want encrypted filenames - they're having it - too dangerous.
$newfilename = getAttachmentFilename($row['filename'], $ID_ATTACH);
if (strlen($newfilename) <= 255 && copy($oldAttachmentDir . '/' . $row['encrypted'], $attachmentUploadDir . '/' . $newfilename))
{
$attachments[] = "($ID_ATTACH, $fileSize, SUBSTRING('" . addslashes($row['filename']) . "', 1, 255), $row[ID_MSG], $row[downloads])";
$ID_ATTACH++;
}
}
if (!empty($attachments))
convert_query("
INSERT INTO {$to_prefix}attachments
(ID_ATTACH, size, filename, ID_MSG, downloads)
VALUES " . implode(', ', $attachments));
while ($row = mysql_fetch_assoc($result))
{
if (!file_exists($oldAttachmentDir . '/' . $row['encrypted']))
$row['encrypted'] = strtr($row['encrypted'], '& ', '__');
// Get the true filesize in case the old db lied!
$fileSize = filesize($oldAttachmentDir . '/' . $row['encrypted']);
if (!is_integer($fileSize))
continue;
//SillyCone hack - 22/01/2007 - add the width and height of images, so they can be viewed in the post where attached !
//first get extension of file and test if it's a jpg, a gif or a png - add any other image type in here, sizeable by php
$attachextension = strtolower(substr($row['filename'],-4));
if (($attachextension != 'jpeg') && ($attachextension != '.jpg') && ($attachextension != '.gif') && ($attachextension != '.png')) {
$attachextension = '';
}
// Frankly I don't care whether they want encrypted filenames - they're having it - too dangerous.
$newfilename = getAttachmentFilename($row['filename'], $ID_ATTACH);
if (strlen($newfilename) <= 255 && copy($sourcefile, $attachmentUploadDir.'/'.$newfilename))
{
//SillyCone hack - 22/01/2007 - get size of the image to store in attachments table
$width = 0;
$height = 0;
if ($attachextension != '') {
$imagesizearray = getimagesize($oldAttachmentDir.'/'.$row['encrypted']);
if ($imagesizearray) {
$width = $imagesizearray[0];
$height = $imagesizearray[1];
}
}
//SillyCone hack - 22/01/2007 - added width and height to the VALUES string
$attachments[] = "($ID_ATTACH, $width, $height, $fileSize, SUBSTRING('".addslashes($row['filename'])."', 1, 255), $row[ID_MSG], $row[downloads])";
$ID_ATTACH++;
}
}
if (!empty($attachments))
//SillyCone hack - 22/01/2007 - added width and height to the query
convert_query("
INSERT INTO {$to_prefix}attachments
(ID_ATTACH, width, height, size, filename, ID_MSG, downloads)
VALUES " . implode(', ', $attachments));