Results 1 to 10 of 10
  1. #1

    bug Session_start() Cannot send session cache

    I have the following 2 errors occur below:

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

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

    Everything was fine until i played around with the configure.php files in the 2 Folders includes/configure.php and admin/includes/configure.php. I had re-adjusted back to normal after changing a few things in there, but it still continues to display these errors.

    I had checked the spaces between the last line and this ?> corrected the gap in between and still did not rectify the problem.

    All i tried modifying was the shared ssl url.

  2. #2

    Have a Drink Re: Session_start() Cannot send session cache

    No need to worry now guys. I have perservered with it and managed to correct the problem myself.

    I found that having gaps after ?> also creates a problem. I went right to the bottom of the page and backspaced all the way up back to ?>.

    Hope this helps the next person that may have the same problem as myself.

    ssl also works beautifully as well now.

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

    Default Re: Session_start() Cannot send session cache

    Thanks for the update ... php hates space(s) and/or blank line(s) after the ?>

    Make sure to use a good TEXT editor and FTP program for your site ...

    Never use CPanel or a word processor ...
    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!

  4. #4
    Join Date
    Dec 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Session_start() Cannot send session cache

    Hey Slash,
    I'm having the exact same problem that you had and I checked for spaces in the config files, which were there, so I got rid of them. However, I'm still having the same issues any further insites?

  5. #5
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Session_start() Cannot send session cache

    Quote Originally Posted by Flexinator View Post
    Hey Slash,
    I'm having the exact same problem that you had and I checked for spaces in the config files, which were there, so I got rid of them. However, I'm still having the same issues any further insites?
    Please post the EXACT error messages you're getting.
    .

    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.

  6. #6
    Join Date
    Dec 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Session_start() Cannot send session cache

    Hey Doc,
    I don't really see any errors. On the techsupp it just says

    YOU CAN SAFELY IGNORE THE FOLLOWING "Headers already sent" ERRORS:
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/pxlshopc/public_html/techsupp.php:49) in /home/pxlshopc/public_html/includes/functions/sessions.php on line 102

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

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Session_start() Cannot send session cache

    So, are you reporting that you're seeing session_start errors when running techsupp.php ?
    Or are you reporting that you're having a problem installing Zen Cart?
    Or are you reporting that your installed Zen Cart site suddenly stopped working ?

    You said you were having the "exact same error" as the original poster...but ... without more information, it appears that you may have a different problem.

    What is the URL to the page where you're having a problem ? (besides techsupp.php)
    .

    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 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Session_start() Cannot send session cache

    Doc,

    Well I had zen cart up and running 100%. I later tried to start securing it, right now its completely in progress. I went to the tutorials and read the one about zen cart security https://www.zen-cart.com/tutorials/index.php?article=73 and I changed the admin folder name. At that point I could still log in (under the new admin folder name) but all the pages under Configuration inside the admin tool were blank. The view source showed blank too. So I read on the forums a lot of people had extra spaces and/or carriage returns after the ?> I checked and I did too, so I removed them in wordpad and sent them back up. Since that didnt seem to work, I changed the admin folder back to "admin" and the same problem, Configuration is hosed. The site itself doesn't seem to have any problems at all, its the admin tool that's causing grief. Even that works great except for any submenu under Configuration.

    In the techsupp.php I just noticed the warning about the "Cannot send session cache limiter - headers already sent" and the "Cannot modify header information". That's when I found this post.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Session_start() Cannot send session cache

    If you edited the /admin/configuration.php file, please re-upload the original from the Zen Cart zip. There is no need to touch that file. Don't confuse it with the one that *does* need to be edited:

    /admin/includes/configure.php


    What are you using to edit the file? Some editors add extra line-endings to the files, which will end up causing you grief.
    A good reliable and simple editor is Crimson Editor (www.crimsoneditor.com)

    When you are uploading files via FTP, be sure that your PHP files are uploaded in ASCII mode, *not* in binary mode ... because binary mode will often contaminate your line-endings as well.
    A good reliable FTP program is filezilla

    DO NOT use a file-editor that's browser-based, such as is found in cPanel. This will also mess with your file line-endings and cause you headaches.
    .

    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
    Dec 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: Session_start() Cannot send session cache

    Doc, you rock!! That was it, somehow I must have messed with the configuration file in the admin folder. Replaced it from the original zen cart and everything's back. Also, I have been guilty of committing all the "no's" you've listed in the past but that was when I first downloaded zen cart.

    I've used cPanel to edit files, dreamweaver, wordpad, notepad, homesite.....the list goes on. I'll be sure to use the one's you listed instead. Now in theory, if I change the name of the admin folder and follow the steps in the tutorial I should be ok.......must have just inadvertently overwritten the admin/configuration file last time I guess. Thanks again for your help Doc!
    Flexinator
    :: Everything Zen ::
    Lynchburg, VA

 

 

Similar Threads

  1. Cannot send session cookie / Cannot modify header information
    By witch-of-germany in forum General Questions
    Replies: 9
    Last Post: 10 Apr 2011, 01:00 AM
  2. Cannot send session error
    By rxalex in forum General Questions
    Replies: 0
    Last Post: 15 Feb 2010, 09:24 PM

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