wordpress中install.php on line 36错误的解决方法

在安装wordpress时,有时会出现Warning: Cannot modify header information – headers already sent by (output started at D:\xampp\htdocs\wordpress\wp-config.php:1) in D:\xampp\htdocs\wordpress\wp-admin\install.php on line 36这样的错误,其实这是因为我们在修改wp-config.php文件在保存时编码出现了问题,解决的办法如下:

将wp-config.php用记事本打开,另存为ANSI格式,然后用EditPlus将文件打开,将文件最后一行的空行删除,然后另存为utf8,注意,不是utf8+BOM

将文件重新上传覆盖原文件即可。

记得一定要用EditPlus这个软件或者同类软件!

相关日志

Post a Comment

Your email is never published nor shared. Required fields are marked *

Type your comment out: