Support » Fixing WordPress » Cookie Trouble

  • denyerec

    (@denyerec)


    Hi there,
    Under WP .72 I used a cookie to set style information as part of a home-brew style switcher, however since upgrading my setcookie() is failling as the page headers are already over and done with.
    I have reason to believe that the new wp-blog-header.php is sending out some output somewhere and thus preventing me from setting the cookie after the header has been included.
    Anyone got any ideas if this is the case?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Matt Mullenweg

    (@matt)

    What error message does it give you?

    denyerec

    (@denyerec)

    The good old “setcookie() canot run, headers have already been sent out” message, which is what you’re destined to receive if content has been transmitted prior to a header request.

    Moderator Matt Mullenweg

    (@matt)

    Okay, does it give you line numbers with that? Are you running the latest version of WP?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cookie Trouble’ is closed to new replies.