View Full Version : Impex Error Pleas Look.!
webasker
02-27-2012, 11:51 PM
I HAVE THIS ERROR..!
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/webasker.net/httpdocs/impex/ImpExConfig.php:1) in /var/www/vhosts/webasker.net/httpdocs/impex/impex_auth.php on line 22
Successful
Redirecting
whtat i need to do.!
Lynne
02-28-2012, 02:42 AM
That error usually occurs if you edited a file without using a basic text editor like notepad++ or if you added spaces at the top of the file. Start with a brand new ImpExConfig.php file, open it using a plain text editor, and do nothing except edit the needed lines.
Max Taxable
02-28-2012, 03:09 AM
That error usually occurs if you edited a file without using a basic text editor like notepad++ or if you added spaces at the top of the file. Start with a brand new ImpExConfig.php file, open it using a plain text editor, and do nothing except edit the needed lines.I'll add to this, you cannot even see the extra added characters or spaces in the file, until you view it with a proper text editor. TextEdit is another good freeware one to use.
Regular Notepad is notorious for adding stray characters at the top of PHP files. Don't edit php files with it.
webasker
02-28-2012, 09:58 PM
hello again.
i have doo exaxli what you say.. but is dont work.
i have stell a same problem..
texedit is dont help..
Max Taxable
02-28-2012, 10:39 PM
hello again.
i have doo exaxli what you say.. but is dont work.
i have stell a same problem..
texedit is dont help..The ImpExConfig.php file is incorrect somehow. That is what the error message is telling you.
Attach it to your next reply and I will fix it and send back.
webasker
02-29-2012, 12:09 AM
okay its here. But i dont wrigte database password vs vs ...
<?php
if (!defined('IDIR')) { die; }
################################################## ################## |;
# vBulletin - Licence Number
# ---------------------------------------------------------------- # |;
# Copyright �2000�2012 vBulletin Solutions Inc. All Rights Reserved. |;
# This file may not be redistributed in whole or significant part. # |;
# ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # |;
# http://www.vbulletin.com | http://www.vbulletin.com/license.html # |;
################################################## ################## |;
# The following settings allow ImpEx to connect to the vBulletin 3
# database into which you will be importing data.
####
#
# TARGET - The target is the vBulletin database (where the data is going to)
#
####
$impexconfig['target']['server'] = 'localhost';
$impexconfig['target']['user'] = 'username';
$impexconfig['target']['password'] = 'password';
$impexconfig['target']['database'] = 'vbulletin_forum';
$impexconfig['target']['tableprefix'] = '';
# If the system that is being imported from uses a database,
# enter the details for it here and set 'sourceexists' to true.
# If the source data is NOT stored in a database, set 'sourceexists' to false
$impexconfig['sourceexists'] = true;
####
#
# SOURCE - The source is the old forum database (where the data is coming from)
#
####
# mysql / mssql
$impexconfig['source']['databasetype'] = 'mysql'; // mysql OR mssql
$impexconfig['source']['server'] = 'localhost';
$impexconfig['source']['user'] = 'username';
$impexconfig['source']['password'] = 'password';
$impexconfig['source']['database'] = 'source';
$impexconfig['source']['tableprefix'] = '';
####
#
# DUPLICATE CHECKING
# Where unique import id's are available ImpEx can check for duplicates with some
# Tier2 systems this will need to be set to false.
#
# yahoo_groups, YaBB 2.1, Ikonboard 3.1.5 (for attachments)
#
####
define('dupe_checking', false);
################################################## #############################
####
#
# ADVANCED - For a standard import or a novice user leave the settings below.
#
####
// Advanced Target
$impexconfig['target']['databasetype'] = 'mysql'; // currently mysql only
$impexconfig['target']['charset'] = '';
$impexconfig['target']['persistent'] = false; // (true/false) use mysql_pconnect
// Advanced Source
$impexconfig['source']['charset'] = '';
$impexconfig['source']['persistent'] = false;
# pagespeed is the second(s) wait before the page refreshes.
$impexconfig['system']['language'] = '/impex_language.php';
$impexconfig['system']['pagespeed'] = 1;
$impexconfig['system']['errorlogging'] = false;
define('impexdebug', false);
define('emailcasesensitive', false);
define('forcesqlmode', false);
define('skipparentids', false);
define('shortoutput', false);
define('do_mysql_fetch_assoc', false);
define('step_through', false);
define('lowercase_table_names', false);
define('use_utf8_encode', false);
define('use_utf8_decode', true);
?>
Max Taxable
02-29-2012, 02:19 AM
If there are no extra spaces or characters at the top, the error is referring to line #22 which from your paste, appears to be this:
$impexconfig['target']['user'] = 'username';
Without the actual file as you have it on your server, nobody can do much for you.
webasker
02-29-2012, 03:31 AM
i dont understand what you say..
But i have open impex config froom netbeans.
And is give my this error.!
https://vborg.vbsupport.ru/external/2012/02/4.png
but its problem is not this..
impex config are the orginal froom vbulletin.com so is not can give error from start
the error line 22 is froom impex_auth not froom config.
--------------- Added 1330490355 at 1330490355 ---------------
i have open impex_auth.php froom netbeans and the are very much error.!
and line 22 are setcookie('bbcustomerid', CUSTOMER_NUMBER, 0, '', '');
<?php
/*================================================= =====================*\
|| ################################################## ###################### ||
|| # vBulletin - Licence Number
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is �2000-2012 vBulletin Solutions Inc. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ###################### ||
\*================================================ ======================*/
// ################################################## ###########################
// Now we have the config file we can do the auth
// ################################################## ###########################
if (!defined('IDIR')) { die; }
if ($_POST['do'] == 'login')
{
if (md5(strtoupper($_POST['customerid'])) == CUSTOMER_NUMBER)
{
setcookie('bbcustomerid', CUSTOMER_NUMBER, 0, '', '');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>ImpEx</title>
<meta http-equiv="Content-Type" content="text/html" />
<meta http-equiv="Refresh" content="1; URL="<?php echo htmlspecialchars($auth_redirect); ?>"/>
</head>
<body>
<p> </p><p> </p>
<blockquote><blockquote><p>
<b><?php echo $impex_phrases['successful']; ?></b><br />
<span><a href="<?php echo htmlspecialchars($auth_redirect); ?>"><?php echo $impex_phrases['redirecting']; ?></a></span>
</p></blockquote></blockquote>
</body>
</html>
<?php
exit;
}
}
// ################################################## ###########################
if ($_COOKIE['bbcustomerid'] != CUSTOMER_NUMBER)
{
?>
<html>
<body>
<form action="<?php echo htmlspecialchars($auth_redirect); ?>?do=login" method="post">
<input type="hidden" name="redirect" value="<?php echo htmlspecialchars($auth_redirect); ?>" />
<input type="hidden" name="do" value="login" />
<p> </p><p> </p>
<table class="tborder" cellpadding="0" cellspacing="0" border="0" width="450" align="center"><tr><td>
<!-- header -->
<div class="tcat" style="padding:4px; text-align:center"><b><?php echo $impex_phrases['enter_customer_number']; ?></b></div>
<!-- /header -->
<table cellpadding="4" cellspacing="0" border="0" width="100%" class="logincontrols">
<col width="50%" style="text-align:right; white-space:nowrap"></col>
<col></col>
<col width="50%"></col>
<tr valign="top">
<td> <br />
<td class="smallfont"><input type="text" style="padding-left:5px; font-weight:bold; width:250px" name="customerid" value="" tabindex="1" /><br /></td>
<td> </td>
</tr>
<!-- /login fields -->
<!-- submit row -->
<tr>
<td colspan="3" align="center">
<input type="submit" class="button" value="<?php echo $impex_phrases['continue']; ?>" accesskey="s" tabindex="3" />
</td>
</tr>
<!-- /submit row -->
</table>
</td></tr></table>
</form>
</body>
</html>
<?php
exit;
}
// ################################################## ###########################
// AUTH OVER
// ################################################## ###########################
?>
The error message is saying that the cookie cannot be set after there has been output. That's why line 22 in impex_auth.php is a call to setcookie(), but that's not where your problem is. The error message says that the ouptut came from ImpExConfig.php line 1, so that's where the problem must be.
What program did you use to edit ImpExConfig.php?
webasker
02-29-2012, 03:30 PM
u havw use all programs, text editor, notepad++ netbeans.
but netbeans give my this error in line 1 froom impex config.>>
https://vborg.vbsupport.ru/external/2012/02/4.png
but i dont know what i need to do exaxly
OK, well, I can see that we've told you the same thing several times, sorry about that. Have you tried starting with the original copy of ImpExConfig.php.new from the impex download, using notepad++, and editing it all over again?
I don't know why you're getting that message from netbeans. I use netbeans all the time but I've never seen that. Maybe it has something to do with character encoding.
webasker
02-29-2012, 06:50 PM
i have started witht the orginal copy of impex.config.php.new and i have use notepad++ and edit.
after have i send then to ftp and remove .new
but is still a same problem ...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.