Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Header already sent problem
Author « Topic »  

laleirina
Advanced Member

United Kingdom
173 Posts

Posted - 07/29/2019 :  02:39:11  
We are getting this error on our home page:

'Warning: Cannot modify header information - headers already sent by (output started at /data02/c8670187/public_html/index.php:1) in /data02/c8670187/public_html/vsadmin/inc/incfunctions.php on line 1672'

You can see it here: https://www.intelligenthomeonline.com

This is the session start information on the index.php

<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>

And here is the line which causes the problem

<?php include "vsadmin/inc/inccrosssell.php"; ?>

I did a bit of googling about this issue, and it seems to have to do with the php session being already started.

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 07/29/2019 :  02:51:03  
Hi Irina,
Is this fixed now as I'm not seeing the warning.

Usually this warning occurs when you have a duplicate include line or a space before the opening <?php tag at the top of the page.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

laleirina
Advanced Member

United Kingdom
173 Posts

Posted - 07/29/2019 :  02:58:56  
I get the problem in Edge, Firefox and Chrome. Not sure why you are not seeing it.

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 07/29/2019 :  03:07:00  
I see it on edge and chrome but not firefox.

Are you sure you don't have any white space at all before the opening <?php tag?

If you want to click on my name and send me FTP details I'll take a quick look for you



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 07/29/2019 03:07:39

laleirina
Advanced Member

United Kingdom
173 Posts

Posted - 07/29/2019 :  03:15:40  
I edit the website in Dreamweaver, and there is no white space before the starting PHP entry.

I'll send you the FTP details now, thank you.

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 07/29/2019 :  03:27:10  
That should be fixed now.
You had a BOM (byte order mark) before the opening <?php tag

I've mailed you further details.



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

laleirina
Advanced Member

United Kingdom
173 Posts

Posted - 07/29/2019 :  03:45:40  
Outstanding. Thank you very much, Phil
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000