Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR by create a new account...


paulchen2005

Recommended Posts

Hi,

 

if i create a new account, I receive the following error message

 

Warning: Cannot modify header information - headers already sent by (output started at
.../shop/catalog/includes/languages/german/create_account.php:31) in 
.../shop/catalog/includes/functions/general.php on line 71

 

the file languages/german/create_account.php has only 29 lines ?

 

 

i have check the line 31 in catalog/create_account.php

if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);

line 31+32

if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);

 

and i have check the line 71 in general.php

	header('Location: ' . $url);

 

from

	if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
  if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
	$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
  }
}

header('Location: ' . $url);

tep_exit();
 }

 

 

what can i do ? what must i change ?

Link to comment
Share on other sites

the file languages/german/create_account.php has only 29 lines ?

 

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

Open the file with a program that has a line numbering system, like dreamweaver. Delete the two blank lines below 29.

 

Editing that file should fix your general.php problem.

 

http://www.oscommerce.com/forums/index.php?showtopic=222268

BACKUP your current files before editing. Did I mention to BACKUP your current files, first?

 

"I'm not a hero, I'm a firefighter; it is my job to save lives. I'm a Jesus Christ Firefighter saving souls from the flames!"

 

Installed contribs: Almost XP Buttons *** Attribute Sort *** Auto Thumbnail Change *** Column Product Listing (for SPPC v4.0) *** Contact Us Registered *** Country-State Selector 1.3.3J *** CC# Db Mask 1.3 *** Email Order Clickable Link *** Extra Images *** Linkpoint API CVM *** Loginbox Best *** New Spiders *** New Attrib Mgr v.5.0 w/ New Attrib Include *** Multi Product Update *** MySQL Cron *** Pricing per Category *** Product Listing in Columns v2.2 [later upgraded to CPL(SPPC)] *** Product Sort v1.6 *** Seperate Pricing Per Customer v4.15 *** Simple Down for Maintenance [Gokou] *** Ultimate_SEO_URLs_v2.2.2 *** UPS Worldship Export 1.3 *** Welcome Email username & password

Link to comment
Share on other sites

Open the file with a program that has a line numbering system, like dreamweaver. Delete the two blank lines below 29.

 

Editing that file should fix your general.php problem.

Yes, that is it, thank you !!!

 

but why does a blank line caused such a error ?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...