Jump to content
xisto Community
hype

Cookie Error help...

Recommended Posts

When I reach my forum I see this

Unable to add cookies, header already sent.File: /home/admins/public_html/forum/includes/init.php
Line: 919


Can someone tell me how to fix this?

Share this post


Link to post
Share on other sites

That basically means that the MIME type headers for your website were already sent to the client browser, and therefore any attempts to set cookies will fail, since cookie data must be sent to the client browser as part of the MIME type header.This can happen a number of different ways; such as previous calls to the header() function, or more commonly, white space before the <?php tag..I suggest looking at the source code to your PHP pages (namely init.php, and any other PHP files that are included by init.php) and remove any whitespace from the very beginning of the file, specifically right before the <?php tag..Remember, as soon as the PHP Processor encounters non-PHP code, it assumes it is output and automatically starts sending the non-PHP page data to the client browser, which means it must first send the page headers.I hope that helps.

Share this post


Link to post
Share on other sites

Just in case that didn't explain fully, the PHP has to be before and HTML tags, too. Your document must start like this:

<?phpsetcookie(stuff...);stuff...?><!DOCTYPE etc.><HTML>etc.

Share this post


Link to post
Share on other sites

Thanx... I've gotten it up already.. I delete the error files and reupload it again... I'm a blur headed freak... :P

Share this post


Link to post
Share on other sites

lol, but they approve it... Wonder if its possible for 2 different member or hosting to have same cpanel username...

Share this post


Link to post
Share on other sites

Wonder if its possible for 2 different member or hosting to have same cpanel username...

it's okay..just share your password to us then the more member got it the more different member got the same cpanel username if it' won't been modified.
:lol:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.