The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Impex Error Pleas Look.!
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.! |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
Quote:
Regular Notepad is notorious for adding stray characters at the top of PHP files. Don't edit php files with it. |
#4
|
|||
|
|||
hello again.
i have doo exaxli what you say.. but is dont work. i have stell a same problem.. texedit is dont help.. |
#5
|
||||
|
||||
Quote:
Attach it to your next reply and I will fix it and send back. |
#6
|
|||
|
|||
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); ?> |
#7
|
||||
|
||||
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. |
#8
|
|||
|
|||
i dont understand what you say..
But i have open impex config froom netbeans. And is give my this error.! 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 [DATE]1330490355[/DATE] at [TIME]1330490355[/TIME] --------------- 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 // ################################################## ########################### ?> |
#9
|
|||
|
|||
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? |
Благодарность от: | ||
Max Taxable |
#10
|
|||
|
|||
u havw use all programs, text editor, notepad++ netbeans.
but netbeans give my this error in line 1 froom impex config.>> but i dont know what i need to do exaxly |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|