点击数:43242016-08-03 12:23:56 来源: 外贸网站建设,深圳外贸网站建设,深圳网站建设,外贸商城网站制作-亿恩科技
网站转移空间的时候,偶尔会出现这种情况:zen-cart后台会报这个错误:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at public_html/shopping/admin/includes/classes/logger.php:108) in 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 public_html/shopping/admin/includes/classes/logger.php:108) in public_html/shopping/includes/functions/sessions.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at public_html/shopping/admin/includes/classes/logger.php:108) in 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 public_html/shopping/admin/includes/classes/logger.php:108) in public_html/shopping/admin/includes/functions/general.php on line 37导致网站后台不能登录。
出现了这个错误的解决方法:
1.首先到数据库中confiuration中的session把路径改为服务器的绝对路径,并在配置文件中添加ob_star();
2.第二,如果你拥有php.ini的管理权限,那么,直接编辑php.ini,将output_buffer打开(随便给个1024-4086的值),特别注意有些服务是显示output_buffering
3.第三,如果没有php.ini的权限,但是服务器提供了.htaccess 功能的话,那么在.htaccess中加一句这个东西就可以了,.htaccess 比如:php_value output_buffering 4096