mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:47

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: 18 Feb 2005, 12:54 

Joined: 17 Feb 2005, 12:12
Posts: 2
I have a bilingual site and only 2 of my 10 pages show the error:
arning: session_start(): Cannot send session cache limiter - headers already sent

I can not understand why they give an error while all files are within the same folder. I copied the text of the page within a working page (a page without an error) and saved it to replace the faulty page. But still the error is coming up within these two pages.
Any help would be appreciated

This is my php part within the script which only causes errors on two of the 10 pages
<?php
session_start();
$slogin_noauthpage = 0;
$slogin_pagetitle = "Page title";
include_once ("slogin_lib.inc.php");
?>


Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/virtual/site133/fst/var/www/html/soll/Accomplishment.php:1) in /home/virtual/site133/fst/var/www/html/soll/Accomplishmentsitalo.php on line 2


Report this post
Top
 Profile  
Reply with quote  
PostPosted: 18 Feb 2005, 13:40 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
giovi:

> I have a bilingual site and only 2 of my
> 10 pages show the error: arning: session_start():
> Cannot send session cache limiter - headers
> already sent I can not understand why they
> give an error while all files are within the same
> folder. I copied the text of the page within a
> working page (a page without an error) and
> saved it to replace the faulty page. But still the
> error is coming up within these two pages.
> Any help would be appreciated

Hi. Please check that there are not any content before the "<?" tag. No HTML, text, white space; not even an empty line.

Most probably the web server has PHP output-buffering disabled. That causes that any content is sent directly to the browser as the script is running (if enabled, the PHP script is executed until completion and then the result is sent to the browser).

Session data must be sent before any content. So, if the web server has already sent anything (even a whitespace) then it cannot send session data.

To check if your web server has output buffering disabled (or limited to X bytes), go to the admin page and click the "Show PHP configuration" link. There you can find the output_buffering option.

If you still have problems, let me know.


Regards,

Mario A. Valdez-Ramirez.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group