Jump to content


Error in my search page.

  • Please log in to reply
1 reply to this topic

#1 metaphziks

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 27 September 2006 - 04:27 AM

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 121

I'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 Pro
generates, 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.


If anyone can help me I would appriciate it.



#2 bljepp69

  • Members
  • PipPipPip
  • Advanced Member
  • 111 posts
  • LocationSacramento, CA

Posted 27 September 2006 - 04:39 AM

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:


Then go on with your page processing.  Note: remove the call to session_start() from later on in the page.
Guru? No, but I do RTFM

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users