Jump to content

Warning: session_start(): Cannot send session cookie error


Guest dostey

Recommended Posts

Hi,

I had installed cubecart and managed to get it up and running but, at the weekend, the following error messages have appeared at the very top of the page:

"Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/sessionStart.inc.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/sessionStart.inc.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/session.inc.php on line 94"

I've checked both .php files mentioned in the errors for trailing spaces as described elsewhere on the forum but they were both ok. Does anyone else have any other ideas?

I'm using cubecart version 3.0.11.

Thanks

Link to comment
Share on other sites

Guest jamesandsons

Hi,

I had installed cubecart and managed to get it up and running but, at the weekend, the following error messages have appeared at the very top of the page:

"Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/sessionStart.inc.php on line 40

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/sessionStart.inc.php on line 40

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/index.php:1) in /home/fhlinux184/d/dc-media.co.uk/user/htdocs/store/includes/session.inc.php on line 94"

I've checked both .php files mentioned in the errors for trailing spaces as described elsewhere on the forum but they were both ok. Does anyone else have any other ideas?

I'm using cubecart version 3.0.11.

Thanks

Hi, i had the exact same problem with version 3.0.12 with patches and found that if you completly overwrite the admin folder again with one from the origional download it then seems to work? i dont know why this is but it does... Hope this helps.

Link to comment
Share on other sites

Thanks for your reply jamesandsons. I tried what you suggested but unfortunately it made no difference for my site and the same errors still remain at the top of the page.

Link to comment
Share on other sites

I read a post about this earlyer, but cant find it again. It was about changing order of some lines in session.inc.php i think..

And one about your lang.inc.php and not having whitespaces before <?php and after ?>

Link to comment
Share on other sites

I got in touch with my hosting company to see if they knew what was causing this problem and the reply I got was "You need to send the sessionStart within the head tags of your page.".

Does anyone know what this means?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...