Brand new install of vBulletin, runs fine.
Installed ImpEx, when I go to it in the control panel i get the following errors:
' . $ImpExDisplay->phrases['using_local_config'] . ''; // Only if it is all there or a 3.5 config file if ($config['Database']['dbtype'] AND $config['MasterServer']['servername'] AND $config['MasterServer']['username'] AND $config['MasterServer']['password'] AND $config['MasterServer']['dbname']) { // Over write ImpExConfig.htm $impexconfig['target']['databasetype'] = $config['Database']['dbtype'] ? $config['Database']['dbtype'] : 'mysql'; $impexconfig['target']['server'] = $config['MasterServer']['servername']; $impexconfig['target']['user'] = $config['MasterServer']['username']; $impexconfig['target']['password'] = $config['MasterServer']['password']; $impexconfig['target']['database'] = $config['Database']['dbname']; $impexconfig['target']['tableprefix'] = $config['Database']['tableprefix']; } } else { $using_local_config = '' . $ImpExDisplay->phrases['using_impex_config'] . '
'; } $Db_target = new DB_Sql_vb_impex(); $Db_target->appname = 'vBulletin:ImpEx Target'; $Db_target->appshortname = 'vBulletin:ImpEx Target'; $Db_target->database = $impexconfig['target']['database']; $Db_target->type = $impexconfig['target']['databasetype']; $Db_target->connect($impexconfig['target']['server'], $impexconfig['target']['user'], $impexconfig['target']['password'], 0); $Db_target->select_db($impexconfig['target']['database']); // ############################################################################# // Session start // ############################################################################# require_once ($systempath . 'impex/ImpExSession.htm'); require_once ($systempath . 'impex/ImpExController.htm'); $ImpEx = new ImpExController(); $session_state = $ImpEx->return_session($Db_target, $impexconfig['target']['tableprefix']); if ($session_state) { $ImpExSession = $session_state; } else { $ImpExSession = new ImpExSession(); } // ############################################################################# // Requires // ############################################################################# require_once ($systempath . 'impex/ImpExDisplay.htm'); require_once ($systempath . 'impex/ImpExDisplayWrapper.htm'); switch ($ImpExSession->get_session_var('targetsystem')) { case 350: require_once ($systempath . 'impex/ImpExDatabase_350.htm'); break; case 309: require_once ($systempath . 'impex/ImpExDatabase_309.htm'); break; default: require_once ($systempath . 'impex/ImpExDatabase_350.htm'); break; } require_once ($systempath . 'impex/ImpExData.htm'); require_once ($systempath . 'impex/ImpExModule.htm'); require_once ($systempath . 'impex/ImpExFunction.htm'); require_once ($systempath . $impexconfig['system']['language']); ################## // ############################################################################# // Help page echo // ############################################################################# if($usewrapper) { $ImpExDisplay = new ImpExDisplayWrapper(); } else { $ImpExDisplay = new ImpExDisplay(); } $Db_source = new DB_Sql_vb_impex(); $ImpExDisplay->phrases =& $impex_phrases; // ############################################################################# // create vbfields // ############################################################################# if($ImpExSession->get_session_var('vbfields') != 'done') { require_once($systempath. 'impex/vbfields.htm'); $queries = &retrieve_vbfields_queries($impexconfig['target']['tableprefix']); foreach ($queries AS $query) { $Db_target->query($query); } $ImpExSession->add_session_var('vbfields', 'done'); } // ############################################################################# // initalise error store // ############################################################################# if($ImpExSession->get_session_var('errortable') != 'done') { // Just incase the session was removed and the error table is still there. $Db_target->query("DROP TABLE IF EXISTS {$impexconfig['target']['tableprefix']}impexerror"); // Create a new one. $error_table = "CREATE TABLE {$impexconfig['target']['tableprefix']}impexerror ( errorid bigint(20) unsigned NOT NULL auto_increment, datatype varchar(50) NOT NULL default '', importid bigint(20) NOT NULL default 0, error varchar(250) default 'NULL', remedy varchar(250) default 'NULL', PRIMARY KEY (errorid) ) TYPE=MyISAM"; $Db_target->query($error_table); $ImpExSession->add_session_var('errortable', 'done'); } $ImpExSession->_target_db =& $Db_target; // ############################################################################# // Add vars to session // ############################################################################# $ImpExSession->add_session_var('systempath', $systempath); $ImpExSession->add_session_var('sourceexists', $impexconfig['sourceexists']); $ImpExSession->add_session_var('targettableprefix', $impexconfig['target']['tableprefix']); $ImpExSession->add_session_var('targetdatabasetype', strtolower($impexconfig['target']['databasetype'])); $ImpExSession->add_session_var('sourcetableprefix', $impexconfig['source']['tableprefix']); $ImpExSession->add_session_var('sourcedatabasetype', strtolower($impexconfig['source']['databasetype'])); $ImpExSession->add_session_var('errorlogging', $impexconfig['system']['errorlogging']); $ImpExSession->add_session_var('pagespeed', $impexconfig['system']['pagespeed']); if($impexconfig['sourceexists']) { if ($impexconfig['source']['databasetype'] == 'mssql') {// Check if mssql support is in php or should a connection be made via pure style ....... if(!function_exists('mssql_connect')) { $ImpExDisplay->display_error($ImpExDisplay->phrases['no_mssql_support']); $ImpExDisplay->display_error($ImpExDisplay->phrases['no_mssql_support_link']); exit; } } $Db_source->appname = 'vBulletin:ImpEx Source'; $Db_source->appshortname = 'vBulletin:ImpEx Source'; $Db_source->database = $impexconfig['source']['database']; $Db_source->type = $impexconfig['source']['databasetype']; $Db_source->reporterror = 0; $Db_source->connect($impexconfig['source']['server'], $impexconfig['source']['user'], $impexconfig['source']['password'], 0); $Db_source->reporterror = 1; if ($Db_source->link_id) { // got connected switch ($Db_source->geterrno()) { case 1046: $ImpExDisplay->display_error($ImpExDisplay->phrases['no_source_set']); exit; break; case 1049: $ImpExDisplay->display_error($ImpExDisplay->phrases['source_not_exsist']); exit; break; } } else { $ImpExDisplay->display_error($ImpExDisplay->phrases['failed_connection']); exit; } // php versions before 4.2.0 do nasty things with multiple connections to the same server // See http://uk.php.net/manual/en/function.mysql-connect.php if (($Db_target->link_id === $Db_source->link_id) AND phpversion() < '4.2.0') { $Db_target->require_db_reselect = true; $Db_source->require_db_reselect = true; } } $ImpEx->get_post_values($ImpExSession,$_POST); // ############################################################################# // Autosubmit // ############################################################################# $ImpExDisplay->update_basic('autosubmit',$ImpExSession->get_session_var('autosubmit')); // ############################################################################# // Autosubmit & Home // ############################################################################# $currentmoduleworking = $ImpExSession->any_working(); $system = $ImpExSession->get_session_var('system'); $module = $ImpExSession->get_session_var('module'); if ($module == '000' OR $module == NULL) { if ($system != '' AND $system != 'NONE') { // When there is a system chosen, but not running, build the module list. require_once ("{$systempath}impex/systems/{$system}/000.htm"); $ImpExSession->build_module_list($ImpExDisplay); } else { if ($system == '') { // Catching a blank string $ImpExSession->set_session_var('system', 'NONE'); } else { // Nothing chosen yet $ImpExSession->set_session_var('system', $system); $ImpExDisplay->update_basic('title', $system); } } } echo $ImpExDisplay->page_header() . '
'; if ($using_local_config) { echo '
'; } // ############################################################################# // Resume // ############################################################################# if ($currentmoduleworking != NULL) { // Ensure we have the $system_000.htm module to extend from require_once ("{$systempath}impex/systems/{$system}/000.htm"); // Get the one we are working with. require_once ("{$systempath}impex/systems/{$system}/{$currentmoduleworking}.htm"); // Create that class $classname = "{$system}_{$currentmoduleworking}"; $ModuleCall = new $classname($ImpExSession); // Then call resume on it $ModuleCall->resume($ImpExSession, $ImpExDisplay, $Db_target, $Db_source); } // ############################################################################# // Init // ############################################################################# if ($module != '000' AND $module != NULL AND $currentmoduleworking == FALSE) { $ImpExDisplay->update_basic('displaymodules', 'FALSE'); // Ensure we have the $system_000.htm module to extend from require_once("{$systempath}impex/systems/{$system}/000.htm"); // Check if its a core module if ($module < 900) { require_once ("{$systempath}impex/systems/{$system}/{$module}.htm"); // Create the name of the class to instantiate $classname = "{$system}_{$module}"; } else { require_once ("{$systempath}impex/cleanup.htm"); // Create the name of the class to instantiate $classname = "core_{$module}"; } // Instantiate it $ModuleCall = new $classname($ImpExSession); // If its been FINISHED, then we are restarting it if ($ImpExSession->get_session_var($module) == 'FINISHED') { $ModuleCall->restarted(); } // Sets the current to working $ModuleCall->using($ImpExSession); // Actually calls the init and does the work $ModuleCall->init($ImpExSession, $ImpExDisplay, $Db_target, $Db_source); } // ############################################################################# // Update & Display // ############################################################################# $ImpEx->updateDisplay($ImpExSession, $ImpExDisplay); echo $ImpExDisplay->display($ImpExSession); if ($displayerrors) { echo $ImpExSession->display_errors('all'); } // ############################################################################# // Session End // ############################################################################# $ImpEx->store_session($Db_target, $impexconfig['target']['tableprefix'], $ImpExSession); echo ""; echo $ImpExDisplay->page_footer(); /*======================================================================*\ || #################################################################### || # Downloaded: 11:22, Wed Dec 14th 2005 || # CVS: $RCSfile: index.htm,v $ - $Revision: 1.43 $ || #################################################################### \*======================================================================*/ ?>
Installed ImpEx, when I go to it in the control panel i get the following errors:
' . $ImpExDisplay->phrases['using_local_config'] . ''; // Only if it is all there or a 3.5 config file if ($config['Database']['dbtype'] AND $config['MasterServer']['servername'] AND $config['MasterServer']['username'] AND $config['MasterServer']['password'] AND $config['MasterServer']['dbname']) { // Over write ImpExConfig.htm $impexconfig['target']['databasetype'] = $config['Database']['dbtype'] ? $config['Database']['dbtype'] : 'mysql'; $impexconfig['target']['server'] = $config['MasterServer']['servername']; $impexconfig['target']['user'] = $config['MasterServer']['username']; $impexconfig['target']['password'] = $config['MasterServer']['password']; $impexconfig['target']['database'] = $config['Database']['dbname']; $impexconfig['target']['tableprefix'] = $config['Database']['tableprefix']; } } else { $using_local_config = '' . $ImpExDisplay->phrases['using_impex_config'] . '
'; } $Db_target = new DB_Sql_vb_impex(); $Db_target->appname = 'vBulletin:ImpEx Target'; $Db_target->appshortname = 'vBulletin:ImpEx Target'; $Db_target->database = $impexconfig['target']['database']; $Db_target->type = $impexconfig['target']['databasetype']; $Db_target->connect($impexconfig['target']['server'], $impexconfig['target']['user'], $impexconfig['target']['password'], 0); $Db_target->select_db($impexconfig['target']['database']); // ############################################################################# // Session start // ############################################################################# require_once ($systempath . 'impex/ImpExSession.htm'); require_once ($systempath . 'impex/ImpExController.htm'); $ImpEx = new ImpExController(); $session_state = $ImpEx->return_session($Db_target, $impexconfig['target']['tableprefix']); if ($session_state) { $ImpExSession = $session_state; } else { $ImpExSession = new ImpExSession(); } // ############################################################################# // Requires // ############################################################################# require_once ($systempath . 'impex/ImpExDisplay.htm'); require_once ($systempath . 'impex/ImpExDisplayWrapper.htm'); switch ($ImpExSession->get_session_var('targetsystem')) { case 350: require_once ($systempath . 'impex/ImpExDatabase_350.htm'); break; case 309: require_once ($systempath . 'impex/ImpExDatabase_309.htm'); break; default: require_once ($systempath . 'impex/ImpExDatabase_350.htm'); break; } require_once ($systempath . 'impex/ImpExData.htm'); require_once ($systempath . 'impex/ImpExModule.htm'); require_once ($systempath . 'impex/ImpExFunction.htm'); require_once ($systempath . $impexconfig['system']['language']); ################## // ############################################################################# // Help page echo // ############################################################################# if($usewrapper) { $ImpExDisplay = new ImpExDisplayWrapper(); } else { $ImpExDisplay = new ImpExDisplay(); } $Db_source = new DB_Sql_vb_impex(); $ImpExDisplay->phrases =& $impex_phrases; // ############################################################################# // create vbfields // ############################################################################# if($ImpExSession->get_session_var('vbfields') != 'done') { require_once($systempath. 'impex/vbfields.htm'); $queries = &retrieve_vbfields_queries($impexconfig['target']['tableprefix']); foreach ($queries AS $query) { $Db_target->query($query); } $ImpExSession->add_session_var('vbfields', 'done'); } // ############################################################################# // initalise error store // ############################################################################# if($ImpExSession->get_session_var('errortable') != 'done') { // Just incase the session was removed and the error table is still there. $Db_target->query("DROP TABLE IF EXISTS {$impexconfig['target']['tableprefix']}impexerror"); // Create a new one. $error_table = "CREATE TABLE {$impexconfig['target']['tableprefix']}impexerror ( errorid bigint(20) unsigned NOT NULL auto_increment, datatype varchar(50) NOT NULL default '', importid bigint(20) NOT NULL default 0, error varchar(250) default 'NULL', remedy varchar(250) default 'NULL', PRIMARY KEY (errorid) ) TYPE=MyISAM"; $Db_target->query($error_table); $ImpExSession->add_session_var('errortable', 'done'); } $ImpExSession->_target_db =& $Db_target; // ############################################################################# // Add vars to session // ############################################################################# $ImpExSession->add_session_var('systempath', $systempath); $ImpExSession->add_session_var('sourceexists', $impexconfig['sourceexists']); $ImpExSession->add_session_var('targettableprefix', $impexconfig['target']['tableprefix']); $ImpExSession->add_session_var('targetdatabasetype', strtolower($impexconfig['target']['databasetype'])); $ImpExSession->add_session_var('sourcetableprefix', $impexconfig['source']['tableprefix']); $ImpExSession->add_session_var('sourcedatabasetype', strtolower($impexconfig['source']['databasetype'])); $ImpExSession->add_session_var('errorlogging', $impexconfig['system']['errorlogging']); $ImpExSession->add_session_var('pagespeed', $impexconfig['system']['pagespeed']); if($impexconfig['sourceexists']) { if ($impexconfig['source']['databasetype'] == 'mssql') {// Check if mssql support is in php or should a connection be made via pure style ....... if(!function_exists('mssql_connect')) { $ImpExDisplay->display_error($ImpExDisplay->phrases['no_mssql_support']); $ImpExDisplay->display_error($ImpExDisplay->phrases['no_mssql_support_link']); exit; } } $Db_source->appname = 'vBulletin:ImpEx Source'; $Db_source->appshortname = 'vBulletin:ImpEx Source'; $Db_source->database = $impexconfig['source']['database']; $Db_source->type = $impexconfig['source']['databasetype']; $Db_source->reporterror = 0; $Db_source->connect($impexconfig['source']['server'], $impexconfig['source']['user'], $impexconfig['source']['password'], 0); $Db_source->reporterror = 1; if ($Db_source->link_id) { // got connected switch ($Db_source->geterrno()) { case 1046: $ImpExDisplay->display_error($ImpExDisplay->phrases['no_source_set']); exit; break; case 1049: $ImpExDisplay->display_error($ImpExDisplay->phrases['source_not_exsist']); exit; break; } } else { $ImpExDisplay->display_error($ImpExDisplay->phrases['failed_connection']); exit; } // php versions before 4.2.0 do nasty things with multiple connections to the same server // See http://uk.php.net/manual/en/function.mysql-connect.php if (($Db_target->link_id === $Db_source->link_id) AND phpversion() < '4.2.0') { $Db_target->require_db_reselect = true; $Db_source->require_db_reselect = true; } } $ImpEx->get_post_values($ImpExSession,$_POST); // ############################################################################# // Autosubmit // ############################################################################# $ImpExDisplay->update_basic('autosubmit',$ImpExSession->get_session_var('autosubmit')); // ############################################################################# // Autosubmit & Home // ############################################################################# $currentmoduleworking = $ImpExSession->any_working(); $system = $ImpExSession->get_session_var('system'); $module = $ImpExSession->get_session_var('module'); if ($module == '000' OR $module == NULL) { if ($system != '' AND $system != 'NONE') { // When there is a system chosen, but not running, build the module list. require_once ("{$systempath}impex/systems/{$system}/000.htm"); $ImpExSession->build_module_list($ImpExDisplay); } else { if ($system == '') { // Catching a blank string $ImpExSession->set_session_var('system', 'NONE'); } else { // Nothing chosen yet $ImpExSession->set_session_var('system', $system); $ImpExDisplay->update_basic('title', $system); } } } echo $ImpExDisplay->page_header() . '
'; if ($using_local_config) { echo '
' . $using_local_config . '
'; } // ############################################################################# // Resume // ############################################################################# if ($currentmoduleworking != NULL) { // Ensure we have the $system_000.htm module to extend from require_once ("{$systempath}impex/systems/{$system}/000.htm"); // Get the one we are working with. require_once ("{$systempath}impex/systems/{$system}/{$currentmoduleworking}.htm"); // Create that class $classname = "{$system}_{$currentmoduleworking}"; $ModuleCall = new $classname($ImpExSession); // Then call resume on it $ModuleCall->resume($ImpExSession, $ImpExDisplay, $Db_target, $Db_source); } // ############################################################################# // Init // ############################################################################# if ($module != '000' AND $module != NULL AND $currentmoduleworking == FALSE) { $ImpExDisplay->update_basic('displaymodules', 'FALSE'); // Ensure we have the $system_000.htm module to extend from require_once("{$systempath}impex/systems/{$system}/000.htm"); // Check if its a core module if ($module < 900) { require_once ("{$systempath}impex/systems/{$system}/{$module}.htm"); // Create the name of the class to instantiate $classname = "{$system}_{$module}"; } else { require_once ("{$systempath}impex/cleanup.htm"); // Create the name of the class to instantiate $classname = "core_{$module}"; } // Instantiate it $ModuleCall = new $classname($ImpExSession); // If its been FINISHED, then we are restarting it if ($ImpExSession->get_session_var($module) == 'FINISHED') { $ModuleCall->restarted(); } // Sets the current to working $ModuleCall->using($ImpExSession); // Actually calls the init and does the work $ModuleCall->init($ImpExSession, $ImpExDisplay, $Db_target, $Db_source); } // ############################################################################# // Update & Display // ############################################################################# $ImpEx->updateDisplay($ImpExSession, $ImpExDisplay); echo $ImpExDisplay->display($ImpExSession); if ($displayerrors) { echo $ImpExSession->display_errors('all'); } // ############################################################################# // Session End // ############################################################################# $ImpEx->store_session($Db_target, $impexconfig['target']['tableprefix'], $ImpExSession); echo ""; echo $ImpExDisplay->page_footer(); /*======================================================================*\ || #################################################################### || # Downloaded: 11:22, Wed Dec 14th 2005 || # CVS: $RCSfile: index.htm,v $ - $Revision: 1.43 $ || #################################################################### \*======================================================================*/ ?>
Comment