Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default sessions error after changing hosts

    I'm stuck!

    I'm getting this error (with appropriate path) in both admin and the catalog
    Code:
    [29-Jul-2011 12:07:54] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /home/megaudio/public_html/adminurrhtcqq/includes/classes/logger.php:106) in /home/megaudio/public_html/includes/functions/sessions.php on line 114
    [29-Jul-2011 12:07:54] PHP Warning:  session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/megaudio/public_html/adminurrhtcqq/includes/classes/logger.php:106) in /home/megaudio/public_html/includes/functions/sessions.php on line 114
    [29-Jul-2011 12:07:54] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/megaudio/public_html/adminurrhtcqq/includes/classes/logger.php:106) in /home/megaudio/public_html/adminurrhtcqq/includes/init_includes/init_templates.php on line 53
    [29-Jul-2011 12:07:54] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/megaudio/public_html/adminurrhtcqq/includes/classes/logger.php:106) in /home/megaudio/public_html/adminurrhtcqq/includes/functions/general.php on line 21
    I have gone back and very carefully edited the original configure files

    All other files are identical to last host. There are no other changes.

    site was on godaddy but even though they do screwy things with their install, the files should be fine.

    Can a corrupted file cause this? That's the only other thing I can think of.

    There was another odd thing happening at first which I had to go into the database to fix because I couldn't even get the fix_cache_key file to run. It was throwing an error about the path even though the cache method is set to none.
    The full-time Zen Cart Guru. WizTech4ZC.com

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: sessions error after changing hosts

    Have you confirmed the path listed in these two locations are correct?

    Admin > Configuration > Logging
    Log Destination

    Admin > Configuration > Sessions
    Session Directory

  3. #3
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default Re: sessions error after changing hosts

    Yes the database entries are correct as well as the configure files
    The full-time Zen Cart Guru. WizTech4ZC.com

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: sessions error after changing hosts

    OK, next suggestion is to delete the files mentioned in the error msg. and upload the originals again. Not uncommon for files to get corrupted when the Server cannot properly handle the amount of files uploaded originally.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: sessions error after changing hosts

    1. You've publicly disclosed your admin foldername. You might want to change it.

    2. The error message is:
    [29-Jul-2011 12:07:54] PHP Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/megaudio/public_html/adminurrhtcqq/includes/classes/logger.php:106) in /home/megaudio/public_html/includes/functions/sessions.php on line 114

    So, as per https://www.zen-cart.com/tutorials/index.php?article=87, you'll note that the error is occurring on line 106 of the logger.php file.
    And, since the original logger.php file has only 64 lines, your file is evidently damaged ... probably double-spaced with extra blank lines added by a bad FTP program that doesn't handle line-breaks properly.
    .

    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
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default Re: sessions error after changing hosts

    ah super! Thanks!
    The full-time Zen Cart Guru. WizTech4ZC.com

  7. #7
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default Re: sessions error after changing hosts

    To report:

    uploaded new zen cart default files and problem was corrected.

    The other thing to learn is to not publish the entire error message. Man oh man, it is Friday and I'm so glad work is just about done for the week!
    The full-time Zen Cart Guru. WizTech4ZC.com

 

 

Similar Threads

  1. Character sets mismatch after changing hosts
    By sanderh in forum General Questions
    Replies: 10
    Last Post: 16 Nov 2014, 08:00 PM
  2. v139h Authorize.net SIM errors after changing hosts
    By CarolineBogart in forum General Questions
    Replies: 3
    Last Post: 13 May 2014, 04:56 AM
  3. v139h Email problem after changing hosts
    By dbjsi83474 in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 5 May 2012, 04:48 AM
  4. Email not working after changing hosts - SSL issue?
    By mumzie in forum Installing on a Windows Server
    Replies: 5
    Last Post: 25 Oct 2010, 04:09 PM
  5. URL problems after changing hosts
    By richmwi in forum General Questions
    Replies: 2
    Last Post: 9 Oct 2009, 02:18 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR