Chrisj Posted January 8, 2010 Share Posted January 8, 2010 I had my web host move my site to another server. All looks well upon testing, but when I return from a test payment, from Paypal, I see this warning at the top of the page. I don't know what it means. Can you enlighten me as to what it means and how I might remedy it? Thanks Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/payment/paypal_success.php:2) in /home/public_html/classes/config.php on line 19 Quote Link to comment https://forums.phpfreaks.com/topic/187732-cannot-send-session-cache-limiter/ Share on other sites More sharing options...
MadTechie Posted January 8, 2010 Share Posted January 8, 2010 The part "headers already sent" means you have output before the command, whats the first 5 lines of paypal_success.php ? Quote Link to comment https://forums.phpfreaks.com/topic/187732-cannot-send-session-cache-limiter/#findComment-991127 Share on other sites More sharing options...
Chrisj Posted January 8, 2010 Author Share Posted January 8, 2010 Thanks for your help. The file is not much longer than 5 lines, so I added it all below for your review. I look forward to your reply. <?php include_once ('../classes/config.php'); include_once ('../classes/functions.inc.php'); session_start(); $template = "../templates/main.htm"; $inner_template1 = "../templates/inner_paypal_success.htm"; //middle of page $TBS = new clsTinyButStrong; $TBS->NoErr = true; // no more error message displayed. $TBS->LoadTemplate("$template"); $TBS->MergeBlock('mp', $members_full); $TBS->Render = TBS_OUTPUT; $TBS->Show(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/187732-cannot-send-session-cache-limiter/#findComment-991136 Share on other sites More sharing options...
MadTechie Posted January 8, 2010 Share Posted January 8, 2010 okay can you also post config.php lines 17-22 you could try moving session_start(); up two lines <?php session_start(); //new include_once ('../classes/config.php'); include_once ('../classes/functions.inc.php'); //session_start();//old Quote Link to comment https://forums.phpfreaks.com/topic/187732-cannot-send-session-cache-limiter/#findComment-991141 Share on other sites More sharing options...
PFMaBiSmAd Posted January 8, 2010 Share Posted January 8, 2010 Based on the line number where the output is being started at, you have two new-lines or lines with something in them before the first opening <?php tag in the paypal_success.php file or the code you posted is not from the /home/public_html/payment/paypal_success.php file. Quote Link to comment https://forums.phpfreaks.com/topic/187732-cannot-send-session-cache-limiter/#findComment-991146 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.