Pear and Session Header Problem |
[eluser]adamfairholm[/eluser]
Hey there, This has really stumped me, mainly because its a little out of my area of knowledge with code igniter (and headers). I have integrated PEAR with CI (following the wiki guide) and for some reason I get this error message on all my pages: A PHP Error was encountered Code: Severity: Warning I am familiar with the role of headers, but what I can't understand is why Db_session is trying to send headers here - I don't call it anywhere on the site, and use Freak Auth. I also have the Zend Framework installed. Funny thing is, they were all integrated with guides from 4webby, so that leads me to believe it is a problem with my stuff. Is there anything I could be doing in my code that would be conflicting with PEAR in this way or causing a problem with the Db_session library? Here is the section of code that line 248 hangs out in: Code: /** Any guidance would be greatly appreciated!
[eluser]adamfairholm[/eluser]
Note to self: take a long deep break and THINK before posting to Code Igniter forum. I remembered that header problems can often times be caused by spaces after the ?> php tag. Sure enough, the PEAR hook had a space and that was tripping it up. Hopefully this is somewhat useful to someone who runs into the same problem... ...right...
[eluser]pgsjoe[/eluser]
Wow, just saved me a headache by looking at two posts. It really is the space after the ?> that was preventing mine from working. I was always wondering why the 'redirect' function never worked, now I know. This helped tremendously! |
Welcome Guest, Not a member yet? Register Sign In |