vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Impex Error Pleas Look.! (https://vborg.vbsupport.ru/showthread.php?t=279249)

webasker 02-27-2012 11:51 PM

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.!

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

Quote:

Originally Posted by Lynne (Post 2304079)
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

Quote:

Originally Posted by webasker (Post 2304428)
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 [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>&nbsp;</p><p>&nbsp;</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>&nbsp;</p><p>&nbsp;</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>&nbsp;<br />
<td class="smallfont"><input type="text" style="padding-left:5px; font-weight:bold; width:250px" name="customerid" value="" tabindex="1" /><br /></td>
<td>&nbsp;</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
// ################################################## ###########################
?>

kh99 02-29-2012 03:48 AM

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


All times are GMT. The time now is 11:35 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01392 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete