Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning: Cannot modify header information - headers already sent by


Guest

Recommended Posts

Hi,

 

Have a strange error

 

I copied an osc site thats been working fine and started amending it for a new client, any one else do that :-" I have Fast Easy checkout installed in the original site but in the new site it's throwing the error

 

Warning: Cannot modify header information - headers already sent by (output started at /~/~/~/create_account1.php:729) in /~/~/~/includes/fec/login_box.php on line 12

 

beacuse of these two lines of code in /includes/fec/login_box.php

 

			setcookie("TEMPCOOKIE", "CookieOn", time() + 60 * 60 * 24 * 365 * 3); 
		$cookieinfo = $HTTP_COOKIE_VARS["TEMPCOOKIE"];

 

If I comment out the code I no longer get the error, can anyone shed some light on it?

 

I've looked through some posts but not found anything that gets rid of the problem

 

Thanks,

Ally

Link to comment
Share on other sites

Hi,

 

Have a strange error

 

I copied an osc site thats been working fine and started amending it for a new client, any one else do that :-" I have Fast Easy checkout installed in the original site but in the new site it's throwing the error

 

Warning: Cannot modify header information - headers already sent by (output started at /~/~/~/create_account1.php:729) in /~/~/~/includes/fec/login_box.php on line 12

 

beacuse of these two lines of code in /includes/fec/login_box.php

 

			setcookie("TEMPCOOKIE", "CookieOn", time() + 60 * 60 * 24 * 365 * 3); 
		$cookieinfo = $HTTP_COOKIE_VARS["TEMPCOOKIE"];

 

If I comment out the code I no longer get the error, can anyone shed some light on it?

 

I've looked through some posts but not found anything that gets rid of the problem

 

Thanks,

Ally

 

 

I have FEC installed -- not many people have installed it with too much success, 'cause it's complicated, and it's a complicated merge as well if you have other contributions. And the instructions aren't too well-written out (actually, they're just plain wrong). But it's a great contribution, and it involved a lot of work on the author's behalf.

 

Regardless, I have nothing even remotely similar of that nature in my /fec/login_box.php. I can e-mail you mine, if you'd like, and you can see if that works. I use create_account1.php, also, so we probably have similar -- if not identical -- contribution versions. My lines 728-729 on that file are:

<?php include(DIR_WS_INCLUDES . 'footer.php'); ?>

<!-- footer_eof //-->

 

I would just copy my create_account1, and my login_box.php, and try uploading those. You can find me on my profile -- use the e-mail option, or Yahoo Messenger. Anyway, I zipped the two files together, and you can download them here: www.thevisiondepot.com/create_account1.zip

 

Good luck. Hope this helps.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...