Zen-cart Session_start error leads to a blank page display

zen-cart. Some space reasons。After editing or download the document in?> After a blank line to pay more。This led to the foreground and background can not display normal。。Often there will be a blank page。Or session_start()error。Given the header information already sent。 Add in the shopping cart and payment processes often appear。The following are the symptoms:

Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /home1/megacoll/public_html/shopping/admin/includes/classes/logger.php:106) in /home1/megacoll/public_html/shopping/includes/functions/sessions.php on line 108

Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /home1/megacoll/public_html/shopping/admin/includes/classes/logger.php:106) in /home1/megacoll/public_html/shopping/includes/functions/sessions.php on line 108

Warning: Cannot modify header information – headers already sent by (output started at /home1/megacoll/public_html/shopping/admin/includes/classes/logger.php:106) in /home1/megacoll/public_html/shopping/admin/includes/init_includes/init_templates.php on line 69

Warning: Cannot modify header information – headers already sent by (output started at /home1/megacoll/public_html/shopping/admin/includes/classes/logger.php:106) in /home1/megacoll/public_html/shopping/admin/includes/functions/general.php on line 37

Background leading to the site can not log。

If you have administrative privileges php.ini,Then,Directly edit php.ini,The output_buffer open (just give a value of 1024-4086),If you do not have permission to php.ini,But the server provides the function of words .htaccess,Then in .htaccess add that this thing on it:

All the php files are checked still the same。
Finally found out that there was no host in php.ini setting output_buffering。Although not yet ask them to correct,But we can try to use .htaccess。

.htaccess set as follows:
php_value output_buffering 4096

Tested 。no problem。

Leave a Comment