metaphziks Posted September 27, 2006 Share Posted September 27, 2006 Hello I'm having an issue with my site's search page. The search app I'm using is called Site Search Pro. Their customer service sucks, so I have no options other than to search online. I'm getting this error at the top of my search page:Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /vservers/infadesign/htdocs/searchpro/index.php:10) in /vservers/infadesign/htdocs/searchpro/index.php on line 121I'm not a php developer, so it's frustrating when I get stuck. This error happens when I wrap my page around the code Site Search Progenerates, for you to plug into your own designed page. Now, when the code is generated by SSP, there is no error, but when I wrap my design around it, it gives me that error above.I also checked my page for errors and there is none. I was told that if there is a space before my opening and closing php tag that may cause the error, but there are no spaces. Here is a link to my site, to see the error just click on the search putton on the side nav.http://www.metaphiziks.comIf anyone can help me I would appriciate it.ThanksRob. Quote Link to comment Share on other sites More sharing options...
bljepp69 Posted September 27, 2006 Share Posted September 27, 2006 Looks like you are using cookie based sessions. You must call session_start() before anything is output to the browser. When you wrap your site around the search function, you are outputting information to the browser before the call to session_start() happens. This might be fixed by simply adding the following to the very top of your index.php page for your search:<?php session_start();?>Then go on with your page processing. Note: remove the call to session_start() from later on in the page. Quote Link to comment 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.