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

Warning: session_start()

Thread began 7/11/2011 10:14 am by ijs174940 | Last modified 7/11/2011 11:38 am by ijs174940 | 797 views | 4 replies |

ijs174940Beta Tester

Warning: session_start()

I have a record set and some session date in an email but when the page loads that sends it I get

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at

I understand the principle behind it but to fix it means hand coding areas inside some of the file that the extension makes, but I am sure I have not had this issue before

Sign in to reply to this post

Jason ByrnesWebAssist

see this post for detail on the headers already sent error:
showthread.php?t=19285

Sign in to reply to this post

ijs174940Beta Tester

Hi Jason

I understand the usuall causes but the error refers to the email made by the extensions.

****************************************************************

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/gocreate/public_html/webassist/email/waue_manage_checkout_2.php:150) in /home/gocreate/public_html/manage_checkout.php on line 103

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/gocreate/public_html/webassist/email/waue_manage_checkout_2.php:150) in /home/gocreate/public_html/manage_checkout.php on line 103


****************************************************
***********************CODE************************
****************************************************

$MailBody = $MailBody . " <td colspan=\"3\" valign=\"top\" style=\"padding: 3px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold;\"><span style=\"color: #ff0099; \">Venues</span><br>\r\n";
$MailBody = $MailBody . " ";

$PubList = explode(", ", $GoCreate_Cart->DisplayInfo("Publist"));
$i=0; $f=0;
$venuecount=count($PubList);
do { ++$f;
mysql_select_db($database_GoCreate, $GoCreate);
$query_rs_venue_loop = "SELECT * FROM gkprofiles WHERE CUSTID = '".$PubList[$i]."'";
$rs_venue_loop = mysql_query($query_rs_venue_loop, $GoCreate) or die(mysql_error());
$row_rs_venue_loop = mysql_fetch_assoc($rs_venue_loop);
$totalRows_rs_venue_loop = mysql_num_rows($rs_venue_loop);
(#line 150->#) echo "<strong>".$row_rs_venue_loop['CUSTID']."</strong> : <span style=\"color: #F00;\">". $row_rs_venue_loop['Pub']."</span>, ".$row_rs_venue_loop['Address1'].", ".$row_rs_venue_loop['PostCode']."<br />";
++$i;
} while($venuecount != $f);@mysql_data_seek($rs_venue_loop, 0); $row_rs_venue_loop = mysql_fetch_assoc($rs_venue_loop);
$MailBody = $MailBody . "</td>\r\n";
$MailBody = $MailBody . " </tr>\r\n";

At a bit of a loss why it is throwing the two errors. The page works fine in the web site it is only the email that is causing the error.

Sign in to reply to this post

Jason ByrnesWebAssist

line 150 is an echo:
echo "<strong>".$row_rs_venue_loop['CUSTID']."</strong> : <span style=\"color: #F00;\">". $row_rs_venue_loop['Pub']."</span>, ".$row_rs_venue_loop['Address1'].", ".$row_rs_venue_loop['PostCode']."<br />";

causing html output to the page, which cases the error.


change it to:
$MailBody = $MailBody . "<strong>".$row_rs_venue_loop['CUSTID']."</strong> : <span style=\"color: #F00;\">". $row_rs_venue_loop['Pub']."</span>, ".$row_rs_venue_loop['Address1'].", ".$row_rs_venue_loop['PostCode']."<br />";

so it will be concatenated to the mail body string instead of echoing it.

Sign in to reply to this post

ijs174940Beta Tester

That did it Jason, I should have spotted the echo sticking out like a sore thumb!

So it was just an oversite by the script I presume as I have put it inside the loop with the recordset, will know to look out for it in the future.

Sign in to reply to this post

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...