惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
Blog — PlanetScale
Blog — PlanetScale
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
Y
Y Combinator Blog
U
Unit 42
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
B
Blog RSS Feed
Vercel News
Vercel News
F
Fortinet All Blogs
Know Your Adversary
Know Your Adversary
T
Troy Hunt's Blog
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
A
About on SuperTechFans
Jina AI
Jina AI
小众软件
小众软件
T
Threatpost
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
The Hacker News
The Hacker News
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
Scott Helme
Scott Helme
B
Blog
腾讯CDC
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
S
Schneier on Security
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
K
Kaspersky official blog
G
Google Developers Blog
T
Tor Project blog
PCI Perspectives
PCI Perspectives
S
Secure Thoughts
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
罗磊的独立博客

不曾长大-秦大叔的流水账 - WordPress

Akismet的API Key 珍爱生命,远离404! 罪魁祸首是它? 万恶的404错误! 为什么发表评论时总是出现404错误呢?
WordPress的wp-config.php错误
秦大叔 · 2001-08-14 · via 不曾长大-秦大叔的流水账 - WordPress

  装WordPress遇到的第一个问题就是安装后出现:Warning: Cannot modify header information - headers already sent by (output started at D:webcitswwwrootwp-config.php:1) in D:webcitswwwrootwp-login.php on line 290的错误。

  第一次装的是2.8.3版,运气好,把wp-config.php文件改来改去,这个错误竟然消失了。升级到2.8.4版后死活改不好了,Goole一下发现有人提到是因为文件编码格式造成的。试着把原本的UTF-8编码改成ANSI编码,保存上传后,问题解决!但是有看到有人说ANSI格式对双字节支持不好,会出现乱码。不过我暂时没发现什么问题,就暂且这么用着吧。

  个人觉得wp-config.php是数据库配置文件,并没用到什么中文,用ANSI编码应该也出不了什么问题。总之,出了问题再想办法解决吧。

----------------------------------------2009年12月4日更新分割线----------------------------------------

  其实之后在后来的使用、升级中还数次出现过wp-config.php错误,说明ANSI编码格式也还是有问题的!正确的编码格式应该是utf-8 (去BOM),这个需要一些专业的文本编辑工具,如EmEditor就很不错。其实还有个最简单的办法,就是用英文版的wp-config.php文件替换掉中文版的。但是如果数据库账号、密码什么的有中文字符,这个方法就没意义了。好在这些地方理论上是不会用到中文的,所以怕麻烦的朋友可以试试英文版的wp-config.php。