当我尝试移动 Wordpress 站点进行开发时出现错误

I get an error when I try to move a Wordpress site for development

我是 re-designing 某人的 Wordpress 网站,大部分需要更改 CSS 我想将整个网站移到我的服务器上以进行开发。大多数情况下,我只是更改 design/CSS,但有一些我想保留的自定义部分,例如有一个推荐 plug-in/widget,它在仪表板中有一个自定义位置,以及一种通往 post 推荐的方法.
我下载了整个网站。 导出数据库 然后将其移动到我的服务器并上传文件并创建一个新数据库并导入它。

然后我用这个将数据库更改为正确的目录: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ 现在我遇到了一个疯狂的错误:

警告: 无法修改 header 信息 - headers 已经发送(输出开始于 /home//public_html/wordpress/wp-config。php:156) 在 /home/public_html/wordpress/wp-content/plugins/wp-greet-box/includes/wp-greet-box.class.php 第 493 行

警告: 无法修改 header 信息 - headers 已经发送(输出开始于 /home/llhimhi1/public_html/wordpress/wp-config.php:156) 在 /home/l/public_html/a/wordpress/wp-includes/pluggable.php 第 1121

我不知道我是否应该继续尝试完成这项工作,或者只是将主题复制到全新安装中。但我不确定还要复制什么,因为仪表板中有自定义插件和内容。 将不胜感激。

"headers already sent" 错误是一个非常常见的 PHP 错误,与文件中的白色 space 或垃圾字符有关,或者文件在 FTP 转移。检查你的 wp-config.php 文件。

来自FAQ Troubleshooting » Headers already sent warning « WordPress Codex

It is usually because there are spaces, new lines, or other stuff before an opening tag, typically in wp-config.php. This could be true about some other file too, so please check the error message, as it will list the specific file name where the error occurred (see "Interpreting the Error Message" below). Replacing the faulty file with one from your most recent backup or one from a fresh WordPress download is your best bet, but if neither of those are an option, please follow the steps (at the link above).

并阅读 http://codex.wordpress.org/Debugging_in_WordPress 如何设置调试以查找 "white pages" 和其他 PHP 错误的原因。