Results 1 to 7 of 7
  1. #1
    Join Date
    May 2006
    Location
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    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.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

    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
    The learning is in the doing.

    Potent Products

  3. #3
    Join Date
    May 2006
    Location
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    Default Re: sessions error after changing hosts

    Yes the database entries are correct as well as the configure files

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,128
    Plugin Contributions
    0

    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.
    The learning is in the doing.

    Potent Products

  5. #5
    Join Date
    Jan 2004
    Posts
    58,264
    Blog Entries
    3
    Plugin Contributions
    106

    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 http://tutorials.zen-cart.com/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!
    Donations always welcome: www.zen-cart.com/donate

    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
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    Default Re: sessions error after changing hosts

    ah super! Thanks!

  7. #7
    Join Date
    May 2006
    Location
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    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!

 

 

Similar Threads

  1. URL problems after changing hosts
    By richmwi in forum General Questions
    Replies: 2
    Last Post: 9 Oct 2009, 02:18 AM
  2. Changing Hosts?
    By Natural Tone in forum Installing on a Windows Server
    Replies: 7
    Last Post: 13 Jan 2009, 12:48 PM
  3. Changing Hosts Question
    By Crimson_Wake in forum General Questions
    Replies: 5
    Last Post: 29 Oct 2008, 09:03 PM
  4. Changing hosts
    By sonicparke in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 26 Sep 2006, 03:07 PM
  5. Changing Hosts/Domains
    By vixenz in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 21 Aug 2006, 02:51 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
  •