In the config file try to set "mysqli" instead "mysql"venukb wrote:
**Could not connect to the database, see error message below.
No error message given.**
Code: Select all
Error General
SQL ERROR [ mysql4 ]
MySQL server has gone away [2006]
SQL
SELECT forumid, title, description, options, displayorder, parentid, password, link FROM forum ORDER BY parentid, displayorder ASC
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/mysql.php
LINE: 193
CALL: dbal->sql_error()
FILE: [ROOT]/install/convertors/functions_vb4.php
LINE: 201
CALL: dbal_mysql->sql_query()
FILE: [ROOT]/install/install_convert.php(1003) : eval()'d code
LINE: 7
CALL: vb_insert_forums()
FILE: [ROOT]/install/install_convert.php
LINE: 1003
CALL: eval()
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()
I'm having this same issue. It looks related to PMs?phrogg wrote:I'm having exactly the same errors. I cannot get vB imported past this step. I see that it has created the Forums and all of the boards under that. I also see users having been created and groups. But then there are no topics to work with yet. So I think its failing there somewhere.
storrm wrote: When I hit the continue conversion button I get loads of the following errors on the page :-
and then at the bottom I get 4 lines ofCode: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/install/convertors/functions_vb4.php on line 744: Invalid argument supplied for foreach()
I can't link my php errors log because for some reason its not logging anything at the moment.Code: Select all
[phpBB Debug] PHP Warning: in file [ROOT]/install/index.php on line 361: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Code: Select all
function vb_privmsgs_to_users($user_array)
{
$users = unserialize($user_array);
$to = '';
if ( isset($user['cc']) )
{
foreach ($users['cc'] as $user_id => $username)
{
$to .= ((!empty($to)) ? ', ' : '') . 'u_' . phpbb_user_id($user_id);
}
}
return $to;
}
storrm wrote:
When I hit the continue conversion button I get loads of the following errors on the page :-
CODE: SELECT ALL
[phpBB Debug] PHP Warning: in file [ROOT]/install/convertors/functions_vb4.php on line 744: Invalid argument supplied for foreach()
BillHeaton89103 wrote:The vb_privmsgs_to_users() function in functions_vb4.php doesn't take into account that it's possible for the $users['cc'] to be NULL. Surround the foreach loop with an isset to test that something was actually passed:
Code: Select all
function vb_privmsgs_to_users($user_array) { $users = unserialize($user_array); $to = ''; if ( isset($user['cc']) ) { foreach ($users['cc'] as $user_id => $username) { $to .= ((!empty($to)) ? ', ' : '') . 'u_' . phpbb_user_id($user_id); } } return $to; }
storrm wrote:
When I hit the continue conversion button I get loads of the following errors on the page :-
CODE: SELECT ALL
[phpBB Debug] PHP Warning: in file [ROOT]/install/convertors/functions_vb4.php on line 744: Invalid argument supplied for foreach()
What issues?BWilliams wrote:Any updates on these issues?
Just a hunch, have you checked for directory permissions on it already?[phpBB Debug] PHP Warning: in file [ROOT]/install/index.php on line 363: Cannot modify header