Zen Cart Logo
Forums / General Questions / sessions error after changing hosts

sessions error after changing hosts

Views: 1,260

Results 1 to 7 of 7
29 Jul 2011, 4:14 PM
#1
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

sessions error after changing hosts

I'm stuck!

I'm getting this error (with appropriate path) in both admin and the catalog

[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.

29 Jul 2011, 5:44 PM
#2
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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

29 Jul 2011, 6:00 PM
#3
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: sessions error after changing hosts

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

29 Jul 2011, 6:44 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

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.

29 Jul 2011, 7:30 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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.

29 Jul 2011, 7:35 PM
#6
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: sessions error after changing hosts

ah super! Thanks!

29 Jul 2011, 7:47 PM
#7
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

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!