Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2007
    Posts
    10
    Plugin Contributions
    0

    red flag Cannot send session cookie / Cannot modify header information

    Urgent help needed!

    I was testing a new customer site (to be found at www.nicholasdesign.biz/NicholasDesign) yesterday. After adding a new customer, I received the message that the table ndzen_customers does not exist. That is true, because the database tables are ALL all called zen_ (ndzen_ was an earlier version). Searching for ndzen_ using the Developer Toolkit, I found it in ONLY TWO files: includes/classes/shopping-cart.php and functions/function-prices.php.

    Thinking this was an easy thing to sort out, I changed the occurences of ndzen_ to zen_ . But the SH... started happening. On the shop site, I now have the messages:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /www/htdocs/w0088607/NicholasDesign/includes/classes/shopping_cart.php:2) in /www/htdocs/w0088607/NicholasDesign/includes/functions/sessions.php on line 108

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/htdocs/w0088607/NicholasDesign/includes/classes/shopping_cart.php:2) in /www/htdocs/w0088607/NicholasDesign/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0088607/NicholasDesign/includes/classes/shopping_cart.php:2) in /www/htdocs/w0088607/NicholasDesign/includes/init_includes/init_templates.php on line 78

    In addition, I cannot access http://www.nicholasdesign.biz/NicholasDesign/admin anymore, either because of similar problems. What should I do???

  2. #2
    Join Date
    Jan 2007
    Posts
    10
    Plugin Contributions
    0

    Default Re: Cannot send session cookie / Cannot modify header information

    Done! The reason was an extra line in the file ...

  3. #3
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default Re: Cannot send session cookie / Cannot modify header information

    I just transferred my site to a new hosting company and get these warnings now. Extra line where? Beginning or end? How could that happen? Did perhaps my hosting company screw up the edit when they changed configure.php? Any ideas?

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\configure.php:69) in C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\functions\sessions.ph p on line 102

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\configure.php:69) in C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\functions\sessions.ph p on line 102

    Warning: Cannot modify header information - headers already sent by (output started at C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\configure.php:69) in C:\Inetpub\vhosts\sacredfiremag.com\httpdocs\shop\includes\init_includes\init_te mplates.php on line 78


  4. #4
    Join Date
    Mar 2007
    Location
    Pepperell, Massachusetts
    Posts
    232
    Plugin Contributions
    1

    Default Re: Cannot send session cookie / Cannot modify header information

    Ah! It was a single blank line at the end of configure.php they edited.
    Fixed.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Cannot send session cookie / Cannot modify header information

    Hate when that happens ... thanks for the update as that will surely be of help to others!
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Feb 2007
    Posts
    7
    Plugin Contributions
    0

    Default Re: Cannot send session cookie / Cannot modify header information

    HELP.
    I'm having the same issues but I have no spaces or blank lines in my files. Here are my error messages:

    
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/muscleup/public_html/store/includes/configure.php:1) in /home/muscleup/public_html/store/includes/functions/sessions.php on line 108

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/muscleup/public_html/store/includes/configure.php:1) in /home/muscleup/public_html/store/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/muscleup/public_html/store/includes/configure.php:1) in /home/muscleup/public_html/store/includes/init_includes/init_templates.php on line 78


    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/muscleup/public_html/store/admin/includes/configure.php:1) in /home/muscleup/public_html/store/includes/functions/sessions.php on line 108

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/muscleup/public_html/store/admin/includes/configure.php:1) in /home/muscleup/public_html/store/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/muscleup/public_html/store/admin/includes/configure.php:1) in /home/muscleup/public_html/store/admin/includes/init_includes/init_templates.php on line 36

    Warning: Cannot modify header information - headers already sent by (output started at /home/muscleup/public_html/store/admin/includes/configure.php:1) in /home/muscleup/public_html/store/admin/includes/functions/general.php on line 34

    It all began when I turned ssl enabled to "true" - I saw the errors right away and switched them back to false...but the errors are still there! I'm completely lost as line 1 is perfect for both configure.php files.

    SOMEBODY PLEASE HELP!

  7. #7
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Cannot send session cookie / Cannot modify header information

    The ":1" in the error message means that somewhere on line 1 there's a problem.
    Perhaps there's an invisible character on that line?
    Perhaps your editor+FTP program have uploaded the file as double-spaced, thus corrupting the contents.
    If you're editing the file directly on the server, be aware that many server-side editors will bust the files and cause similar problems. Best to edit on a PC and upload via FTP.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  8. #8
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    Default Re: Cannot send session cookie / Cannot modify header information

    Hi i'm having a similar problem can anybody help me with this it was all ok then suddenly this appeared, i don't think it was anything i did, but if it was i would sure like to know so that i can avoid it in the future.

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/media/public_html/includes/configure.php:137) in /home/media/public_html/includes/functions/sessions.php on line 108

    Warning: Cannot modify header information - headers already sent by (output started at /home/media/public_html/includes/configure.php:137) in /home/media/public_html/includes/init_includes/init_templates.php on line 78

    Thanks in advance

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Cannot send session cookie / Cannot modify header information

    Quote Originally Posted by Graphicman View Post
    headers already sent (output started at /home/media/public_html/includes/configure.php:137)
    https://www.zen-cart.com/tutorials/index.php?article=87
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    70
    Plugin Contributions
    0

    Default Re: Cannot send session cookie / Cannot modify header information

    Just had the same problem and fixed it by copy/pasting the file contents of admin/includes/configure.php into a new file, then saving over the old one and uploading. Must have been a bug in my text editor.
    Odd Bodkin Renaissance Shop (1.3.9h shop)
    http://www.oddbodkin.com

 

 

Similar Threads

  1. Cannot send session cookie - headers already sent
    By styggie in forum General Questions
    Replies: 17
    Last Post: 10 Jan 2013, 01:08 AM
  2. Cannot send session cookie - admin broken
    By FrankDeRosa in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 May 2009, 07:33 AM
  3. Replies: 4
    Last Post: 12 Dec 2008, 04:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg