Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02-27-2012, 11:51 PM
webasker webasker is offline
 
Join Date: Jan 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.!
Reply With Quote
  #2  
Old 02-28-2012, 02:42 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 02-28-2012, 03:09 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #4  
Old 02-28-2012, 09:58 PM
webasker webasker is offline
 
Join Date: Jan 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello again.

i have doo exaxli what you say.. but is dont work.
i have stell a same problem..
texedit is dont help..
Reply With Quote
  #5  
Old 02-28-2012, 10:39 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webasker View Post
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.
Reply With Quote
  #6  
Old 02-29-2012, 12:09 AM
webasker webasker is offline
 
Join Date: Jan 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
?>
Reply With Quote
  #7  
Old 02-29-2012, 02:19 AM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 02-29-2012, 03:31 AM
webasker webasker is offline
 
Join Date: Jan 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>&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
// ################################################## ###########################
?>
Reply With Quote
  #9  
Old 02-29-2012, 03:48 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Благодарность от:
Max Taxable
  #10  
Old 02-29-2012, 03:30 PM
webasker webasker is offline
 
Join Date: Jan 2012
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04230 seconds
  • Memory Usage 2,269KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete