ECSHOP网站转移出现问题

2016-07-07 15:17 来源:www.chinab4c.com 作者:ecshop专家

Warning: Cannot modify header information - headers already sent by (output started at /var/www/htdocs/index.php:1) in /var/www/htdocs/includes/cls_session.php on line 116

Warning: Cannot modify header information - headers already sent by (output started at /var/www/htdocs/index.php:1) in /var/www/htdocs/includes/init.php on line 166

Warning: Cannot modify header information - headers already sent by (output started at /var/www/htdocs/index.php:1) in /var/www/htdocs/includes/init.php on line 167

Warning: Cannot modify header information - headers already sent by (output started at /var/www/htdocs/index.php:1) in /var/www/htdocs/includes/cls_template.php on line 58


网站是ecshop程序,由VPS搬移到LINUX系统的云服务器,网站首页出现以上4条内容!查了好多资料,有人说目录权限,可是把权限都设置为777了,还是不行,究竟是怎么了,谁知道啊,能不能帮助我啊,万分感谢!!!后台也出现好多提示:是data目录下有些目录没写入权限,可是都设置了777了!

回答:
这个应该是 BOM 问题导致的,

你原来是的服务器是windows,新的服务器是LINUX,是这样吧

BOM问题在LINUX服务器上体现的很明显

打开报错的那几个文件,用专业的代码编辑软件打开,然后另存为 无BOM 形式

不能修改 权限不足vps linux 系统 要chmod 命令给权限的

楼上正解!!!