close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Cannot send session cache limiter - headers already sent

Thread began 9/30/2010 6:00 pm by judy392497 | Last modified 10/28/2010 12:09 pm by Jason Byrnes | 1375 views | 13 replies |

judy392497

Cannot send session cache limiter - headers already sent

Getting this message:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/t/e/b/tebodeluxe/html/principe/confirm.php:2) in /home/content/t/e/b/tebodeluxe/html/principe/WA_eCart/WA_eCart_Definition_PHP.php on line 479


Here are lines 478 through 496:

function Session_GetContent() {
if (!session_id()) session_start();
$retArray = array();
if (isset($_SESSION[$this->CartName."_Items"]) && $_SESSION[$this->CartName."_Items"] != "") {
$theCartString = $_SESSION[$this->CartName."_Items"];
$theItemArray = explode("§",$theCartString);
for ($x=0; $x<sizeof($theItemArray); $x++) {
$theValueArray = explode("|WAECART|",$theItemArray[$x]);
$toExec = "new ".$this->CartName. "_ItemDefinition(";
for ($y=0; $y<sizeof($theValueArray); $y++) {
if ($y != 0) $toExec.=", ";
$toExec .= '"'.str_replace("\'","'",addslashes($theValueArray[$y])).'"';
}
eval("\$nextItem =".$toExec.");");
$retArray[sizeof($retArray)] = $nextItem;
}
}
return $retArray;
}

Sign in to reply to this post

Jason ByrnesWebAssist

the error is reporting that there is output to the confirm page around line 2:
output started at /home/content/t/e/b/tebodeluxe/html/principe/confirm.php:2


usually it means there is a blank line or space outside of the php tags "<?php" or "?>"

look at line 1 and 2 and make sure there are no blank lines or spaces outside of the php tags.

Sign in to reply to this post

judy392497

Solved

Perfect, thanks!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

Sign in to reply to this post

paul377172

Hi I'm having a problem trying to clearing the cart but keeping the user logged in. I get this error message
Warning: session_start() [function.session-start.php]: Cannot send session cache limiter - headers already sent (output started at E:\domains\zanylane.biz\wwwroot\checkout_success.php:35) in E:\domains\zanylane.biz\wwwroot\checkout_success.php on line 69 Warning: session_regenerate_id() [function.session-regenerate-id.php]: Cannot regenerate session id - headers already sent in E:\domains\zanylane.biz\wwwroot\checkout_success.php on line 70

Attached Files
checkoutsuccess.zip
Sign in to reply to this post

Jason ByrnesWebAssist

please compress the checkoutsuccess.php file into a zip archive.


the rtf file you have sent has converted all of the code to be double spaced. I will need to have a copy of the original php file, not the copied and pasted code.

Sign in to reply to this post

paul377172

Ok sorry about that.

Attached Files
checkout_success.zip
Sign in to reply to this post

Jason ByrnesWebAssist

change:
session_start();

to:
@session_start();


and change:
session_regenerate_id();

to:
@session_regenerate_id();

Sign in to reply to this post

paul377172

Thanks that has fixed the error messages but its still logging me out

Sign in to reply to this post

Jason ByrnesWebAssist

if you are being logged out, the security assist is using a different session that "UserID" send a copy of your login page so i can see what sessions are being created on login.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...