Simple Machines Community Forum

SMF Support => Converting to SMF => Topic started by: danpaulson on May 12, 2010, 10:40:09 AM

Title: Problem with PunBB 1.3.3 to SMF 2.0 RC3
Post by: danpaulson on May 12, 2010, 10:40:09 AM
Hi there,

  I'm attempting to convert my PunBB 1.3.3 install to an SMF one, but I'm running in to some trouble. I'm using the official converter plugin from the site, and nearly the entire forum converts fine, but at the last step I receive the following error.

QuoteConverting banned users...
Warning: Missing argument 1 for convert_insert_id(), called in /home/vindsite/public_html/beta/forums/convert.php(1099) : eval()'d code on line 18 and defined in /home/vindsite/public_html/beta/forums/convert.php on line 2665

  It goes on to do that 4 times, then claims success. Smileys then convert successfully. Following that, I receive this message:

QuoteRecalculating forum statistics...
Warning: require_once(/home/vindsite/public_html/beta/forums/Sources/DbPackages-mysqli.php) [function.require-once]: failed to open stream: No such file or directory in /home/vindsite/public_html/beta/forums/Sources/Subs-Db-mysql.php on line 102

Fatal error: require_once() [function.require]: Failed opening required '/home/vindsite/public_html/beta/forums/Sources/DbPackages-mysqli.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vindsite/public_html/beta/forums/Sources/Subs-Db-mysql.php on line 102

  Refreshing the main forum index displays all the posts and users converted, but none of my passwords work, and I am unable to log in. I'm wondering if this is an issue with my server's php, or if I should try updating to PunBB 1.3.4 and give it another go. Thanks for any insight.
Title: Re: Problem with PunBB 1.3.3 to SMF 2.0 RC3
Post by: danpaulson on May 13, 2010, 07:36:49 AM
I got curious and updated to punbb 1.3.4. I'm now running in to the following error:

QuoteConverting members... Successful.
Converting avatars... Successful.
Converting categories... Successful.
Converting boards... Successful.
Converting topics...Duplicate entry '1084' for key 1

Any ideas?
Title: Re: Problem with PunBB 1.3.3 to SMF 2.0 RC3
Post by: danpaulson on May 13, 2010, 08:44:47 AM
Got past that issue with this tip: http://www.simplemachines.org/community/index.php?topic=297184.msg2038790#msg2038790

However, I'm still experiencing the errors in the first post of this thread.
Title: Re: Problem with PunBB 1.3.3 to SMF 2.0 RC3
Post by: Norv on May 13, 2010, 09:23:43 AM
No, there's nothing wrong with your version(s) as far as I can tell.
I think the first issue is a problem with the converter, please try: (punbb_to_smf.sql, untested)

$id_ban_group = convert_insert_id();


$id_ban_group = convert_insert_id('ban_groups');

As well as (convert.php):
Code (find) Select

// Provide a easy way to give our converters an insert id.
function convert_insert_id($result)
{
global $smcFunc;

return $smcFunc['db_insert_id']($result);
}

Code (replace) Select

// Provide a easy way to give our converters an insert id.
function convert_insert_id($table, $no_prefix = false)
{
global $smcFunc, $db_prefix;

if (empty($no_prefix))
$table = $db_prefix . $table;
return $smcFunc['db_insert_id']($table);
}


About the second, when you installed SMF, did you by any chance get to choose mysqli (not mysql)?
Title: Re: Problem with PunBB 1.3.3 to SMF 2.0 RC3
Post by: mt2isgreat on May 13, 2010, 01:45:45 PM
2 days ago i converted succesfully punBB 1.3.4 to 2.0 RC3 again with no errors.

Theres 1 line to change in sql file converter but u can use mine .

After conversion copy LogInOut,php to /Sources and all passwords will work. (If not try to clear cookies in your browser)