Warning: session_start(): Cannot send session cache limiter - headers already sent...
Hi All,
I have seen this question appear quite a few times on StackOverflow and other similar forum sites. I am getting the following error appearing at the top of my page: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/webuyany/public_html/websitecms/editenquiry.php:1) in /home/webuyany/public_html/websitecms/editenquiry.php on line 2
It does not appear to actually affect the functionality or look of the page but obviously I do not want errors appearing.
A bit of background to the problem and what I have done so far...
We recently transferred to a new server so that the site could be on its own and run a little bit quicker etc. It is only since this transfer that the error has occurred. Based on what other sites have recommended I have ensures that there is no white space before the [PHP]
-
Hello :) This is generally an issue with the script you are using. Are the versions of Apache and PHP on the new server the same as the previous server? Have you checked to see if the same PHP modules are enabled? Thank you. 0 -
Hi, I have had a little look and there do appear to be differences between the old and new. The old is using PHP 5.3.28 which us Deprecated whilst the new one is using PHP 5.4.31 With regards to the PHP modules there appears to be a lot ticked in the old one and not the new one (assuming this is from the exhaustive list). Would it be advisable to tick any that are not ticked and then rebuild? I have had to add a few modules here and there since migrating the site over (mysqli for example) so would hope that the above would fix it? Thanks again 0 -
Yes, you can enable the additional options under the "Exhaustive Options List" for PHP in EasyApache and then rebuild Apache/PHP. Thank you. 0 -
I ticked everything that had not been on the old server and rebuilt and am still seeing the same problem. I had hoped that maybe it would take a little while to kick in but this has now been over 12 hours! Thanks 0 -
It's possible the difference in PHP versions is the cause of the problem. I suggest consulting with the support or developers of the script you are using to see if there are any known solutions to the error message you are receiving. Thank you. 0 -
I also face this warning in my app. when i use localhost this warning not occur. Why this happen I don't know Any one can give any idea to fix this problem? 0 -
[quote="piyush_lahoti, post: 1746392">I also face this warning in my app. when i use localhost this warning not occur. Why this happen I don't know Any one can give any idea to fix this problem?
Could you elaborate on the exact issue you are experiencing? Where do you use "localhost"? Thank you.0 -
You can try this ob_start and ob_end_flush will work for you. 0
Please sign in to leave a comment.
Comments
8 comments