CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Problem with headers

Print topic Send  topic

Author Message
alfonso

Posts: 121
Posted: 10/09/2011, 10:36 AM

I have a new server. I create projects like ever but when I publish, I get several errors like:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Common.php on line 34

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Common.php on line 34

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Common.php on line 35

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Common.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Common.php on line 37

Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\Classes.php:5682) in C:\Inetpub\vhosts\numan-biomasa.es\httpdocs\album.php on line 1041

What can I do? Thanks
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 10/09/2011, 2:58 PM

alfonso,

A couple of questions. On this new server do you have your PHP error messages turned on? Have you installed this exact project on another server (and did you get any messages)?
View profile  Send private message
datadoit
Posted: 10/09/2011, 5:28 PM

Make sure that in your Project Settings you choose the appropriate PHP
version that matches your server (4x or 5x).
alfonso

Posts: 121
Posted: 10/10/2011, 2:15 AM

I try it in 2 different windows servers and get similar errors. I try with php4 and php5 and get similar errors
View profile  Send private message
datadoit
Posted: 10/10/2011, 6:27 AM

Choose the appropriate PHP version - don't just click around trying both
and hoping for the best. Either you're using PHP4 or you're using PHP5
(the likely choice since PHP4 is deprecated). Save then republish the
entire project (F9).

By default CodeCharge will set itself to PHP4 on a fresh installation.
After doing your first project in PHP5, it will thereafter default to
PHP5 for future projects (a registry key).

If after doing the above you're still having issues, then contact
support from the Help menu within CodeCharge.
mamboBROWN


Posts: 1713
Posted: 10/10/2011, 9:22 AM

alfonso,

Excellent advice from datadoit. Give it a try and let us know. Also, I'm assuming that your PHP.ini display_errors is set to no. Is that correct?
View profile  Send private message
alfonso

Posts: 121
Posted: 10/11/2011, 12:11 AM

With php errors off, obviously don't appear any error in the web, but that should not be the right solution
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 10/11/2011, 8:49 PM

alfonso,

Can we see the code of your header? Maybe you have something in the header that is setting the warning messages off.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.