Code: Select all
// Add login_name field to users table if NOT exists
function smf_add_login_field()
{
global $db, $table_prefix;
$drop_sql = 'ALTER TABLE ' . USERS_TABLE . ' DROP login_name, DROP user_passwd_salt';
$create_login_name_sql = 'ALTER TABLE ' . USERS_TABLE . ' ADD login_name VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT \'\' NOT NULL';
$create_salt_sql = 'ALTER TABLE ' . USERS_TABLE . ' ADD user_passwd_salt VARCHAR( 5 ) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT \'\' NOT NULL';
$db->sql_return_on_error(true);
$db->sql_query($drop_sql);
$db->sql_query($create_login_name_sql);
$db->sql_query($create_salt_sql);
$db->sql_return_on_error(false);
}
Code: Select all
array('login_name', 'members.member_name', 'smf_set_encoding'),
Code: Select all
General Error
SQL ERROR [ mysql4 ]
[0]
SQL
No values specified for SQL IN comparison
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/includes/db/dbal.php
LINE: 757
CALL: trigger_error()
FILE: [ROOT]/includes/db/dbal.php
LINE: 432
CALL: dbal->sql_error()
FILE: [ROOT]/install/convertors/functions_smf20.php
LINE: 234
CALL: dbal->sql_in_set()
FILE: [ROOT]/install/install_convert.php(1654) : eval()'d code
LINE: 2
CALL: smf_convert_authentication()
FILE: [ROOT]/install/install_convert.php
LINE: 1654
CALL: eval()
FILE: [ROOT]/install/install_convert.php
LINE: 799
CALL: install_convert->jump()
FILE: [ROOT]/install/install_convert.php
LINE: 203
CALL: install_convert->convert_data()
FILE: [ROOT]/install/index.php
LINE: 326
CALL: install_convert->main()
FILE: [ROOT]/install/index.php
LINE: 203
CALL: module->load()
that is a plausible assumptioin, however , it is only an assumption so I guess we will have to wait until he comes back and tells us what he is doing for sure.ddonzal wrote:Looks like he was putting the converter through its paces on a test server. I assume with only that small amount of data, that its sample to just play and test before going for it. I've done that before, so it makes sense. Especially since he's trying a double conversion.
Don
nocomp wrote:hi,
i try to migrate a smf 2.02 to phpbb3
i ve download the latest script, and when i go to phpBB3/install/convertors/convert_smf20.php i get a blank page, any idea why?
did i missed something?
in what file are you supposed to add db settings and path?
thxx for helping.
best regards
your not suppose to access phpBB3/install/convertors/convert_smf20.php directlynocomp wrote:thxx for your reply
what is weird is that i don t even have the menu for enter settings of the smf forum, blank page :/
i have 256 mb memory allowed, should be enough
i even changed chmod in case of, no luck