Welcome Guest, Not a member yet? Register   Sign In
CI, OpenAds & Cookies
#1

[eluser]gRoberts[/eluser]
Hey all,

My client has decided that he wants to use the XML-RPC feature of OpenAds. It seems that when it calls setcookie or if I change the setcookie call to CI's set_cookie, it results in the same error.

It returns an error stating that the output has already been sent.

Any idea's?
#2

[eluser]gtech[/eluser]
if your using set cookie I believe it needs to send header information to the browser..

now if you have displayed anything before you make a call to set cookie headers will have already been sent..

so if you have an

echo
print_r
or you have loaded a view
or you have a space outside the <?php ?> tags
or you have done anything to send content to the browser before you set the cookie within the page request you will get a headers already sent message.

you could try commenting out code before you set the cookie until it works.
#3

[eluser]gRoberts[/eluser]
I'm using Smarty templates, and including the template that calls the openads code.

It looks like we're going back to JS.

Cheers




Theme © iAndrew 2016 - Forum software by © MyBB