重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
在安装wordpress过程中,不断头部出现Warning: Cannot modify header information - headers already sent (output started at...)的错误提示,但仍然能继续安装完成。但是,当安装完登录时,页面上会直接显示出全部类似的错误,如:
专注于为中小企业提供成都做网站、成都网站制作服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业宁化免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了上1000家企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-login.php on line 255
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-login.php on line 267
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-includes/pluggable.php on line 649
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-includes/pluggable.php on line 650
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-includes/pluggable.php on line 651
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/yoozhu/wp-config.php:1) in /www/htdocs/wordpress/wp-includes/pluggable.php on line 850
查了下原因和解决方法。主要是因为我之前在wp-config.php里曾经用记事本编辑过数据表的文字编码:define('DB_CHARSET', 'utf8');造成UTF8编码和BOM冲突,解决办法:使用写字板、UltraEdit、EditPlus等编辑器重新编辑文件保存。并回想起Ucenter安装介绍中说过UTF-8 编码的程序文件不建议使用 Windows 的“记事本”。
在本地搭建的话,要先下个php环境,把wordpress的程序放到这个环境的根目录下,在浏览器地址栏输入localhost就能出现安装的界面了。
一般主机提供商是要对你自已的域名进行审核,有点白名单的意思,不在白名单里的域名是不给解析的,详情咨询一下主机提供商。
如果主机提供商已经放行,但解析不成功,可能还是你后台的设置的问题。