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

推荐订阅源

WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
V
Visual Studio Blog
宝玉的分享
宝玉的分享
IT之家
IT之家
人人都是产品经理
人人都是产品经理
T
The Blog of Author Tim Ferriss
I
InfoQ
B
Blog RSS Feed
T
Threatpost
博客园_首页
M
MIT News - Artificial intelligence
Spread Privacy
Spread Privacy
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Know Your Adversary
Know Your Adversary
U
Unit 42
Engineering at Meta
Engineering at Meta
C
Cyber Attacks, Cyber Crime and Cyber Security
月光博客
月光博客
Scott Helme
Scott Helme
T
Tor Project blog
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Last Week in AI
Last Week in AI
S
Schneier on Security
Vercel News
Vercel News
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
L
LangChain Blog
爱范儿
爱范儿
Google DeepMind News
Google DeepMind News
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
Latest news
Latest news
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
www.infosecurity-magazine.com
www.infosecurity-magazine.com
G
GRAHAM CLULEY
S
Security Affairs
A
About on SuperTechFans
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
大猫的无限游戏
大猫的无限游戏
W
WeLiveSecurity
Cisco Talos Blog
Cisco Talos 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。